Bollinger Bands
Volatility envelope around a moving average.
What it is
Volatility envelope around a moving average.
Bollinger Bands, designed by John Bollinger in the 1980s, wrap a moving average (typically 20-period SMA) with an upper and lower band placed k standard deviations away (k = 2 is the default). The bands widen when volatility rises and contract when it falls — a 'squeeze' often precedes a directional move.
Typical reads: price touching the upper band in a strong uptrend is not by itself a sell signal — it is a sign of trend strength. Conversely, repeated touches outside the bands followed by a close back inside are sometimes used as mean-reversion triggers.
Because the bands are derived from the rolling standard deviation of price, they assume returns are approximately normal locally. In practice fat-tailed crypto returns regularly print outside the ±2σ band more often than the 5% Gaussian theory would predict.
Middle = SMA(N) Upper = Middle + k · stdev(close, N) Lower = Middle − k · stdev(close, N)
Live chart
BTC/USDT on Binance with this indicator pre-loaded. Powered by TradingView.
Chart by TradingView. Built-in study shown for illustration; the Noon Barbari engine computes its own values.
Parameters
| Parameter | Default | Range |
|---|---|---|
| Period | 20 | 2 – 200 |
| Std × | 2 | 0.5 – 5 |
Output fields
The named values this indicator exposes to your entry and exit rules.
Related strategies
Ready-made, runnable templates that use this indicator. Open one to inspect or backtest it.
Bollinger squeeze breakout strategy
Ride the volatility expansion when price breaks out of a tight Bollinger range.
Bollinger band reversion strategy
Fade a 2-sigma stretch below the mean and exit when price tags the middle band.
Buy-the-dip (Bollinger + RSI) strategy
Two-condition confluence: lower-band stretch AND oversold RSI before taking the dip.
Backtest this indicator
Drop this indicator into a rule-set, run it over years of BTC/USDT data, and see whether the edge is real or just curve-fit — no credit card required.