Bollinger Bands
- Category
- Technical Analysis
- Level
- Professional
Simple definition
A moving average with two lines drawn above and below it at a distance set by recent volatility. The lines widen when price swings grow and narrow when the market settles.
Professional definition
A volatility envelope: a 20-period simple moving average as the middle band, with outer bands two standard deviations of those same 20 closes above and below it. Band width is a volatility reading; the position of price within the bands is a relative-price reading.
Technical definition
The middle band is an n-period simple moving average of closes; the outer bands sit k standard deviations of those same n closes above and below it, with n = 20 and k = 2 as Bollinger's defaults. Because the dispersion estimate is recomputed on every bar, the envelope is adaptive rather than fixed. Roughly 89 percent of observations fall inside the two-sigma bands — an empirical regularity of financial series, not the 95 percent a normal distribution would imply, because returns are not normal.
Academic definition
A volatility-adaptive envelope in which an n-period moving average of price is bracketed by bands displaced k standard deviations of the same window, so that envelope width is proportional to recently realised dispersion.
Mechanism
Because the band distance is a standard deviation of the same window that forms the average, the envelope breathes with the market. A quiet stretch shrinks the dispersion estimate and pulls the bands in, which is why a squeeze is so often followed by a wide move: the squeeze measures past calm, it does not predict the direction that ends it.
In practice
- Who uses it
- Technical analysts, volatility-aware systematic developers, and traders sizing stops or targets against recent dispersion.
- Why it matters
- It places price on a volatility-relative scale, so one chart can be read across quiet and violent regimes without changing parameters.
- Limitations
- The bands describe dispersion, not direction or fair value. A touch is not a signal, and in a trend price can ride a band for weeks.
Common mistakes
- Selling every touch of the upper band as if it were a ceiling.
- Reading the two-sigma band as a 95 percent containment interval.
- Comparing band width across instruments without dividing by price.
Examples
In a strong trend price can close outside the upper band several bars in a row. That is band-riding, a sign of a sustained move; traders who treated each close outside as a reversal signal were trading against the trend.
Twenty closes average 100.0 with a standard deviation of 2.5. The upper band is 105.0, the lower 95.0, and the envelope is 10 percent of the middle band wide — a volatility figure, not a forecast.
- n = 20 closes
- SMA(20) = 100.0
- standard deviation of the same 20 closes = 2.5
- k = 2
- upper = 100.0 + 2 x 2.5 = 105.0
- lower = 100.0 - 2 x 2.5 = 95.0
- width = 105.0 - 95.0 = 10.0
- relative width = 10.0 / 100.0 = 10%
Width is a dispersion statistic. It says nothing about which band price will reach next.
Mathematical foundation
Variables
| MB_t | Middle band: simple moving average of the last n closes | price units |
| UB_t, LB_t | Upper and lower bands | price units |
| C_{t-i} | Closing price i periods ago | price units |
| \sigma_t | Standard deviation of the same n closes | price units |
| n, k | Lookback length and band multiple; Bollinger's defaults are 20 and 2 | periods, multiple |
Procedure
Average the last n closes to get the middle band. Compute the standard deviation of those same n closes. Add and subtract k times that figure to place the outer bands. Repeat on every new bar, so both the centre and the width update together.
Worked example
- n = 20
- SMA(20) = 100.0
- standard deviation of the window = 2.5
- k = 2
- k x sigma = 2 x 2.5 = 5.0
- UB = 100.0 + 5.0
- LB = 100.0 - 5.0
Interpretation
Width answers how dispersed recent closes have been; position within the bands answers how far price sits from its own recent mean, measured in standard deviations. Neither output contains a direction.
Assumptions
- Bollinger's defaults are n = 20 and k = 2; both are configuration choices, not constants.
- Sigma is computed on the same n closes that form the average. Platforms differ on whether they divide by n or by n-1, which shifts the bands slightly on short lookbacks.
- Closes are the default input. Using typical price or another series produces a different envelope with the same name.
- The roughly 89 percent containment reported for financial series is an empirical regularity, not a property guaranteed by the formula, and it varies by market and period.
- Sigma is backward-looking, so the bands widen after a volatility shock rather than before it.
- Band width is in price units, so it is comparable across instruments only after dividing by price.
Related terminology
- related
- Moving Average Standard Deviation Volatility Average True Range Support and Resistance Timeframe
Average True Range
Bollinger Bands measure how far closes scatter around their average. ATR measures how far price travels inside each bar, gaps included. Both are volatility, from different raw material.
Sources
McGraw-Hill · 2001 · chapters on band construction and the %b and bandwidth indicators
Print source
New York Institute of Finance · 1999 · chapter on moving averages and price envelopes
Print source
CMT Association · discussion of volatility-based indicators and their evidence base
https://cmtassociation.org/wp-content/uploads/2019/01/Technical-Analysis-Modern-Perspectives-CMT-Association.pdf URL verified
Editorial status
Written, not yet reviewed.
