Indicator Guide / Volatility

Bollinger Bands®Volatility bands around a moving average

Bands above and below an average of price that widen when price swings more and narrow when it calms down.

Bollinger Bands® 20, 2 on a practice chartMade-up prices
Top: price with the average (orange, dashed) and the upper and lower bands (purple). Bottom: BandWidth, how wide the bands are.
01 · WHAT IT IS

Bollinger Bands® draw a band 2 standard deviations above and below a 20-bar average of price.

A standard deviation, or spread, measures how far the closes sit from their average. When price swings more, the bands widen. When price calms down, they narrow.

02 · UNDER THE HOOD
  • Average (20)
  • Upper and lower band (2 × spread)
  • 1 × spread

Average–

Spread (std dev)–

Upper–

Lower–

%b–

BandWidth–

Each dot is one of the last 20 closes. The orange line is their average. The spread (standard deviation) measures how far the dots sit from it. The bands sit 2 spreads above and below. %b shows where the last close sits: 0 at the lower band, 1 at the upper band.

How it is worked out

Middle band = simple average of the last 20 closes. Spread = standard deviation (population form, dividing by 20): how far those 20 closes sit from that average. Upper band = middle + 2 × spread. Lower band = middle − 2 × spread. %b = (close − lower) ÷ (upper − lower). BandWidth = (upper − lower) ÷ middle.

03 · WHO MADE IT, AND WHY

“One day I copied a volatility formula down a column of data and noticed that volatility was changing over time. Seeing that, I wondered if volatility couldn't be used to set the width of trading bands.”

John Bollinger, “A complete explanation of Bollinger Bands”, bollingerbands.com

John Bollinger, Early 1980s. He named them on air at the Financial News Network, when host Bill Griffeth asked what he called his bands. Bollinger became active in the markets full time in 1980. He was mainly interested in options and technical analysis. Soon after the bands, he created %b and then BandWidth. Bollinger Bands® is his registered trademark.

Before this, popular bands sat a fixed percent above and below an average. Traders had to adjust those bands over time. He wrote that the adjusting let emotions into the analysis.

04 · TWO TERRAINS
In a sideways market, price can swing from one band to the other. Bollinger's rule: price is high at the upper band and low at the lower band.Code picked this after the fact.
Trail · TrendStrong rise
In a strong rise, price can walk up the upper band. A touch of the band is not, on its own, a sell signal.Code picked this after the fact.

Good for

  • Seeing whether price is high or low compared with its recent range. Bollinger's first rule: price is high at the upper band and low at the lower band.
  • Seeing volatility change. Narrow bands mean a quiet market. StockCharts calls it the Bollinger Band Squeeze when the bands narrow as volatility drops.
  • Pairing the bands with indicators that are not related to each other, such as one momentum and one volume indicator. Bollinger says two momentum indicators aren't better than one.

Not good for

  • A buy or sell signal on its own. Bollinger's rule: “Tags of the bands are just that, tags not signals.”
  • Calling turns in strong trends. Price can walk up the upper band or down the lower band, so a touch is not a turn.
  • Statistical odds. Bollinger warns against statistical assumptions. With the default settings, he typically finds about 90% of the data inside the bands, not 95%.
  • One setting for every market. Bollinger calls 20 and 2 defaults. Other markets may need other settings.
Where it fails

Bands mislead when you read them as a turn signal in a trend. Bollinger's own rules say price can walk along a band in a trend. He also says closes outside the bands are at first continuation signals, not reversal signals. Selling every touch of the upper band in a strong rise can mean selling while the move is running.

05 · TRY IT

On the chart below, find every close above the upper band. For each one, count the next 10 bars. Did price fall, go sideways or keep rising? Bollinger says closes outside the bands are at first continuation signals. On made-up prices, this shows you how to spot the pattern. It does not test the rule.

Every close above the upper band

  • 0Fell
  • 0Went sideways
  • 0Kept rising
Fell or kept rising: price moved more than 2% down or up after 10 bars. Went sideways: within 2%. Gold shading marks the 10 bars counted.Made-up prices. This shows how to read Bollinger Bands®. It does not show whether they work.
06 · SETTINGS AND MISTAKES
  • Average20 barsA simple average of the close.
  • Width2The number of spreads (standard deviations) above and below the average.
  • %b1 at upper, 0 at lowerAbove 1 when price closes above the upper band. Below 0 when it closes under the lower band.
  • BandWidthRatioThe gap between the bands divided by the average.

Common mistakes

  • Selling every touch of the upper band.
  • Assuming 95% of prices stay inside the bands.
  • Using two momentum tools to confirm each other.
  • Changing the settings until past trades look good, without checking them on data you held back.
07 · OUR TESTS

We have not measured this on our data yet. A Library episode will test John Bollinger's band rules, with fees and held-out data.

Sources (6)
  1. John Bollinger: Bollinger Band Rules (bollingerbands.com)Rules 1, 4, 6, 7, 8, 9 and 14: high and low, unrelated indicators, tags not signals, walking the bands, continuation, defaults, about 90% inside with the default settings
  2. John Bollinger: A complete explanation of Bollinger Bands (bollingerbands.com)Why he built them, in his words; full time from 1980, options; percentage bands and emotions; population standard deviation; the name on the Financial News Network; %b and BandWidth
  3. StockCharts ChartSchool: Bollinger BandsFormula, 20 and 2, registered trademark note, the Squeeze, walking the bands; worked example used to test our code
  4. StockCharts ChartSchool: Bollinger Band SqueezeThe Squeeze: the bands narrow as volatility drops
  5. John Bollinger on the Meb Faber Show, episode 37 (2017)Started in 1982, finished about 1983: early 1980s
  6. Wikipedia: Bollinger BandsFormula, %b and BandWidth definitions

Indicators are public ideas. The words here are ours, with credit to each source. Information, not advice.