Minimalist Trading
← All indicators
Free · Open sourceVolatility

Bollinger Bands

Is price stretched, and is the bounce worth taking?

On TradingView since 2026Free forever. Source code is public.

How it works

The bands are a moving average of the close with standard-deviation bands: 20 bars and 2 deviations on Balanced, 14 bars on Fast, 34 bars and 2.2 deviations on Smooth. A signal appears when price closed outside a band on the previous bar and closes back inside on this one. The long-term trend (an average of 50, 100 or 200 bars, by speed) decides whether the label is solid or faded.

Who it is for

Spotting stretched moves on any market and timeframe, and telling a dip inside an uptrend from a market you should not try to catch. Every signal is decided at bar close, so nothing repaints.

What you see

  • BUY and SELL labels A BUY appears when price closed below the lower band and then closes back inside it. A SELL is the mirror at the upper band. A solid label goes with the long-term trend and a faded label goes against it.
  • Gradient bands Three layers on each side. The outer layer is the stretch zone: green below price (buy area) and red above (sell area). The middle line takes the colour of the long-term trend.
  • Dashboard Shows where price sits between the bands in plain words, whether the trend is up or down, the last signal and how many bars ago, and one sentence such as Stretched low in an uptrend: wait for a BUY back inside.

How to use it

  • Read the status line first It says whether a stretch is worth waiting for or worth leaving alone.
  • Prefer solid labels They agree with the long-term trend. A faded label goes against it: hide it if you want only signals with the trend.
  • Do not fade a strong move A candle far outside the band with the trend is a strong move, not a reason to go against it.
  • Choose your pace Fast gives earlier signals on short timeframes. Smooth gives fewer and slower signals.
  • Combine with your own analysis Pair it with your own levels and risk rules. You decide whether and how to act.
  • Use the alerts Set alerts to be told when a new signal appears.

Settings

  • Signal speed Fast, Balanced (default) or Smooth. It sets the band length, band width and trend average together.
  • Signals Buy and sell signals (on), hide signals against the long-term trend (off).
  • Look Colour theme (Neon, Classic, Ocean or Mono), gradient bands (on), highlight stretched candles (off), dashboard on or off with its position and size.

Alerts

  • Buy: price back inside the lower band and Sell: price back inside the upper band.
  • Any signal, for both.
  • All alerts fire at bar close. With the hide setting on, alerts follow the same filter.

Good to know

  • Signals confirm at bar close, so they appear one bar after price returns inside the band. This is the price of no repainting.
  • In a strong trend, price can stay outside the band for many bars. The status line says do not catch it or do not fade it in that case.
  • Use regular candles or bars. Heikin Ashi, Renko and similar types change the prices the indicator reads.
  • The first bars of a chart need history before the bands and the trend average are reliable.
  • It is an indicator, not a strategy. No backtest, win rate or profit figure is published or implied.

Try it on your own chart.

Add it from TradingView and see it on your symbols and timeframes.

Questions? Message me on TradingView chat.

Add to chart on TradingView

More indicators

Not sure which indicator fits your chart? Read how to choose TradingView indicators by the question each one answers.

Size the trade before you take it

An indicator finds the setup. These free tools tell you how much to risk and what to expect.