Skip to main content

Bollinger Bands

IntermediateEquity MarketsAlso known as: volatility bands, technical analysis bands, standard deviation bands

Finds: A price range based on recent volatility.

When to use it: Use it to see whether a price is high or low compared with its own recent range. Bands widen when the market is volatile and narrow when it is calm. A price near the upper band is only "high" relative to recent history, not necessarily overvalued.

The formula

Upper\displaystyle \text{Upper}=SMA+kσ\displaystyle =SMA+k\sigmaLower\displaystyle \text{Lower}=SMA−kσ\displaystyle =SMA-k\sigma

In words: Bands = Simple moving average of the last n prices plus and minus k standard deviations (k is usually 2)

What each symbol means

SMASimple moving average of the last n closing pricesmoney
sigmaStandard deviation of those n pricesmoney
kNumber of standard deviations, normally 2number
%BWhere the latest price sits: 0 at the lower band, 1 at the upper bandnumber

Worked example

Over the last 20 days a stock closed at 20, 21, 22, 21, 23, 24, 22, 25, 26, 25, 27, 26, 28, 27, 29, 28, 30, 29, 31 and 30. What are the 2-standard-deviation Bollinger Bands?

Middle band25.70
Standard deviation of the last n prices3.2879
Upper band25.7 + 2 × 3.2878632.28
Lower band25.7 − 2 × 3.2878619.12
%B([20, 21, 22, 21, 23, 24, 22, 25, 26, 25, 27, 26, 28, 27, 29, 28, 30, 29, 31, 30][−1]−19.1243) ÷ (32.2757 − 19.1243)0.83
The answer

The 20-day average is 25.70. The bands run from 19.12 to 32.28. The last price of 30 has a %B of 0.83, in the upper part of the range.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

Upper band32.28
Middle band25.70
Lower band19.12
%B0.83

Keep going