Bollinger Bands
A moving average with bands set a number of standard deviations away. The bands widen and narrow with volatility, which is the whole point of them.
MadStockAlerts Research · Updated August 28, 2026
What to take away
- Conventionally a 20-period simple moving average with bands two standard deviations away.
- The bands measure volatility, so they contract in quiet markets and expand in active ones.
- Touching a band is not a signal; in a trend price can ride one for a long time.
- A squeeze describes unusually narrow bands, which says nothing about direction.
- Financial returns are not normally distributed, so the statistical intuition misleads.
MAD Academy Training Video · 0:44
Touching the Band Is Not a Signal
The bands are a volatility envelope. In a trend price walks the upper band for weeks, and every touch is strength rather than excess.
This lesson is part of a Stock Alerts + Tools plan.
The construction
upper = SMA(20) + 2 x standard deviation(20); lower = SMA(20) - 2 x standard deviation(20)
Because the width is set by the standard deviation of recent closes, the bands are a direct, visible measure of how volatile the security has been. Quiet periods pull them together; violent ones push them apart. The middle line is an ordinary moving average and carries the trend information.
The bands are therefore two indicators in one picture: a trend measure in the centre and a volatility measure in the width. Most of the confusion about how to read them comes from treating the width as if it said something about direction.
The statistical caveat
Two standard deviations would contain roughly 95 percent of observations if returns were normally distributed. Financial returns are not normally distributed: extreme moves occur far more often than a normal distribution predicts, which is exactly why band touches are so much more common than the statistics would suggest.
Treating a band touch as a rare event, and therefore as a reason to expect reversion, is the standard misreading. In a trending market price rides the upper band for extended runs, and each of those touches is ordinary.
There is a second, subtler problem. The standard deviation is computed from the same recent window the bands are describing, so a period of large moves widens the bands and makes the next large move look less exceptional. The measure adapts to what it is measuring.
The squeeze
When the bands narrow to an unusually tight width, realised volatility has fallen. Because volatility tends to cluster and to alternate between quiet and active regimes, a squeeze is often described as preceding an expansion.
It carries no directional information whatsoever. A squeeze says a move may be larger when it comes; it does not say which way, and reading a direction into it is reading something that is not there.
Scroll the chart sideways to see all of it.
- Bollinger (20, 2)
Bandwidth and percent B
- Bandwidth: the distance between the bands as a percentage of the middle line, so squeezes are comparable across securities and across time.
- Percent B: where price sits within the bands, 0 at the lower band and 1 at the upper, which turns a visual position into a number.
Both exist for the same reason: the raw bands are a picture, and a picture cannot be screened. Bandwidth in particular is what makes it possible to ask which securities in a market are currently at their tightest range in a year.
Bandwidth and %B
Two derived measures turn the bands into numbers that can be compared across securities and across time, which the bands themselves cannot be.
bandwidth = (upper band - lower band) / middle band
- expressed as a proportion, so it is comparable between a $5 stock and a $500 one
- a bandwidth at the low end of its own multi-year range is what a squeeze means quantitatively
%B = (price - lower band) / (upper band - lower band)
- 1 means price is exactly at the upper band, 0 at the lower
- values outside 0 to 1 mean price is outside the bands entirely
Bandwidth is the more useful of the two because it makes the squeeze objective. Rather than judging by eye whether the bands look narrow, it can be compared against its own history: a reading in the lowest decile of the last two years is a defined condition rather than an impression.
Neither measure carries any directional information. A squeeze says a move may be larger when it comes; nothing in the construction says which way, and reading a direction into it is reading something that is not there.
Why the statistical reading fails
The bands are placed two standard deviations from a moving average, and it is routinely said that this contains about ninety-five percent of observations. That figure comes from the normal distribution, and returns are not normally distributed.
- Return distributions have fat tails: extreme moves occur far more often than a normal distribution predicts.
- Volatility clusters, so large moves follow large moves, which violates the independence the statistic assumes.
- The standard deviation is computed over a short rolling window, so it is itself a noisy estimate.
- The mean is a moving average rather than a constant, which is a different construction from the textbook case.
In practice, price sits outside the bands more often than the statistical reading implies, and it does so in clusters during exactly the periods when the bands are being watched most closely.
The bands remain useful as a description of whether current movement is large relative to recent movement. What does not follow is any claim about how likely a move outside them was, and the ninety-five percent figure should not be carried across.