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.
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 see | What it suggests |
|---|---|
| Bands far apart | Recent prices have moved a lot. |
| Bands close together | Recent prices have been calm. Often called a squeeze. |
| Price at or above the upper band | Price is high compared with its recent average. |
| Price at or below the lower band | Price 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
- Moving averages: SMA and EMA explainedA moving average smooths price into one line. Learn how the SMA and EMA are calculated, how they differ, and how to use them in your own rules.
- What is ATR? Average True Range explainedATR measures how far price typically moves in one candle. Learn how it is calculated, how to read it, and how to use it in your own rules.