Bollinger Bands & Volatility
Bollinger Bands put an envelope around price: a 20-period simple moving average in the middle, with bands two standard deviations above and below it. Because standard deviation measures how spread out recent prices are, the bands widen when the market becomes volatile and narrow when it goes quiet. That makes them first of all a volatility tool — they show you when a market is compressed and when it is stretched, not which way it will go next.

From standard deviation to bands (hypothetical numbers). To see how standard deviation works, take just five closes: 10, 11, 12, 11, 11.
- Mean = 55 ÷ 5 = 11.
- Deviations from the mean: −1, 0, +1, 0, 0. Squared: 1, 0, 1, 0, 0. Sum = 2.
- Variance (population) = 2 ÷ 5 = 0.4. Standard deviation = √0.4 ≈ 0.632.
Real Bollinger Bands use 20 closes, but the arithmetic is the same. Suppose a stock's last 20 closes have a mean of 50.00 and a standard deviation of 1.25:
- Middle band = 50.00
- Upper band = 50.00 + 2 × 1.25 = 52.50
- Lower band = 50.00 − 2 × 1.25 = 47.50
- Bandwidth = (52.50 − 47.50) ÷ 50.00 = 0.10, or 10%.
The stock closes at 52.00. %B = (52.00 − 47.50) ÷ (52.50 − 47.50) = 4.50 ÷ 5.00 = 0.90 — it is 90% of the way from the lower band to the upper band.
A month later, the standard deviation has fallen to 0.40 around a 50.00 average: bands at 49.20 and 50.80, Bandwidth 3.2%. Volatility has compressed by more than two-thirds. That says a bigger move becomes more likely at some point; it says nothing about the direction.
- Week 5 — The squeeze: bands at 49.20 and 50.80.
- Week 6 — Expansion: volatility returns. Direction comes from price, not the bands.
Illustrative, not real data. Bandwidth = (upper − lower) ÷ middle; Weeks 1 and 5 match the demo's arithmetic.
How the bands are built
John Bollinger developed the bands in the 1980s. The standard settings:
- Middle band: a 20-period simple moving average of the close.
- Standard deviation: computed over the same 20 closes, using the population formula (divide by N, not N − 1).
- Upper band = middle + 2 × standard deviation. Lower band = middle − 2 × standard deviation.
Some platforms use the sample formula (divide by N − 1), which makes the bands very slightly wider. Settings like 20 periods and 2 deviations are conventions; Bollinger has suggested adjusting the multiplier modestly if you change the period, but the defaults are what most traders watch.
"Two standard deviations" does not mean 95%
In a normal distribution, about 95% of values fall within two standard deviations of the mean. It is tempting to assume price stays inside the bands 95% of the time. Don't: market prices are not normally distributed, trends make closes cluster on one side, and the band itself moves with price. How often price closes outside the bands depends heavily on the market and period. Treat the bands as a relative measure of stretch, not a probability.
Reading %B and Bandwidth
- %B above 1 means price closed above the upper band; below 0, below the lower band; 0.5, on the middle band.
- Bandwidth shrinking to unusually low levels relative to its own history is the squeeze. It marks a quiet period that tends to give way to a more volatile one.
Three common ways to use the bands
- Volatility squeeze. Watch for Bandwidth at a multi-month low, then trade the direction of the breakout from the squeeze with a stop on the other side of the range. The squeeze tells you when; price tells you which way.
- Walking the band. In a strong uptrend, price can close at or above the upper band repeatedly. That is a sign of strength, not exhaustion. Pullbacks toward the middle band are often where trend traders look for entries.
- Mean reversion in ranges. In a sideways market, moves to the outer bands that fail to follow through can reverse toward the middle band. This works only while the range holds — the same band touch in a trending market can be the start of a breakout.
Combining with other tools
Because the bands only describe volatility and relative position, they work best alongside something that describes direction or participation: market structure (higher highs and lows), a longer moving average, volume, or a momentum indicator such as RSI. A close above the upper band on strong volume after a squeeze is a different situation from a close above the upper band on falling volume into resistance.
A squeeze plan, worked
Take the compressed market from the demo: bands at 49.20 and 50.80, Bandwidth 3.2%, and a tight range over the past two weeks between about 49.40 and 50.60. Rather than guess the direction, a trader prepares two orders:
- Long trigger: a buy-stop at 50.70, just above the range, with a stop at 49.30 below the other side. Risk = 1.40.
- Short trigger: a sell-stop at 49.30, with a stop at 50.70. Same risk of 1.40.
Whichever triggers first, the other order is cancelled. A first target of 2R would be 53.50 for the long (50.70 + 2.80) or 46.50 for the short (49.30 − 2.80). If price breaks out, fails and returns inside the range, the stop takes the loss and the trader waits for the next setup instead of flipping direction on impulse.
The structure matters more than the indicator: the squeeze identified the opportunity, but the range boundaries supplied the entries and the stops.
Common mistakes
- Treating band touches as reversal signals in trending markets.
- Assuming 95% containment because of the "2 standard deviations" label.
- Trading a squeeze in the direction you hope for before price breaks.
- Ignoring the middle band, which is often the most useful level in a trend.
- Changing the settings on every chart.
1. Middle band 80.00, standard deviation 2.50. Where are the upper and lower bands?
2. Bands at 75.00 and 85.00, price at 77.00. What is %B?
3. Bandwidth falls to its lowest level in six months. What does that tell you?