Library · Indicators

Bollinger Bands

Bollinger Bands are a 20-period moving average with an upper and a lower band set two standard deviations away, so the bands widen and narrow as volatility changes.

  • Beginner
  • 5 min read
  • Updated

Why it matters

Is a price of 104 high? It depends on how much the market has been moving. In a quiet market, 4 points above average is a big stretch. In a wild one, it is nothing. Bollinger Bands, created by John Bollinger in the 1980s, build that adjustment into the chart.

The bands answer two questions at once: where is price relative to its recent average, and how volatile has the market been? The second question is the one beginners tend to overlook.

What it looks like

Upper / lower band (2 std dev)Middle band (SMA 20)
The bands contract while price moves quietly, then spread apart when price starts to move quickly. The middle line is a 20-period SMA. Hypothetical data for illustration.

Three lines are drawn over the candles: a middle band, an upper band and a lower band. The channel between the outer bands breathes in and out. Narrow bands mean recent closes have been tightly clustered. Wide bands mean they have been spread out.

How it is calculated

Building the bands
  1. Middle bandA 20-period SMA of the close.
  2. Standard deviationHow widely those 20 closes are spread around their average.
  3. Upper bandMiddle band plus 2 standard deviations.
  4. Lower bandMiddle band minus 2 standard deviations.
Upper band = SMA(20) + 2 x SD(20) Lower band = SMA(20) - 2 x SD(20)SD(20) is the standard deviation of the last 20 closes. The middle band is the SMA(20) itself.

Standard deviation is a measure of spread. It is small when the closes in the window are all near their average and large when they are scattered far from it. The middle band is a simple moving average, so everything on this indicator comes from the last 20 closing prices.

A hypothetical set of bands
  1. Upper band105100 + (2 x 2.5). A close here is high relative to the last 20 closes.
  2. Middle band100The 20-period SMA.
  3. Lower band95100 - (2 x 2.5). A close here is low relative to the last 20 closes.
With an average of 100 and a standard deviation of 2.5, the bands are 10 points apart. If the standard deviation fell to 1, they would be 4 points apart.

In plain words

Picture a road whose lanes are repainted every day to match how much the traffic has been weaving. Calm traffic gets a narrow road. Erratic traffic gets a wide one. A car near the edge of the road is far from the centre by recent standards. The paint does not stop it from crossing the line.

Settings and what they change

Setting Default Effect of changing it
Period 20 Shorter: bands react faster and wobble more. Longer: smoother and slower
Multiplier 2 Smaller: narrower bands that price touches often. Larger: wider bands that price rarely reaches

Bollinger’s own guidance is to adjust the multiplier slightly when the period changes, narrowing it a little for shorter periods and widening it a little for longer ones.

It is often said that about 95% of closes fall inside the bands. That figure comes from an idealised bell-curve distribution, and market prices do not follow one exactly, so the true share varies with the market and the settings. Adjusting the settings until price “respects” the bands on an old chart is overfitting.

How to read it

  • Band width. Narrow bands describe low recent volatility. Wide bands describe high recent volatility.
  • The squeeze. A period of unusually narrow bands is called a squeeze. Volatility tends to move in cycles, so quiet periods are often followed by more active ones. The squeeze says nothing about the direction of the move that follows.
  • A touch of a band. The close is roughly two standard deviations from its 20-period average: high or low relative to recent closes. It is a description of past data, not a signal.

Going deeper

Walking the band

Upper / lower band (2 std dev)Middle band (SMA 20)
In a sustained trend, price can ride along the upper band for many candles while the band itself keeps rising. Hypothetical data for illustration.

In a strong uptrend, price can touch or close near the upper band candle after candle. Practitioners call this walking the band. Each touch describes strength, and the bands rise along with price. The same happens along the lower band in strong declines.

Reading a band touch as a stretched price fits best in a range, where price does travel back toward its average, which is why the bands are popular in mean reversion thinking. Whether the market is ranging or trending is something the bands do not determine by themselves.

%B and BandWidth

Bollinger derived two helper indicators from the bands:

  • %B shows where price sits between the bands: 0 at the lower band, 0.5 at the middle, 1 at the upper.
  • BandWidth is (upper band - lower band) / middle band. It turns the squeeze into a single number.

The same price, two different messagesHypothetical illustration

A hypothetical asset has a 20-period SMA of 100 and a standard deviation of 2.5. The bands sit at 105 and 95. A close at 104 is inside the bands, and %B = (104 - 95) / (105 - 95) = 0.9. BandWidth = 10 / 100 = 0.10.

Weeks later the SMA is still 100 but the market has gone quiet, and the standard deviation is 1. The bands are now 102 and 98, and BandWidth = 4 / 100 = 0.04.

A close at 104 would now be well outside the upper band. The price is identical. What changed is how unusual it is compared with recent behaviour.

How practitioners use them

Bollinger himself stresses that a band touch is not a signal on its own, and suggests pairing the bands with indicators from other families, such as volume or momentum. Many traders use the bands mainly as a volatility gauge next to market structure, and compare them with ATR, which measures volatility in a different way.

What it does NOT mean

  • A touch of the upper band does not mean “sell”. It means the close is high relative to the last 20 closes, which is normal in an uptrend.
  • A touch of the lower band does not mean “buy”. In a decline, price can follow the lower band down for a long time.
  • The bands are not support and resistance. They are a calculation that moves with price. Price closes outside them regularly.
  • A squeeze does not predict direction. It describes quiet conditions. The following expansion can go either way, or fail to appear for a long while.

Common mistakes

  1. Fading every band touch. This runs directly against strong trends.
  2. Guessing the direction of a squeeze. The bands measure the size of moves, not their sign.
  3. Treating a close outside the bands as extreme. It happens routinely, including at the start of strong moves.
  4. Fitting the settings to the past. A period and multiplier chosen so that old candles stay inside the bands were chosen with hindsight.

Risks and limitations

  • The bands are built from an SMA and a standard deviation of past closes, so they lag.
  • One very large candle widens the bands sharply, and they narrow again when it leaves the 20-period window.
  • The bands describe volatility and relative position. They say nothing about direction, value or what happens next.

Key takeaway

Bollinger Bands are a 20-period SMA with bands two standard deviations above and below. They show whether price is high or low relative to its recent average and how volatile the market has been, and nothing about where it goes from there.

Sources and further reading

  • Bollinger on Bollinger Bands, John Bollinger (2001). The creator's own description of the bands, %B and BandWidth
  • Technical Analysis of the Financial Markets, John J. Murphy (1999)