Bollinger Bands explained: how to read and use them

By Oalgo · Last reviewed

Bollinger Bands are two lines drawn above and below a moving average. They sit a set number of standard deviations away, so they widen when price moves a lot and narrow when it is quiet. The usual settings are a 20-period average and 2 standard deviations.

Chart: example prices with Bollinger Bands, 20 periods and 2 standard deviations: a middle band, an upper band and a lower band. The bands are wider where prices move more.PriceUpper bandMiddle bandLower band
Example prices, made up for this page.

How are Bollinger Bands calculated?

#
  • Middle band: the 20-period simple moving average (SMA) of the close.
  • Standard deviation: a measure of how widely the last 20 closes are spread around that average.
  • Upper band = middle band + 2 × standard deviation.
  • Lower band = middle band − 2 × standard deviation.

A bigger multiplier than 2 puts the bands further out. A shorter period makes them follow price more closely.

How do you read Bollinger Bands?

#
What you seeWhat it suggests
Bands far apartRecent prices have moved a lot.
Bands close togetherRecent prices have been calm. Often called a squeeze.
Price at or above the upper bandPrice is high compared with its recent average.
Price at or below the lower bandPrice is low compared with its recent average.

Touching a band is not a turning point. In a strong trend, price can stay near one band for a long time.

How do people use Bollinger Bands in rules?

#
  • Enter when the close moves back inside the lower band, aiming for a move back to the middle band.
  • Treat a close above the upper band as a breakout filter.
  • Exit when price reaches the middle band.
  • Compare the width of the bands with their own recent width to tell calm periods from active ones. ATR measures the size of recent moves in a different way.

What can Bollinger Bands not tell you?

#

The bands describe recent price, not the next candle. Price can close outside them several candles in a row, and a squeeze does not say which way price will break out. If you tune the period and the multiplier until the past looks good, the rule may stop working on new prices. Test it on past prices with a backtest, then forward test it.

In Oalgo you can tell Oalgo AI your Bollinger Bands rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read next