Donchian Channels: Breakouts, Turtle Rules and Bot Design
Donchian channels mark the highest high and lowest low of N periods. How they define breakouts, why the Turtle traders used them, and how bots use them for entries, exits and grid anchors.
A Donchian channel, named after Richard Donchian, is one of the simplest indicators possible: the highest high and the lowest low of the last N periods, with an optional midline. When price breaks out of that channel, it is doing something it has not done for N periods. That simple definition of a breakout is at the core of many trend-following systems, including the famous Turtle rules.
How it is calculated
For a period N (often 20):
- Upper band = highest high of the last N bars.
- Lower band = lowest low of the last N bars.
- Midline = (upper + lower) / 2.
The bands are step-shaped: they stay flat until a new extreme appears. For trading rules, compute the channel excluding the current bar, so that “close above the upper band” means a new N-bar high.
How to read it
- Break above the upper band - new N-period high, potential trend continuation.
- Break below the lower band - new N-period low.
- Narrow channel - consolidation; breakouts may follow.
- Midline - simple trend reference; price above it leans bullish.
How bots use Donchian channels
Breakout entries
Buy when the close exceeds the N-bar high; sell short when it falls below the N-bar low. The classic trend-following entry. See the Turtle trading system.
Channel exits
Exit longs on a break of a shorter channel’s low (for example a 10-bar low after a 20-bar breakout entry). This lets winners run while cutting reversals.
Range definition
Session-breakout strategies effectively use a Donchian channel over a fixed time window: the high and low of the Asian session, for example. AlgoXP’s Samurai Breakout Pro II plots such session boxes and their breakout levels.
Grid anchors
The channel midline is a natural centre for grids in ranging conditions. Inca Gold Grid AI Pro offers a Donchian anchor among its options.
A worked example
A diversified trend bot on H4:
- Entry: close above the 20-bar high → long; below the 20-bar low → short.
- Filter: skip if the channel width is already above 4 × ATR (move extended).
- Initial stop: 2 × ATR(20).
- Exit: opposite 10-bar channel break.
- Size: 0.5% risk per trade, at most 4 open positions.
Expect a low win rate (30-40%) and a long right tail of winners. Profitability comes from the few large trends each year, which is why diversification across markets matters. See multi-market optimisation.
Pitfalls
- Including the current bar in the channel - a breakout then becomes impossible or triggers on the wrong bar.
- False breakouts in ranges; filters (ADX, volatility, higher timeframe) reduce but never remove them.
- Gaps - stop orders at the channel level may fill far beyond it.
- Single-market testing - trend systems need many markets to be judged fairly.
Key takeaways
- Donchian channels mark N-period extremes; a break means a new high or low.
- They provide clean breakout entries, channel exits and range definitions.
- Expect low win rates and rely on large trends, sizing and diversification.
- Exclude the current bar from the channel when coding breakout rules.
FAQ
What is the difference between Donchian channels and Bollinger Bands?
Donchian channels use the highest high and lowest low of the period, so they only move when a new extreme appears. Bollinger Bands use standard deviation around an average and move with every close.
Which period is typical?
20 periods is a classic breakout setting; the Turtle traders also used 55 for a slower system and 10 or 20 for exits.
Do Donchian breakouts still work?
Simple breakout systems have become less profitable on many markets than in the 1980s, but channel breakouts remain a core building block of trend following when combined with volatility sizing, diversification and filters.
Sources and further reading
- StockCharts ChartSchool: Price Channels - chartschool.stockcharts.com
- StockCharts ChartSchool: Donchian Trading Guidelines - chartschool.stockcharts.com