Concept
Donchian Channels
Donchian Channels are Volatility concepts. The Library holds 6 implementations, each one a working definition you can pull into Quant.
Top Donchian Channels indicators
6 total
What are Donchian Channels?
Donchian Channels plot the highest high and lowest low of the last N bars, usually with a midline halfway between them. They are named for Richard Donchian, a founding figure of systematic trend following whose four-week rule bought new four-week highs and sold new four-week lows. The channel contains no averaging and no volatility math: the upper band is simply the level a bar must exceed to print a new N-period high, which makes it the natural chart object for breakout logic, since touching the band and making a new extreme are the same event.
The bands move in a staircase: the upper band rises only when a new N-period high prints, drops only when the standing high ages out of the window, and holds flat otherwise. Price hugging one band while the bands step in the trend's direction is the visual signature of persistence, and the distance between the bands (Donchian Width) doubles as a simple volatility measure. The breakout reading is best known from the Turtle traders, whose published entry and exit rules were built on Donchian-style N-day extremes.
How to calculate Donchian Channels
Construction needs nothing but highs and lows; the only decisions are the lookback and whether the current bar counts.
- 1Choose the lookback N: 20 bars is the classic choice, with 55 common for slower systems and 10 for exits.
- 2Set the upper band to the highest high of the last N bars and the lower band to the lowest low of the last N bars.
- 3Set the midline to the average of the upper and lower bands.
- 4Decide whether the current bar is included: excluding it (using the prior N bars) means a push through the band is exactly a fresh N-bar extreme, which is how breakout systems typically define the trigger.
How traders use it
- As breakout entries: buying a push above the N-bar high and selling below the N-bar low is among the oldest systematic trend-following templates, popularized by Donchian's four-week rule and the Turtles' 20-day and 55-day systems.
- As trailing exits: trend positions trail the opposite band or the midline, exiting a long when price prints a new N-bar low on a shorter window than the entry (the Turtles paired 20-day entries with 10-day exits).
- As a trend read: stair-stepping bands with price pinned to one side indicate persistence, the basis of Donchian trend rules; flat bands on both sides frame a trading range with its extremes marked.
- As objective range markers: the bands are exact N-period extremes, so they anchor level-based logic (stops beyond the opposite band, range measurement, screening for new highs) without any smoothing ambiguity.
Donchian Channels vs related concepts
Bollinger Bands: Centered on a moving average and scaled by standard deviation, they describe typical dispersion around the mean. Donchian bands mark absolute extremes, which is why price can ride a Donchian band exactly while only approaching a Bollinger band.
Keltner Channels: An ATR offset around an EMA: a smoothed container for normal range. Donchian Channels carry no smoothing at all, so they respond instantly to new extremes and stay perfectly flat otherwise.
Prior Period Levels: Prior day, week, or month highs and lows are fixed once the period closes. A Donchian band is a rolling extreme that updates bar by bar as its window slides forward.
More Donchian Channels implementations
Related concepts · Band & channel systems
Concept family
Volatility
56 concepts mapped · 43 in the Library
Donchian Channels FAQ
What is the best lookback period for Donchian Channels?
There is no single best. Twenty bars is the traditional default (roughly a month of daily bars), 55 suits slower trend systems, and shorter windows like 10 are common for exits. Longer lookbacks trade less often and give back more at exits; shorter ones react faster but whipsaw more. Match the window to your holding horizon and test it.
Are Donchian Channels the same thing as the Turtle system?
No. The Turtles used Donchian-style channel breakouts (20-day and 55-day entries, 10-day and 20-day exits) as their levels, but the system's behavior depended just as much on volatility-based position sizing, pyramiding, and strict risk limits. The channel supplies the entry and exit levels; it is not the whole methodology.
Why do Donchian Channels look like stairs instead of curves?
Because there is no averaging. Each band equals a rolling extreme, and an extreme only changes when a new high or low prints or when the old extreme falls out of the N-bar window. Between those events the band is exactly flat, which produces the characteristic step shape and makes band touches unambiguous events.
Build Donchian Channels your way.
Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.


