Volatility & bands

Bollinger 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
14612196Price above Upper = strengthPrice below Upper = weaknessUpper acts as support / resistance
UpperMiddleLowerHow to read BB on the chart — the callouts mark what to look for.

The formula

σ is the standard deviation of the last 20 closes, so the bands stretch as swings grow and contract as they calm. The 20-period, 2-deviation defaults suit most timeframes.

Middle = 20-period SMA Upper = SMA + (2 × σ) Lower = SMA − (2 × σ)
Worked example
ComponentCalculationValue
20-period SMAaverage of last 20 closes100.0
Std dev (σ)of the last 20 closes2.5
Upper band100.0 + 2 × 2.5105.0
Lower band100.0 − 2 × 2.595.0

With price at 105 it is tagging the upper band — statistically stretched, not automatically a sell.

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.

Reading the signals on the chart

14612196
UpperMiddleLowerThe ▲/▼ marks flag where price most recently crossed the line — the cues a trend-follower would act on.

Best timeframes

  • Scalping1m – 5m
  • Day trading5m – 15m20/2 default
  • Swing1h – Daily
  • PositionDaily – Weekly

The 20/2 defaults travel well across timeframes; widen the multiplier to cut false tags on noisy instruments.

Bollinger Bands vs other channels

Bollinger BandsKeltner ChannelsDonchian Channels
Width driven byStandard deviationATRHigh / low range
Reacts to volatilityYesYes (smoother)Only new extremes
Middle lineSMAEMAMidpoint
Best forVolatility + squeezesTrend pullbacksBreakouts

Common price-action setups

How the signal typically plays out on the chart.

Range tag fade

In a sideways market, fade a tag of the outer band back toward the middle SMA. Stop just beyond the band, target the middle line.

Fade the tag
Mean reversion
Band-walk trend ride

A run of closes hugging the upper band signals trend strength, so buy pullbacks to the middle SMA rather than shorting the tags. Stop below the middle line.

Buy the pullback
Trend continues
Squeeze breakout

After the bands pinch tight, trade the first decisive close outside them in that direction. Stop on the opposite band.

Trade the break
Volatility expansion

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.

Common mistakes

  • Selling every tag of the upper band — in a strong trend price walks the band for many bars.
  • Treating the bands as directional; Bollinger built them to measure stretch, not to call the way.
  • Fading band tags in a trending market instead of only in a range.
  • Over-tuning to a jumpy short lookback that produces whippy, unreliable bands.
  • Ignoring the middle SMA, which is the dynamic support and resistance in a trend.