Bollinger Bands draw a channel around price. The middle line is a moving average; the upper and lower lines sit a set number of standard deviations above and below it. When prices swing more, the bands widen; when they calm down, the bands narrow.
The formula, written in full
- Middle band: the simple average of the last 20 closes.
- Standard deviation: the spread of those same 20 closes around that average.
- Upper band: middle band plus 2 times the standard deviation.
- Lower band: middle band minus 2 times the standard deviation.
- 20 periods and 2 deviations are the usual settings, not laws. A test that changes them is a different test.
Two readings are derived from the bands. Percent B says where the close sits between the lower band (0) and the upper band (1). Bandwidth is the gap between the bands divided by the middle band, a plain measure of how volatile the market has been.
What the bands show
- Volatility, first of all. A squeeze is a stretch of narrow bands, which only says the market has been quiet.
- Where price is relative to its recent range. A close outside a band means the move is large for the last 20 bars.
What they do not show
- A touch of the upper band is not a sell signal and a touch of the lower band is not a buy signal. In a strong trend price can run along a band for a long time.
- The "two standard deviations" idea comes from the normal curve. Prices are not that tidy, so the bands are a gauge of volatility, not a promise about how often price stays inside them.
How we will test it
We will write one fixed rule for each common use (a close back inside the band after a touch, and a squeeze followed by a break), run it on many markets and years with realistic costs, keep part of the data unseen until the rule is fixed, and report sample size, spread and the markets where it failed. Last tested: pending re-run. No result is stated here until it is run and dated.
Questions people type
How do you read Bollinger Bands? Look at the width first (quiet or active), then where the close sits between the bands. Neither is an order to trade.
What settings are best? There is no best setting. 20 and 2 are the default; any change should be tested, not assumed.
Do Bollinger Bands work? That depends on the rule and the market, and after costs. The test above is how we measure it.
Related
Average true range calculator, volatility calculator, how we test, backtesting, method and limits, position size calculator.
Education only. Nothing here is financial advice or a signal.