Donchian Channels

Donchian Channels plot the highest high and lowest low of the last N candles. A close above the upper line is a new N-period high.

Category Trend
Formula Upper = highest high of the last N candles. Lower = lowest low of the last N. Middle = average of the two.
Default settings 20 periods is common; the classic breakout rule uses 20 and 55 days
What it is used for Defining breakouts objectively, and trailing stops under recent lows.
Limits False breakouts are common, and most breakouts in a range fail. Costs matter more at short timeframes.
Our own tests It had a positive net return after costs on 1 of 3 instruments (Gold (XAU/USD)) in this backtest and a negative one on the rest. It beat simply holding on EUR/USD only. On no instrument did the timing beat the placebo at the 95% level, so these results are not distinguishable from luck.

What our own test found

Rule tested: Long on a close above the 20-day high, exit below the 10-day low; short mirrored.

It had a positive net return after costs on 1 of 3 instruments (Gold (XAU/USD)) in this backtest and a negative one on the rest. It beat simply holding on EUR/USD only. On no instrument did the timing beat the placebo at the 95% level, so these results are not distinguishable from luck.

Instrument Net return after costs Buy and hold Trades Worst drawdown Second half only Beat the placebo
Gold (XAU/USD) +3% +123% 43 28% +15% 51%
EUR/USD -8% -8% 52 17% -2% 34%
Bitcoin (BTC/USD) -42% +379% 46 71% -26% 30%

How we tested it

Same protocol for every indicator, fixed before we looked at any result and with no tuning. Daily candles from a demo feed, which we keep as a saved copy so that our numbers stay the same: Gold (XAU/USD) May 2021 to Oct 2026; EUR/USD May 2021 to Oct 2026; Bitcoin (BTC/USD) Dec 2022 to Oct 2026. The signal is read at the close and held through the next day, so there is no look-ahead. Costs are an assumption, not a measurement: Gold (XAU/USD) 0.30 USD, EUR/USD 1.0 pip, Bitcoin (BTC/USD) 25 USD per spread, charged on every flip. Two yardsticks: simply buying and holding, and a timing placebo, the same trades rotated to random dates 1,000 times, which keeps the number of trades and the long and short share but destroys the timing. The last column of the table is the share of those placebo runs the rule beat; 95% or more would suggest the timing carried information. Volume is tick volume from the broker, not exchange volume.

Before relying on any indicator rule, test it with costs and a baseline: How to test a strategy. Other indicators with full lessons and real-data tests are in the indicator reference.

Related indicators

Frequently asked questions

What is the turtle rule?

A well-known breakout system bought new 20-day or 55-day highs. It is a published historical rule, not a guarantee of future results.

Definitions are the standard published ones. The test results above come from our own data with the protocol stated; they describe the past and are not a forecast.

Educational content only, not financial advice. Trading involves substantial risk of loss. Read the full risk disclaimer.