Technical Analysis
Donchian Channels: How to Test Systematic Breakouts
Learn Donchian channel calculations, prior-bar breakout logic, channel exits and reproducible backtests with worked examples.
On this page · 12 sections+

Donchian Channels convert recent trading ranges into explicit boundaries. Their upper band is the highest high over a specified window; their lower band is the lowest low. The middle line is halfway between them. That simple definition makes it possible to describe a breakout rule precisely rather than relying on visually selected resistance levels. The cover graphic is an editorial illustration; any chart or sample figures are not live market data.
Calculate the channel
Suppose the highest high of the prior 20 bars is 102.50 and the lowest low is 96.50. The midpoint is 99.50 and the channel width is 6.00. These are hypothetical prices. As old bars leave the window or new extremes enter it, the boundaries can change.
Avoid the current-bar trap
A breakout condition comparing the current close with a highest-high window that already contains the current high may never become true under a strict greater-than comparison. For a close-confirmed breakout, compare the current close with the highest high of the preceding completed window. The displayed indicator and the signal series may therefore need different offsets.
Choose a precise exit
A strategy could use an opposite channel boundary, a shorter exit window, a fixed stop or an independently tested volatility rule. Each changes the payoff distribution. A channel does not prescribe an exit or guarantee that a stop will fill at its requested price.
Worked risk example
In a hypothetical contract worth $2 per point, a long entry at 103.00 with an initial stop at 99.00 creates $8 of nominal price-distance risk per contract. Multiply by quantity and add estimated costs and slippage. Gap risk can exceed this nominal estimate.
When ranges create whipsaws
Short lookbacks can repeatedly signal at modest local extremes. Longer lookbacks may reduce some noise but can enter late and retain larger adverse moves before an exit. Compare the behavior in trending and range-bound periods rather than choosing parameters from a single attractive chart.
Build an honest backtest
Specify high-low source data, prior-bar offsets, session boundaries, instrument rollover, signal timing, fill assumptions and costs. Compare several nearby lookbacks without selecting only the best historical outcome. A final untouched period should assess whether the broad behavior survives parameter variation.
Work through a rolling boundary update
Consider a simplified three-bar lookback rather than the more common longer windows. The prior bars have highs of 101, 104 and 103, and lows of 98, 99 and 100. The upper boundary is 104 and the lower boundary is 98. If the next completed bar has high 105 and low 102, the oldest observation rolls out, leaving highs of 104, 103 and 105 and lows of 99, 100 and 102. The updated channel becomes 105 to 99. A strategy evaluating the new bar's close against the old boundary must use the pre-update value of 104. Otherwise the logic can inadvertently compare a price with a boundary that already incorporates it.
Intrabar touch versus confirmed close
A hypothetical market can trade above its previous upper channel during the session but finish below that level. A touch-based rule and a close-confirmed rule would classify this bar differently. Neither definition is inherently superior. They have different entry timing, fill assumptions and susceptibility to temporary excursions. If the simulated strategy enters on a touch using bar data, the order must have been active before the price crossed the level. A close-based decision is only known when that bar closes. A backtest assuming execution at the exact closing price should justify the execution mechanism rather than use a price that was not available when the order was sent.
Compare exits independently of entries
A system may enter after a breakout of a twenty-bar high and exit on a ten-bar low, but these lookbacks describe different decisions. The shorter exit may protect some gains or cause earlier departures from trends; the longer exit can retain exposure through larger retracements. In a hypothetical long trade from 105 to a peak of 112, an exit at 109 captures four points, whereas an exit at 107 captures two points. Neither isolated result establishes superiority because the second rule could remain in trades that subsequently reach a much higher peak. Compare the distribution of exits across a representative sample instead of selecting a rule based on a single chart.
Account for trade frequency and costs
Imagine two illustrative channel variants over the same historical period. One has 100 completed round trips and gross profit of $1,000; the other has 40 and gross profit of $800. At an assumed $5 total cost per round trip, net profit is $500 for the first and $600 for the second. The cost assumption is hypothetical and excludes other expenses. The comparison shows why more frequent breakout signals do not necessarily mean better net performance. Before applying the same parameters to a different timeframe or contract, assess the minimum price increment, typical spread and realistic entry and exit costs. Gross historical profitability alone is insufficient.
Build a parameter sensitivity record
Choose a limited set of lookbacks in advance and keep a log of every tested combination, including the unfavorable outcomes. Inspect whether reasonable nearby settings generate similar behavior, or whether results depend on an isolated optimum. Record the number of trades, drawdown, gross and net results and exposure. Separate chronological training and validation windows, and include periods with gaps and low liquidity. If the strategy uses a continuous futures chart, specify its adjustment and roll rules and use executable contract prices when evaluating fills. A robust research process does not guarantee future profitability; it makes the assumptions easier to examine and repeat.
Frequently asked questions
What is the typical Donchian lookback?
Twenty bars is a common example, not a universally optimal setting.
Is Donchian the same as Bollinger Bands?
No. Donchian uses recent extremes; Bollinger Bands use a moving average and standard deviation.
Can it be used on futures?
Yes, as a chart indicator; contract and execution assumptions still matter.
Does a breakout guarantee continuation?
No. Price can reverse immediately after crossing a boundary.
Why does a Donchian upper band sometimes stay flat?
The highest observation may remain inside the rolling window until a new extreme occurs or the old one expires.
Can a stop-entry order fill worse than the channel boundary?
Yes. Gaps, spreads, available depth and the order type can affect execution.
Technical analysis
Continue with the topic hub.
Browse the related TradeLuma guides and build the topic from foundations through practical application.
Explore Technical analysis guides →Continue learning
Related guides.

Bollinger Bands Trading Guide: Squeezes, Breakouts and Mean Reversion
Learn how Bollinger Bands measure relative price and volatility, what a squeeze can indicate, and how traders use the bands for breakouts and mean-reversion setups.

Opening Range Breakout (ORB): Testing the First 15, 30 and 60 Minutes
Learn how to define an opening range, compare 15-, 30- and 60-minute breakouts, account for false signals and test realistic intraday execution.

Order Blocks in Trading: How Traders Mark, Validate and Test the Zones
Learn what order blocks mean in technical analysis, how bullish and bearish zones are marked, and how traders test displacement, retests, and invalidation.
