Volatility indicators

Donchian Channel: Formula, Turtle Rules, and a Breakout Test on Five Markets

How the Donchian channel turns the 20-day high and low into breakout signals, what the Turtle rules added, every breakout on a recent Bitcoin chart with what came next, and how the bare breakout fared on five markets.

· Founder of PatternsWizard
Checked 12 min read
Donchian Channel(20)
On this page
  1. How the Donchian channel is calculated
  2. How traders read the channel
  3. The Turtle rules
  4. The channel on a real chart
  5. A breakout test on five markets
  6. Does it work?
  7. Frequently asked questions

The Donchian channel draws the highest high and the lowest low of the last 20 bars around price, with a middle line halfway between. When price trades above the upper line it has made a new 20-day high; below the lower line, a new 20-day low. That simple rule was the entry signal of the Turtle traders, and it is still the core of many trend-following systems. Below: the formula, the Turtle rules as published by former Turtles, every breakout on a recent Bitcoin chart with what followed, and a test of three channel lengths on five markets over 9 to 33 years.

Donchian Channel(20) on daily Bitcoin

87,39672,59857,800Jul 1, 2026Aug 29, 2026Oct 28, 2026
  • Price, daily candles (hollow up, filled down)
  • Upper, highest high of the previous 20 bars (solid line, second color)
  • Lower, lowest low of the previous 20 bars (solid line)
  • Middle, (upper + lower) / 2 (dashed line)
  • Close above the upper line (new 20-bar closing breakout, first day)
  • Close below the lower line (first day)
  • Shaded area between the bands
Donchian Channel(20) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

How the Donchian channel is calculated

StockCharts publishes the indicator as Price Channels and notes that it was developed by Richard Donchian. The upper line is the 20-day high, the lower line the 20-day low and the centerline their average. StockCharts builds the channel from the bars before the current one: a 20-day channel for October 21 uses the 20 days that end on October 20. That is what makes a break possible. If the current bar were included, its own high would set the upper line, and price could touch the line but never close above it.

Which bars set the Donchian channel

UpperMiddleLowerPrevious n bars setthe highest high and lowest lowTodaybreaks out
Schematic, not market data.

The lines only move when an old extreme drops out of the window or a new one is set, which is why they look like steps. The channel width, upper minus lower, is a plain measure of how far price has ranged over the period: it widens in volatile markets and narrows in quiet ones. Unlike Bollinger Bands or the Keltner channel, there is no average or volatility formula behind it, only the extremes.

How traders read the channel

What you seeThe usual reading
Price above the upper lineA new high for the period: a trend follower's buy signal
Price below the lower lineA new low for the period: a sell or short signal
Price crossing the middle lineHalfway between the extremes; some traders use it as a trailing exit
Upper line rising, lower line flatHigher highs without lower lows: an uptrend
Channel narrowingThe range is shrinking: a quiet market

StockCharts adds that the channel can also be used to spot overbought and oversold levels inside a larger trend, for example a pullback to the lower line in an uptrend. That is a different use from the breakout, and the two give opposite instructions at the same line, so pick one before the trade.

Donchian Channel(20) on the daily S&P 500 ETF

781.6727.4673.2May 8, 2026Aug 4, 2026Oct 28, 2026
  • Price, daily candles (hollow up, filled down)
  • Upper, highest high of the previous 20 bars (solid line, second color)
  • Lower, lowest low of the previous 20 bars (solid line)
  • Middle, (upper + lower) / 2 (dashed line)
  • Close above the upper line (new 20-bar closing breakout, first day)
  • Close below the lower line (first day)
  • Shaded area between the bands
Donchian Channel(20) on S&P 500 ETF, dividend-adjusted prices, daily, May 8, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

The same channel on the S&P 500 ETF, over its last 120 sessions from May 8 to October 28, 2026, shows a market that rose (from 733.90 to 772.31 on our adjusted closes): it closed above the upper line on 14 days and below the lower line on only 3, on July 29, September 10 and September 16.

The Turtle rules

The best-known use of the channel is the system taught to the Turtle traders by Richard Dennis and William Eckhardt. The rules published in 2003 by former Turtles describe two entries, each based on Donchian's channel breakout:

  • System 1: enter on a 20-day breakout, a price above the high or below the low of the preceding 20 days. Exit longs on a 10-day low and shorts on a 10-day high. A System 1 breakout was skipped if the previous breakout would have been a winner, but a 55-day breakout was always taken so that a big trend was not missed.
  • System 2: enter on a 55-day breakout, exit on a 20-day breakout against the position.
  • Entries during the day: the Turtles entered when the level was exceeded during the day, not at the close or the next open; when the market opened through the level, they entered at the open.
  • Position size and stops: N, a 20-day average of the true range, set the size of each unit so that a 1 N move was 1% of account equity, and stops were placed 2 N from the entry, so a stopped-out unit lost about 2%. N is an average true range by another name; see also position sizing.

The channel is the entry; most of the system is in the exits, the stops and the sizing. A plain channel breakout without them is not the Turtle system, which is why the test below calls itself a breakout test.

Entry on the long channel, exit on the short one

Buy: above the highof the long windowExit: below the lowof the short windowSolid steps: long-window high. Dashed: short-window low.
Schematic, not market data. Window lengths are schematic; the first Turtle system exited on a window half as long as its entry window.

The channel on a real chart

The 120-day Bitcoin chart above shows the daily Donchian(20) from July 1 to October 28, 2026, using the 20 bars before each day. The marks show the first close outside the channel; a close that stays outside on the following days does not get a new mark. There were five, and this is everything that followed each one, with the classic exit, the first close below the low of the previous 10 days after an upside break, or above the high of the previous 10 days after a downside break.

First close outsideCloseChannel line10 bars later20 bars laterFirst 10-day exit
Above, July 14, 202665,043.9864,700−1.39%−2.34%September 15 at 75,644.48, +16.30%
Above, July 21, 202666,556.1665,799−5.51%−3.89%September 15, +13.66%
Above, August 19, 202669,334.7965,474.46+12.83%+13.16%September 15, +9.10%
Below, September 15, 202675,644.4876,046.58+11.18%+13.38%September 18 at 80,883.87, −6.93% for a short
Above, September 21, 202686,62082,300−2.01%−3.29%October 8 at 81,754.45, −5.62%

Read as a single long-or-short position on the closes, starting flat on July 1 (the last short, opened on the downside close of May 22, had been closed on June 14), the window held three trades. The long from July 14 went nowhere for a month, then rode the August rally and was closed on September 15 for +16.30%. The same close was a new 20-day low; the short taken there lost 6.93% in three days as price jumped, and the upside break on September 21 lost 5.62% before its exit on October 8. No signal was open on October 28. Two of the three trades lost, and the one winner paid for both: that is the usual shape of a breakout system, a minority of trades carrying the result. Bitcoin itself rose from 60,024 to 81,343.50 over the window, +35.52%, against about +2.16% for the three trades compounded.

Donchian(20) on daily Bitcoin, July 1 to October 28, 2026

Long, July 14 to September 15+16.30%Short, September 15 to September 18−6.93%Long, September 21 to October 8−5.62%The three trades, compounded+2.16%Bitcoin itself over the window+35.52%
Our computation; the inputs and the method are in the text.Entries and exits on closes outside the 20-day channel and the 10-day exit channel, before costs.

A breakout test on five markets

We ran the bare channel breakout on five daily series, long only and then short only, with three entry and exit pairs: 10/5, 20/10 (Turtle System 1 without the skip rule) and 55/20 (System 2). Entries and exits are taken during the day as in the Turtle rules: at the channel level, or at the open when the market gaps through it. No stops, no filters, no position sizing (the whole account in each trade), no costs and no interest on cash. Every system and the buy-and-hold line start on the same day, the 56th bar of each series, so that the 55-day channel exists; equity is marked to market each day, and a position still open on October 28, 2026 is valued at that close. A trade cannot be closed on the bar it was opened, and after an exit a new entry is possible only from the next bar. A short's return is (entry − exit) / entry, and returns are compounded trade by trade; an open short is valued at 1 + (entry − close) / entry.

Market, from20/10 long: trades, winners, total, worst drawdown55/20 longBuy and hold
S&P 500 ETF, April 20, 1993202, 51.5%, +416.2%, −34.2%105, 49.5%, +280.2%, −29.9%+3,053.1%, −55.2%
Gold ETF, February 8, 2005122, 47.5%, +247.9%, −19.5%54, 51.9%, +210.2%, −24.8%+805.3%, −45.6%
20+ year Treasury ETF, October 16, 2002123, 41.5%, +100.0%, −25.6%55, 49.1%, +52.4%, −36.6%+114.5%, −48.4%
Commodity ETF, April 26, 2006108, 44.4%, +101.2%, −34.5%47, 46.8%, +160.2%, −34.0%+66.5%, −76.4%
Bitcoin, October 11, 201765, 46.2%, +3,310.6%, −46.3%31, 51.6%, +3,239.8%, −65.2%+1,587.1%, −83.2%

20/10 long breakout against buy and hold: final value per $1

$1$10S&P 500 ETF, from April 20, 1993$5.16$31.53Gold ETF, from February 8, 2005$3.48$9.0520+ year Treasury ETF, from Oct. 16, 2002$2.00$2.15Commodity ETF, from April 26, 2006$2.01$1.67Bitcoin, from October 11, 2017$35.11$16.87
  • 20/10 long breakout
  • Buy and hold
Our computation; the inputs and the method are in the text. Logarithmic scale: equal distances mean equal ratios, and each power of ten sits the same distance from the next.To October 28, 2026, before costs, ETF prices adjusted for dividends. On this logarithmic scale the S&P 500 ETF buy-and-hold bar looks about twice as long as the system's but stands for six times the money.

Trades and winners count closed trades. Positions open on October 28, 2026, valued in the totals at that close: the 20/10 long on the Treasury ETF since October 22 (entry 81.00, −0.01%), the 20/10 long on the commodity ETF since October 16 (33.52, +0.81%) and the 55/20 long on it since August 17 (30.57, +10.53%); among the 20/10 shorts, the S&P 500 ETF since October 23 (758.79, −1.78%), gold since September 10 (396.45, +5.79%) and Bitcoin since October 24 (79,800, −1.93%). ETF prices are adjusted for dividends, which favors buy and hold, since the system holds the ETF only part of the time. Three things stand out:

Worst drawdown: 20/10 long breakout against buy and hold

S&P 500 ETF−34.2%−55.2%Gold ETF−19.5%−45.6%20+ year Treasury ETF−25.6%−48.4%Commodity ETF−34.5%−76.4%Bitcoin−46.3%−83.2%
  • 20/10 long breakout
  • Buy and hold
Our computation; the inputs and the method are in the text.Largest fall from a previous equity high, marked to market each day, same start dates as the table.
  • Smaller drawdowns everywhere. The long breakout was in the market 38% to 51% of the days with the 20/10 pair, and its worst drawdown was smaller than buy and hold's on all five markets, at both lengths.
  • Beating buy and hold depends on the market. Both lengths beat buy and hold on the commodity ETF and on Bitcoin, the two markets with the deepest buy-and-hold drawdowns. On the S&P 500 ETF and gold they made far less, and on long Treasuries somewhat less (+100.0% and +52.4% against +114.5%). On the S&P 500 ETF the 20/10 system spent 12.1 years under its previous equity high, from January 8, 1999 to February 7, 2011.
  • Short breakouts mostly lost. With the 20/10 pair, shorting new lows lost 78.3% on the S&P 500 ETF, 56.2% on gold and 29.7% on Treasuries, and gained 16.1% on the commodity ETF and 41.0% on Bitcoin. The shorter 10/5 pair did worse on the stock ETF (−87.3%). Markets that rise over time punish a system that sells every new low.

20/10 short breakout: total result

S&P 500 ETF−78.3%Gold ETF−56.2%20+ year Treasury ETF−29.7%Commodity ETF+16.1%Bitcoin+41.0%
Our computation; the inputs and the method are in the text.Shorting every new 20-day low and covering on a new 10-day high, same start dates, before costs and borrowing fees.

The faster 10/5 pair traded about twice as often as 20/10 and its long side ended at +146.1% on the S&P 500 ETF, +463.9% on gold, +36.7% on Treasuries, +97.6% on the commodity ETF and +1,650.2% on Bitcoin, from the same start dates. With costs, the extra trades would cut into that.

Does it work?

The test above is one family of rules, on five markets, before costs. It shows what a bare channel breakout does: it cuts drawdowns by sitting out long declines, and it wins or loses against buy and hold depending on whether the market trends hard in both directions. It is not a test of the full Turtle system, which traded a diversified futures portfolio with sizing, stops and the skip rule. Our bench measures chart patterns detected by rule against random entries, not indicators (see our methodology), and the channel pattern page has those statistics for a drawn channel, a different object from this indicator.

For other channel tools, see the Keltner channel, Bollinger Bands and the STARC Bands, or the full list of volatility indicators.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

One email with the PDF, then a note when a result changes. Unsubscribe anytime. Privacy.

Frequently asked questions

What is the Donchian channel?

A channel drawn at the highest high and the lowest low of the last 20 bars (the length can be changed), with a middle line halfway between. StockCharts publishes it as Price Channels and credits it to Richard Donchian.

What is the best setting for the Donchian channel?

20 bars is the usual default and the Turtle System 1 entry; 55 bars was the System 2 entry. In our test, neither length was better on every market: 20/10 made more than 55/20 on the S&P 500 ETF, gold and Treasuries, less on the commodity ETF and about the same on Bitcoin.

Is the Donchian channel a trend or a volatility indicator?

Both. Its signals are trend-following breakouts, and its width, the distance between the highest high and the lowest low, measures how far price has ranged over the period.

What is the Donchian channel strategy?

The classic one buys a break above the upper line and sells a break below a shorter channel, for example a 20-day entry with a 10-day exit as in Turtle System 1. Most of the result comes from a few long trends, so most trades lose a little.

What is the difference between the Donchian channel and Bollinger Bands?

The Donchian channel uses only the highest high and lowest low, so its lines move in steps. Bollinger Bands use a moving average and the standard deviation of closes, so they move every bar and contract in quiet markets around the average rather than around the range.

Why does the Donchian channel use the previous bars?

So that a breakout can happen. If the current bar is in the window, its own high sets the upper line and price can never close above it.

Sources

  1. StockCharts ChartSchool, Price Channels
  2. The Original Turtle Trading Rules (OriginalTurtles.org, 2003), PDF copy
  3. StockCharts ChartSchool, Average True Range (ATR)
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

All volatility indicators articles