How do Keltner and Donchian channels differ from Bollinger Bands?
Short answerAll three draw lines above and below price, but each sets the width differently, so they flag different closes as "outside". Bollinger Bands use the standard deviation of the last 20 closes, so a trend's own movement widens them. Keltner Channels use the typical bar range (in the modern version, the average true range, ATR) around an exponential moving average, so they stay narrow in a steady trend. Donchian Channels are the highest high and lowest low of the last 20 bars, so a close above the prior upper line is a new 20-bar high. In this lesson's synthetic trend, price closed above the upper Keltner line 32 times in 70 days, above the prior 20-day high 19 times and above the upper Bollinger Band 9 times.
Before you read an outside close as rare, routine or a breakout, check which width the chart draws. Donchian is the natural tool for breakout rules, and also the one that whipsaws most visibly when a market moves sideways.
Valmy noteValmy's v1 strategy language includes the simple moving average and no other indicator, so Keltner and Donchian channels are taught here for reading charts (as of 26 November 2026). Keltner Channels need an exponential average and the average true range, and Donchian Channels need the highest high and lowest low over a window, and v1 offers none of these operations.
Keltner Channels: an average plus or minus the typical bar range#
A Keltner Channel draws a middle line from a moving average and places the upper and lower lines a measure of the typical bar's range above and below it. Unlike Bollinger Bands, its width depends only on how far price moves within each bar (plus any gap from the previous close, in the ATR version), not on how far the closes have drifted over the window. The modern version, popularized by the trader Linda Bradford Raschke in the 1980s, uses a 20-bar exponential moving average (EMA) of the close plus and minus 2 times the 10-bar average true range, written EMA 20 ± 2 ATR 10. These are StockCharts' default settings, and TradingView's default length is also 20. Chester W. Keltner's original, from his 1960 book How to Make Money in Commodities, uses a 10-day simple average of the typical price, (high + low + close) ÷ 3, plus and minus the 10-day average of each day's high − low range. Inputs are the high, low and close, and the lines are in price units.
Calculating Keltner Channels step by step#
The recipe for the 1960 version: average the last 10 typical prices for the middle line, average the last 10 high − low ranges, then add and subtract that average range. For the modern version: an EMA of the close for the middle line, ATR for the width, and 2 × ATR above and below. This example uses ten invented daily bars (synthetic data).
| Day | High | Low | Close | Typical price | High − low | True range |
|---|---|---|---|---|---|---|
| 1 | 101.20 | 99.00 | 100.00 | 100.0667 | 2.20 | |
| 2 | 101.50 | 100.10 | 101.20 | 100.9333 | 1.40 | 1.50 |
| 3 | 102.10 | 100.30 | 100.60 | 101.0000 | 1.80 | 1.80 |
| 4 | 101.70 | 100.20 | 101.40 | 101.1000 | 1.50 | 1.50 |
| 5 | 102.60 | 101.00 | 102.00 | 101.8667 | 1.60 | 1.60 |
| 6 | 102.90 | 100.90 | 101.60 | 101.8000 | 2.00 | 2.00 |
| 7 | 101.90 | 100.40 | 100.80 | 101.0333 | 1.50 | 1.50 |
| 8 | 101.80 | 100.50 | 101.50 | 101.2667 | 1.30 | 1.30 |
| 9 | 102.70 | 101.20 | 102.40 | 102.1000 | 1.50 | 1.50 |
| 10 | 104.30 | 102.10 | 103.90 | 103.4333 | 2.20 | 2.20 |
Keltner's 1960 channel on day 10.
- Typical prices: day 1 is (101.20 + 99.00 + 100.00) ÷ 3 = 100.0667, and so on. The ten values sum to 1,014.60, so the middle line is 101.46.
- Ranges: the ten high − low values sum to 17.00, so the average range is 1.70.
- Upper line: 101.46 + 1.70 = 103.16. Lower line: 101.46 − 1.70 = 99.76.
Day 10 closed at 103.90, above the 1960 upper line.
The modern channel on day 10, with short settings. To fit the table, this uses EMA 5 ± 2 ATR 5 instead of EMA 20 ± 2 ATR 10. The arithmetic is the same.
- EMA. The first value (day 5) is the simple average of the first five closes: 505.20 ÷ 5 = 101.04. Each later value moves a fraction 2 ÷ (5 + 1) = 1/3 of the way toward the new close: day 6 is 101.04 + (101.60 − 101.04) ÷ 3 = 101.2267. Continuing gives 101.0844 (day 7), 101.2230 (day 8), 101.6153 (day 9) and 102.3769 (day 10).
- True range is the largest of high − low, |high − previous close| and |low − previous close|. On day 2, high − previous close is 101.50 − 100.00 = 1.50, more than the 1.40 range. The other days' true ranges equal their high − low.
- ATR (Wilder's smoothing). The first value (day 6) averages the true ranges of days 2 to 6: 8.40 ÷ 5 = 1.68. Then ATR = (4 × previous ATR + true range) ÷ 5: 1.644 (day 7), 1.5752 (day 8), 1.5602 (day 9) and 1.6881 (day 10).
- Lines. 102.3769 ± 2 × 1.6881 gives 105.75 and 99.00.
On the same day, the close of 103.90 is outside the 1960 channel but well inside the modern one, whose width (6.75) is 1.99 times the 1960 width (3.40). Same name, different verdict.
Reading Keltner Channels on a chart#
On a chart, the modern Keltner Channel answers one question: is price moving further than its typical daily range would explain? The synthetic daily chart of a crypto pair below has a quiet range, a one-day spike on day 61 that trades 5.0% above the previous close and then falls back, and a trend from day 91.
- A, day 61: a spike to 105.48. The day's high was 5.0% above the previous close of 100.46, but it closed at 99.62. Because ATR uses the high and low, the spike counts in full.
- B, the width jumps from 3.9% to 6.0% of the middle line on day 61, then fades gradually: 4.7% ten days later. Wilder's smoothing lets the spike's influence decay a little each day instead of dropping out on a fixed date.
- C, trend: 6.1% versus 3.0%. From day 111 to day 160 the modern channel averaged 6.1% of price wide and the 1960 version 3.0%. Neither widened much, because the bars themselves did not get much larger. The closes rose, and the channels followed.
When Keltner Channels mislead#
- The name does not tell you the settings. The 1960 channel is about half as wide as the modern one on the same data: in the quiet stretch of Figure 1 (days 41 to 60) the 1960 channel averaged 2.2% of price and the modern one 4.1%. From day 91 to day 160, 38 closes landed above the 1960 upper line and 32 above the modern one. A "close above the Keltner Channel" on one platform may be well inside it on another. Check the average type, its length, the band measure (range or ATR) and the multiplier.
- In a steady trend, price can stay outside. The width ignores how far price has traveled over the window, and the EMA lags the trend. In Figure 1, 32 of the 70 closes from day 91 to day 160 were above the modern upper line. Reading each as "overextended, about to snap back" would have meant fading a trend over and over. For a trend-following reader, the same closes are the point: price is moving more than its typical bar range explains.
- A single wild bar lingers. After the day-61 spike, the modern channel stayed wider than before for weeks, although price had returned to its range the same day.
Donchian Channels: the highest high and lowest low#
A Donchian Channel draws an upper line at the highest high and a lower line at the lowest low of the last n bars, with a middle line halfway between. There is no average and no volatility estimate: the lines are actual prices that traded, and they move in steps. A close above the upper line drawn from the previous 20 bars means a new 20-bar high, which is why the channel is the standard way to define a breakout rule. Inputs are the high and low, the lines are in price units, and the usual default is 20 bars, the default in both StockCharts and TradingView. The channel is named after Richard Donchian, an early systematic trend follower. In a 1960 article in the Financial Analysts Journal, he described trading on breaks of the preceding two calendar weeks' range, as summarized in a later academic review (Park and Irwin, 2004).
Calculating Donchian Channels step by step#
The recipe: for each bar, take the highest high and lowest low of the chosen window. Using the ten-bar table above with a 5-bar window on day 10:
- The 5 bars before day 10 (days 5 to 9). Highs: 102.60, 102.90, 101.90, 101.80, 102.70. The upper line is 102.90. Lows: 101.00, 100.90, 100.40, 100.50, 101.20. The lower line is 100.40. The middle line is (102.90 + 100.40) ÷ 2 = 101.65.
- The 5 bars including day 10 (days 6 to 10). The upper line becomes 104.30, day 10's own high. The lower line stays 100.40.
Day 10 closed at 103.90. That is above 102.90, the highest high of the previous five days, so it is a 5-day breakout. It is below 104.30, the line that includes day 10 itself.
Is the current bar in the window?#
Whether the window includes the bar being judged changes what the channel can show. If the current bar is included, the upper line is always at least that bar's high, so a close can never be above it. A breakout rule must then compare the close with the channel drawn from the bars before it. StockCharts draws its price channels this way, noting that a break would otherwise be impossible. Charting tools differ, and TradingView's help page does not say which it uses, so check before reading a "break" of the line.
Timing matters too. A breakout is known only when the bar closes. The earliest realistic fill is at a price available after that close, such as the next bar's open, never the signal bar's own close. On day 10 in the table, that means the open of day 11. Valmy's backtests follow the same principle: strategies are evaluated on closed candles and executions are simulated on a later bar.
Reading Donchian Channels on a chart#
Because the lines are real highs and lows, a Donchian Channel shows exactly where price has to go to make a new n-bar high or low, and for how long an old extreme will keep defining the channel.
- A, days 61 to 80: the spike high of 105.48 sets the upper line for 20 days, although no close came near it. On a Donchian chart, one brief spike defines the breakout level for the full window.
- B, day 103: the first breakout close of the trend. The close of 100.96 was just above the prior 20-day high of 100.76. From day 91 to day 160 there were 19 such closes, shown as dots.
- C, day 81: the width falls from 8.0% to 4.0% of the middle line in a single day, because the spike's high dropped out of the 20-day window. Nothing happened in the market that day.
When Donchian breakouts whipsaw in a range#
A breakout rule wins when a new high is followed by more new highs. In a sideways market, new 20-day highs keep appearing near the top of the range and then fail, and each failure costs a little. In a synthetic market designed to move sideways for 140 days (Figure 3), a 20-day breakout rule bought three times and lost 3.9%, 5.1% and 5.8% after assumed fees, 14.0% in total.
The rule tested here is a simple long-only version: after a close above the prior 20-day high, buy at the next day's open; after a close below the prior 10-day low, sell at the next day's open. Each trade pays an assumed fee of 0.1% on the buy and on the sell.
| Trade | Signal close (day) | Buy at next open | Exit signal (day) | Sell at next open | Result after fees |
|---|---|---|---|---|---|
| 1 | 42 | 99.21 (day 43) | 51 | 95.53 (day 52) | −3.9% |
| 2 | 68 | 100.00 (day 69) | 84 | 95.11 (day 85) | −5.1% |
| 3 | 97 | 102.98 (day 98) | 104 | 97.25 (day 105) | −5.8% |
Together the three trades lost 14.0%, in a market whose close went from 100.00 on day 1 to 97.84 on day 140. The same rule on the trending series of Figures 1 and 2 also started with two losers, a 1.4% loss on a breakout in the quiet range (bought at 102.24 on day 25, sold at 100.96 on day 41) and a 3.4% loss early in the trend (bought at 100.96 on day 104, sold at 97.77 on day 114). Its third entry, at 102.10 on day 118, was still open on day 160 with a 24.2% gain before fees to the close of 126.85. Breakout rules tend to have many small losses and a few large gains, and whether the total is positive depends on whether trends long enough to pay for the whipsaws actually occur. An academic replication of channel and other trend rules in US futures markets found that profits seen in earlier data had largely faded in later years (Park and Irwin, 2004). See When does a breakout fail? for the evidence traders weigh before trusting a breakout, and Is this market trending or stuck in a range? for telling the two regimes apart.
Other ways Donchian Channels mislead:
- One extreme bar sets the level. A spike, a bad tick or a liquidation wick holds the upper or lower line for the whole window, as on days 61 to 80 in Figure 2.
- Gaps on stock charts. A US stock that gaps above its 20-day high at the open has broken out before anyone could buy at the old level, and a stop placed at the lower line can be jumped by an overnight gap. A crypto pair trading around the clock moves through the level continuously, although fast markets can still fill orders worse than expected (see What is a stop order, and why can it fill worse than its trigger price?).
- 20 bars is not the same span everywhere. Twenty daily bars are four trading weeks for a US stock and 20 calendar days for a crypto pair.
Bollinger, Keltner and Donchian compared on the same chart#
Measured on the same synthetic series with 20-bar settings, the three channels were similar in a quiet market but reacted very differently to a spike and to a trend. Bollinger Bands responded only to closes, Keltner Channels to the size of each bar, and Donchian Channels to the single highest and lowest prices in the window.
| Width as % of the middle line | Bollinger (20, 2) | Keltner (EMA 20 ± 2 ATR 10) | Donchian (20) |
|---|---|---|---|
| Quiet range, days 41–60, average | 2.9% | 4.1% | 3.3% |
| Day 60, before the spike | 3.5% | 3.9% | 3.5% |
| Day 61, spike day | 3.6% | 6.0% | 6.2% |
| Day 81, spike leaves the 20-day window | 4.5% | 4.8% | 4.0% (8.0% on day 80) |
| Trend, days 111–160, average | 10.7% | 6.1% | 10.5% |
| Closes outside the upper line, days 91–160 | 9 | 32 | 19 (above the prior 20-day high) |
What the comparison shows:
- What each width responds to. The day-61 spike traded far above the previous close but closed near it. Bollinger Bands, built from closes only, barely moved (3.5% to 3.6%). Keltner, built from bar ranges, widened to 6.0%. Donchian jumped to the spike's high at once.
- How each forgets. Donchian dropped the spike all at once after exactly 20 days (8.0% to 4.0% on day 81). Bollinger Bands behave the same way for a large close, which is why Bollinger also describes an exponential version. Keltner's ATR let the spike fade gradually.
- How each treats a trend. A trend spreads the closes in the window apart and stretches the distance between the 20-day high and low, so Bollinger and Donchian widened to about 10.5% of price. Keltner's width depends only on bar ranges, so it stayed near 6% and price closed above it 32 times. A close outside Bollinger Bands was the rarest of the three in this trend (9 times), a close outside Keltner the most common.
No width is correct. Each answers a different question: how unusual is this close compared with recent closes (Bollinger), is price moving further than its typical bar range (Keltner), and is this a new high or low for the window (Donchian).
Check your understanding: a Keltner line and a Donchian breakout#
Part 1, Keltner. A crypto pair's daily EMA(20) of the close is 250.0 today. Yesterday's ATR(10) was 6.0, and today's true range is 9.0. Today's close is 261.0.
- What are today's ATR(10) and modern Keltner lines (EMA 20 ± 2 ATR 10)?
- Is the close outside the channel?
Part 2, Donchian. Using a 5-day window for simplicity, the highs of the five days before today were 258.0, 263.5, 260.2, 261.8 and 259.0. Today's high is 264.0 and the close is 261.0.
- Is today's close a 5-day breakout?
- A chart that includes today in its window shows the upper line at 264.0. What does that line tell you, and what does it not?
Show the answers
Answer.
Part 1. (1) ATR(10) = (9 × 6.0 + 9.0) ÷ 10 = 63.0 ÷ 10 = 6.3. The lines are 250.0 + 2 × 6.3 = 262.6 and 250.0 − 2 × 6.3 = 237.4, a width of 10.08% of the middle line. (2) No. The close of 261.0 is inside, 1.6 below the upper line. Today's wide bar widened the channel slightly, which made it harder for the same bar to close outside.
Part 2. (1) No. The highest high of the five previous days is 263.5, and the close of 261.0 is below it. (2) Today's high of 264.0 was a new 5-day high during the day, so the line that includes today sits at today's high. A close can never be above a line that includes its own bar, so that line cannot show a closing breakout. A rule that waits for a close above the prior 5-day high has no signal today, and if one came on a later day, the earliest fill would be the following day's open.
Related lessons#
- Before this lesson: How much does this market usually move? ATR and historical volatility and What do Bollinger Bands measure, and does touching a band mean anything?
- See also: When does a breakout fail?, Is this market trending or stuck in a range?, Where would a trailing stop sit?, which builds the Chandelier Exit from the highest high and ATR, and How strong is this trend?