Technical Indicators
IntermediateLesson 38 of 70 · 9 min read

Bollinger Bands and ATR: measuring volatility

Volatility is how much price swings; Bollinger Bands draw it around price and ATR gives it as a number you can use to set stops.

Prefer bite-sized cards? Use Step by step above to study this lesson one idea at a time, with a quiz at the end.

Volatility means how much price moves around. A stock swinging $1 per candle is more volatile than one moving $0.05. Volatility says nothing about direction, only about the size of the swings. It matters a great deal for risk, because a stop that is sensible on a quiet stock will be hit by ordinary noise on a wild one.

Volatility: size of the swings, not direction
← QuietWild →
$0.05 per candle $1 per candle

Bollinger Bands

150.00151.00152.00152.3510:2110:3810:5511:1211:2911:4612:0312:20
12:30O 152.30H 152.35L 152.24C 152.35Bollinger 20,2
Bollinger Bands: a 20-period average in the middle with an upper and lower band that widen when volatility rises and narrow when it falls.

Bollinger Bands are three lines drawn over price. The middle line is a 20-period SMA. The upper and lower bands sit two standard deviations above and below it. Standard deviation is a statistic that measures how spread out the recent prices are; you do not need to calculate it, only to know that the bigger the recent swings, the bigger the number.

Example · Bollinger Bands in numbers
ACME's 20 SMA is $25.00 and the standard deviation of its last 20 closes is $0.50. Upper band = 25.00 + 2 × 0.50 = $26.00. Lower band = 25.00 − 2 × 0.50 = $24.00. If volatility doubles so the standard deviation becomes $1.00, the bands widen to $27.00 and $23.00.
ACME's bands
$27.00Upper, volatility doubled
$26.00Upper band · $25 + 2 × $0.50
$25.00Middle: 20 SMA
$24.00Lower band · $25 − 2 × $0.50
$23.00Lower, volatility doubled
  • Band width shows volatility. Wide bands mean big swings; narrow bands mean a quiet market.
  • The squeeze. When the bands become unusually narrow, volatility is very low. Quiet periods are often followed by a sharp move, so a squeeze is a heads-up that a breakout may be coming. It does not tell you the direction.
  • Touching a band. Most closes fall inside the bands, so a close outside is unusual. In a range, a touch of the upper band often marks a stretched price. In a trend, price can 'walk the band', hugging the upper band candle after candle as it climbs.
Watch out
A touch of the upper band is not a sell signal and a touch of the lower band is not a buy signal. Just like 'overbought' on RSI, a band touch in a strong trend is a sign of strength.
A touch of the upper band
In a range
  • Often marks a stretched price
In a trend
  • Price can walk the band, candle after candle
  • A sign of strength, not a sell signal

ATR: Average True Range

84.0085.0086.0087.0083.77ATR 14 0.1210:2410:4211:0011:1811:3611:5412:1212:30
12:40O 83.81H 83.81L 83.69C 83.77
Price with the ATR panel. ATR rises when candles get bigger and falls when the market goes quiet.

ATR is a single number: the average distance price has covered per candle over the last 14 candles. For each candle it uses the true range, which is the largest of three measurements: the candle's high minus its low, the high minus the previous close, or the previous close minus the low. Using the previous close makes sure gaps between candles are counted.

Example · True range
Yesterday ACME closed at $20.00. Today it gaps up, with a high of $20.80 and a low of $20.10. High − low = $0.70. High − previous close = $0.80. Previous close − low is negative, so its size is $0.10. The true range is the largest: $0.80. ATR is the average of the last 14 true ranges.
True range: the largest of three
High − low$0.70
High − previous close$0.80
Previous close − low$0.10

The gap up makes high − previous close the largest, so the true range is $0.80. ATR averages the last 14.

Using ATR to set stops

ATR tells you how much a stock normally wiggles. A stop placed closer than that normal wiggle will be hit by noise even if your idea is right. A common approach is to place the stop a multiple of ATR away from the entry, often 1.5 to 2 times.

normal wiggle
ATR
×
1.5 to 2
Multiple
=
outside the noise
Stop distance
Example · An ATR stop
On the 5-minute chart ACME's ATR is $0.20. You buy at $30.00 and use a 1.5 × ATR stop: 1.5 × $0.20 = $0.30, so the stop is $29.70. On ZETA, a wilder stock at the same price with an ATR of $0.60, the same rule gives a $0.90 stop distance and a stop at $29.10. To risk the same dollars on both, you would buy only one third as many ZETA shares. You will learn that sizing formula in the next module.
Same rule, two stocks bought at $30.00
ACME (calm)
  • ATR $0.20
  • 1.5 × ATR = $0.30
  • Stop at $29.70
ZETA (wild)
  • ATR $0.60
  • 1.5 × ATR = $0.90
  • Stop at $29.10
  • One third as many shares for the same dollar risk
Key idea
Volatility decides your stop distance, and your stop distance decides how many shares you can afford to buy. More volatile stock, wider stop, smaller position.
More volatile stock
Wider stop
Smaller position
Tip
ATR depends on the timeframe. The ATR on a 1-minute chart is much smaller than on a daily chart. Use the ATR of the timeframe you are actually trading.

Key takeaways

  • Volatility is the size of price swings, not their direction.
  • Bollinger Bands are a 20 SMA with bands two standard deviations either side; they widen and narrow with volatility.
  • A squeeze (very narrow bands) hints that a bigger move is coming but not which way.
  • ATR is the average true range per candle and gives volatility as a single number.
  • Stops set at a multiple of ATR sit outside normal noise; wider stops require smaller positions.
Try the indicators in the simulator

Check your understanding

Score 70% or more to pass the lesson. You can retry as often as you like.

1. The 20 SMA is $40 and the standard deviation is $1.50. Where is the upper Bollinger Band?
2. What does a Bollinger Band squeeze tell you?
3. ATR is $0.40. You buy at $50.00 with a 2 × ATR stop. Where is the stop?
4. What does ATR tell you about direction?