Part 2: The indicators one by one · Chapter 5 of 14 · 8 min

Bollinger bands and channels: they measure volatility, not direction

The formula of the bands (20-period average ± 2 standard deviations) and of the Donchian channel, what price does after a close outside, and what the bands measure well: after a squeeze the range of the next 10 candles is 8.35 ATR against 4.54 for any candle, but direction cannot be predicted.

The formulas

The Bollinger bands are three lines: a 20-period simple moving average and two bands at a distance of 2 standard deviations of the last 20 closes, above and below. When prices are scattered the bands widen, when they are close the bands narrow. They are used two ways: the close outside a band (read as "strength" or as "excess") and the squeeze (very narrow bands).

The Donchian channel of N periods is simpler: the high and the low of the last N candles. A close above the high is an upward breakout, below the low a downward one.

Closes outside the bands

With the standard bands (20, 2) price closes above the upper band in 122 candles (7%) and below the lower in 153 (9%). The benchmark with any candle gives: up carries on 36%, down carries on 40%.

SignalSignalsCarries onReversesMean move over 10 candles (ATR)
Above the upper band, read "up"12254% ±939%+0.55 ± 0.29
Above the upper band, read "down" (mean reversion)12239% ±954%−0.55 ± 0.29
Below the lower band, read "down"15242% ±841%−0.16 ± 0.29
Below the lower band, read "up" (mean reversion)15241% ±842%+0.16 ± 0.29

Above the upper band price carried on 54% of the time, against 36% for the benchmark. Below the lower band the result is even. The first close outside after a run inside gives 50 cases above (carries on 50%, ±14) and 58 below (read "down": carries on 47%, ±13). With other parameters: bands (20, 1.5) above carries on 47% (233 signals) and below 40% (261); bands (20, 2.5) above 63% (49 signals, ±13) and below 43% (74); bands (10, 2) above 49% (105) and below 55% (130). Signals of neighboring candles overlap: the real error is about three times larger.

Figure 1 shows two closes outside the upper band, on H4, from 17 to 29 August 2026. On 19 August at 12:00 the candle closes at $4,497.68, above the band at 4,462.92: ten candles later price is at 4,567.61. On 24 August at 20:00 it closes at 4,683.03, above the band at 4,669.73: ten candles later price is at 4,600.02. The first carried on, the second did not.

Figure 1. Two closes above the upper band: on 19 August (4,497.68) price carries on (4,567.61 ten candles later), on 24 August (4,683.03) it does not (4,600.02).Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 17 Aug 2026 00:00 UTC to 29 Aug 2026 20:00 UTC.
Read the chart in words

H4 gold chart from 17 to 29 August 2026 with the Bollinger bands (20, 2): two blue lines and the dashed grey average. Two labels mark the closes above the upper band and two mark the candle ten periods later.

WhenWhatPrice
19 Aug 2026 12:00 UTCcloses above the band4,501.85
24 Aug 2026 20:00 UTCcloses above the band4,687.99
21 Aug 2026 04:00 UTC10 candles later4,531.76
26 Aug 2026 12:00 UTC10 candles later4,586.44

Times in UTC.

The squeeze

The bands measure one thing well: volatility. We take the candles in which the band width (the distance between the two, as a percentage of price) sits in the lowest tenth of the last 100 candles, and look at the range (high minus low) of the next 10 candles, in ATR.

Band widthCandlesRange over the next 10 candles (ATR)
In the narrowest 10%209mean 8.35 ± 0.37 (median 7.71)
Any candle1,641mean 4.54 ± 0.09 (median 3.58)
In the widest 10%173mean 3.18 ± 0.15 (median 2.80)

After a squeeze the range is almost double that of any candle, after a widening it is about two thirds. Volatility tends to go back toward its normal level: quiet periods are followed by wider moves and agitated periods by relative calm. The figure does not give the direction.

Figure 2 shows a squeeze, on H4, from 28 August to 6 September 2026. On 31 August at 20:00 the band width is 1.26% (in the window it reaches 6.03%) with a close at $4,456.96 (ATR of 22.4 dollars). In the next 10 candles the high is 4,465.89 and the low 4,288.00: a range of 7.95 ATR, almost all downward.

Figure 2. A squeeze of the bands: width 1.26% on 31 August at 20:00 (4,456.96); in the next 10 candles price falls to 4,288.00, a range of 7.95 ATR.Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 28 Aug 2026 00:00 UTC to 6 Sept 2026 20:00 UTC.
Read the chart in words

H4 gold chart from 28 August to 6 September 2026 with the Bollinger bands (20, 2) and, below, the band width as a percentage of price. A label marks the squeeze, when the bands are narrowest.

WhenWhatPrice
31 Aug 2026 20:00 UTCnarrow bands4,460.43

Times in UTC.

The Donchian channel

With 20 candles, price closes above the channel high in 104 cases and below the low in 86. The upward breakout carried on 48% of the time (±10 points, mean move +0.65 ± 0.28 ATR), the downward one 42% (±10, −0.66 ± 0.33: after the downward breakout price rose back). The first breakout after a run inside: 53% upward (66 cases, ±12), 48% downward (52, ±14).

An always-in breakout system (long at the close above the high, short below the low, cost of 0.30 dollars per ounce):

ChannelTradesWinningMean per tradeTotalRandom flips with total at least equal
10 candles7129 (41%)+4.58 ± 14.46 dollars+32536%
20 candles3714 (38%)+0.68 ± 25.17 dollars+2547%
55 candles114 (36%)−1.11 ± 78.76 dollars−1259%

The longer channel gives fewer trades and a larger error on the mean. No length can be told from chance.

A four-step routine

  1. Write the parameters (20, 2) and what counts as a signal: a close outside, the first close outside or a squeeze.
  2. For the squeeze, measure the range that follows, not the direction.
  3. Do not read a close outside as a reversal or as continuation without a comparison against any candle.
  4. Use the band width to size the stop and the target, not to decide the direction.

Exercises

Chapter exercises

1. On the chart the letters sit on four candles, with the Bollinger bands. Which letter is the first close above the upper band?

Chart exercise. Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 17 Aug 2026 00:00 UTC to 29 Aug 2026 20:00 UTC.
Read the chart in words
WhenWhatPrice
24 Aug 2026 20:00 UTCPoint A4,687.99
19 Aug 2026 12:00 UTCPoint B4,501.85
21 Aug 2026 04:00 UTCPoint C4,571.50
19 Aug 2026 00:00 UTCPoint D4,331.01

Times in UTC.

2. How are the Bollinger bands (20, 2) built?

3. After a squeeze of the bands the range of the next 10 candles is 8.35 ATR against 4.54 for any candle. What does it say?

4. The 20-candle Donchian breakout system gave +25 dollars per ounce over 37 trades, and random flips do at least as well 47% of the time. What do you conclude?

Have a question or want to share your exercise?

Post in the community, or join the free signals room on Telegram.

Educational content, not financial advice. Trading involves risk.