Volatility & bandsBollinger Bands · BB
A moving-average envelope whose width breathes with volatility — the most widely used volatility bands.
Works in most conditionsEngine-computed on a fixed sample series
What it is
Bollinger Bands are a volatility envelope drawn around price, consisting of a central moving-average line with an upper and lower band that expand and contract as volatility changes. Developed by John Bollinger in the early 1980s, they are among the most widely used indicators in all of technical analysis. The central idea is that price is high or low only in relation to recent volatility, so the bands provide a dynamic, self-adjusting definition of relatively high and relatively low rather than a fixed one. They answer two related questions at once: how stretched is the current move relative to normal, and is the market currently calm or turbulent? Because the bands literally breathe with volatility — widening in fast markets and pinching in quiet ones — they convey information that a simple moving average cannot. Bollinger designed them as a relative framework, not a standalone buy-and-sell system.
How it's calculated
The middle band is a simple moving average of closing prices, conventionally over twenty periods. The upper and lower bands are placed a set number of standard deviations of those same closing prices above and below the middle band, conventionally two standard deviations. Standard deviation measures how dispersed recent prices are around their average, so it rises when swings widen and falls when they narrow — which is exactly why the bands expand in volatile markets and contract in quiet ones. Because the calculation uses a rolling window, both the middle line and the band width update every bar as new data enters and old data drops out. Bollinger noted that if you change the moving-average length, you should adjust the standard-deviation multiplier accordingly, suggesting a slightly wider multiplier for longer averages and a slightly narrower one for shorter ones to keep the bands containing a similar proportion of price.
Reading it step by step
Because roughly eighty-eight to eighty-nine percent of price action stays within two-standard-deviation bands, a tag of the outer band marks a statistically stretched move, not an automatic reversal. The single most important lesson is that band width is itself a signal: narrow bands warn that a volatility expansion is coming, while wide bands say one is already underway. A run of closes hugging or walking the upper band is a sign of trend strength, not an overbought sell signal — in a strong uptrend price can ride the upper band for many bars. Bollinger described characteristic patterns: a W-bottom, where a second low holds inside the lower band while the first pierced it, hints at a bottom, and an M-top does the reverse. The middle band acts as dynamic support in uptrends and resistance in downtrends. Above all, the bands measure how far price has strayed, never which way it will go next.
Best timeframes and settings
Bollinger Bands are timeframe-agnostic and are used successfully by scalpers on one-minute charts, swing traders on daily charts, and position traders on weekly charts alike. The default settings of a twenty-period average with two standard deviations were chosen by Bollinger as a robust general-purpose configuration and suit most instruments and timeframes without adjustment. Widening the multiplier toward 2.5 standard deviations reduces the frequency of band tags and cuts false signals on noisy instruments, while narrowing it toward 1.5 makes tags more frequent and the bands more sensitive. Shortening the average makes the bands hug price and react faster at the cost of more whipsaws, while lengthening it smooths them and slows their response. The trade-off is the universal one between responsiveness and noise, and most traders are best served leaving the classic 20/2 in place until they have a specific reason to change it.
When and where to use it
Bollinger Bands are versatile enough to use in both ranging and trending regimes, but the tactics differ. In a range, the outer bands act as reversion boundaries where stretched moves tend to snap back toward the middle. In a trend, the bands frame the move — the middle band offers pullback entries and the outer band shows where the trend is running hot without necessarily ending. They apply to every asset class, since standard deviation of price is universal. The main situation to avoid is treating a band tag as a direction signal in isolation: without a trend read, fading every upper-band tag will get you run over in a strong advance. They are most powerful when you first classify the regime and then choose the reversion or trend-following interpretation to match.
Strategies that use it
A range-reversion strategy fades tags of the outer bands back toward the middle: in a sideways market, sell a tag of the upper band with a stop just above it and target the middle or lower band, and buy the lower band in mirror image. A trend-pullback strategy treats the middle band as dynamic support in an uptrend, buying pullbacks to it with a stop below and riding the move as long as price stays above, reversing the logic in a downtrend. A squeeze-breakout strategy waits for the bands to pinch to a multi-month narrow, then trades the first decisive close outside the bands in the direction of the break, with the opposite band as the stop. The W-bottom and M-top patterns give reversal traders specific structures to trade with the lower or upper band as reference. Across all of these, the band that price is not breaking toward provides a natural stop placement.
Combining it with other indicators
Bollinger himself insisted the bands be paired with a direction or momentum tool, since they only measure deviation. The Relative Strength Index is a natural partner: an upper-band tag with an overbought, diverging RSI supports a reversion short, while a band walk with strong RSI supports staying in a trend. Volume confirmation distinguishes a real breakout on band expansion from a thin, failing one. Bollinger's own companion tools, Bandwidth and %B, quantify band width and price position respectively, letting you spot squeezes and divergences numerically rather than by eye. A longer moving average or the average directional index establishes whether the larger environment is trending or ranging, which decides whether to fade band tags or trade with them. The pairing that matters most is always band information plus an independent read of direction.
Where it fails
The classic and costly mistake is treating a tag of the upper band as a sell signal and the lower band as a buy signal regardless of context — in a strong trend, price rides the band and repeatedly stops out the reversion trader. The bands are also silent on direction by design, so using them alone to decide which way to trade is misusing the tool. In fast, news-driven moves the bands can expand so much that stops based on them become very wide, and in dead, illiquid markets they can pinch and produce meaningless tags. Because the standard deviation is a sample over a short rolling window and returns are not normally distributed, the textbook containment percentages are approximate, and outliers pierce the bands more often than a normal distribution predicts. The remedy is to classify the regime first, pair the bands with a direction tool, and never trade a band tag mechanically.
A worked example
Suppose a stock is ranging quietly and its Bollinger Bands sit with the middle at 100.00, the upper at 105.00, and the lower at 95.00, reflecting a standard deviation of about 2.5 over the last twenty closes. Price rallies to tag 105.10, poking just above the upper band, and at the same time RSI reads 74 and has diverged from the prior high — a stretched move in a range with momentum confirmation. A reversion trader sells near 105.00 with a stop just above the band at 105.90, risk of about 0.90 points, targeting the middle band at 100.00 for roughly 5.00 points of reward, a reward-to-risk ratio near 5.5 to 1. Had the same upper-band tag occurred during a strong uptrend with price walking the band and RSI holding firm, the trader would have stood aside rather than fought the trend, recognizing that a band tag in a trend is strength, not a sell signal.