What Are Donchian Channels? Formula and Breakout Trading

By Forex & Brokers DeskUpdated Nov 10, 2026

Donchian Channels
Illustration · Fintrev

Definition

A Donchian channel plots the highest high, the lowest low and their midpoint over the last N periods, showing the exact range price has traded in over that window.

Key takeaways

  • Richard Donchian's four-week rule buys above the prior four-week high and sells below the prior four-week low.
  • The Turtle System 1 entered on a 20-day breakout and exited on a 10-day breakout in the opposite direction.
  • After a peak, the upper band stays flat for N bars until that high leaves the lookback window.
  • If a platform includes the current bar, price can never close above the upper band, only touch it.

A Donchian channel is a price-channel indicator that plots three lines on a chart: the highest high of the last N periods, the lowest low of the same periods, and the midpoint between them. Each line comes from extremes rather than averages, so the channel marks the exact range price has traded in over the lookback window. When price moves outside that range, it is making a new N-period high or low, which is the basis of the Donchian breakout.

What Is a Donchian Channel?

The indicator is named after Richard Donchian, a US futures trader and fund manager often called the father of trend following. Donchian ran one of the first publicly offered managed futures funds, launched in 1949, and promoted systematic, rules-based trading at a time when most traders worked on discretion. His best-known rule, the four-week rule, is a direct application of the channel: buy when price exceeds the high of the previous four weeks, and sell or go short when it falls below the low of the previous four weeks. The “4-week price channel” in older trading literature is a Donchian channel with a 20-day lookback.

Some platforms call it a “price channel” or list it as “DC.” On every bar, the channel shows where price sits within the full range of the last N periods. Because the inputs are only highs and lows, there is no smoothing, no weighting and no statistical assumption about how prices are distributed.

It works on any market with price bars, including currency pairs, stocks, indices, commodities and crypto, and on any timeframe.

How Donchian Channels Work

The Donchian Channel Formula

The three lines are calculated as follows:

  • Upper channel (UC) = highest high over the last N periods
  • Lower channel (LC) = lowest low over the last N periods
  • Middle channel = (UC + LC) / 2

N is the number of bars in the lookback, and a period is whatever one bar represents, so a 20-period channel covers 20 hours on an hourly chart and 20 weeks on a weekly chart.

The midpoint is the center of the range, not an average of closing prices. Two charts with identical closes can have different midpoints if their wicks differ.

Current Bar Included or Excluded

Platforms do not all build the window the same way, and the difference changes how breakouts are read.

  • Current bar included: the window covers the current bar plus the previous N − 1 bars. Price can touch or equal the upper band, but it can never close above it, because a new high immediately lifts the band.
  • Current bar excluded: the window covers the N bars before the current one. Price can close outside the channel, and that close is the breakout.

Breakout rules such as “buy when price exceeds the 20-day high” refer to the prior 20 days. If your platform includes the current bar, a breakout appears as the band stepping up to meet price. Some tools offer an offset setting that shifts the channel one bar to the right to produce the excluded version.

Worked Example (Hypothetical)

Take a hypothetical currency pair on a daily chart with N = 5. The last five completed days had these highs and lows:

  • Day 1: high 1.1020, low 1.0960
  • Day 2: high 1.1045, low 1.0990
  • Day 3: high 1.1010, low 1.0945
  • Day 4: high 1.1060, low 1.1000
  • Day 5: high 1.1035, low 1.0980

The upper band is 1.1060 (Day 4’s high), and the lower band is 1.0945 (Day 3’s low). The midpoint is (1.1060 + 1.0945) / 2 = 1.10025. The channel width is 1.1060 − 1.0945 = 0.0115, or 115 pips.

Now suppose Day 6 trades up to 1.1080 and closes at 1.1072. Using the prior five days as the window, the close sits above the 1.1060 upper band, which is a five-day breakout. On Day 7 the window rolls forward and drops Day 1. Day 6’s high of 1.1080 becomes the new upper band. The lower band stays at 1.0945 until Day 3 leaves the window. On Day 8 it rises to the lowest low among Days 4 through 7.

Interpreting Donchian Channels

The three lines give a compact map of recent buying and selling pressure:

  • The upper band marks the furthest buyers have pushed price during the lookback.
  • The lower band marks the furthest sellers have pushed it.
  • The middle line marks the center of that contest. Some traders treat it as a reference point that price tends to revisit.

The way the bands move also carries information:

  • A rising upper band means price is printing new N-period highs. In a strong uptrend, price “pushes” the upper line up in steps.
  • A flat upper band means no new high has been made. If price declines after a peak, the upper band stays flat for N bars, because the peak stays in the window. It drops only after that bar leaves the lookback.
  • The lower band mirrors this. After a bottom, it holds flat for N bars and starts rising only when the low ages out, provided price has not made a fresh low.

The flat stretches are a common source of confusion. A flat upper band during a decline does not mean resistance is holding at that price. It only shows that the old high is still inside the window.

Width. The distance between the bands measures the size of the recent range. A wide channel means large swings during the lookback. A narrow channel means price has been compressed, often during consolidation. To compare width across instruments or price levels, divide it by the midpoint to get a percentage:

Width % = (UC − LC) / Middle × 100

A related situation: the upper band falls while the lower band holds steady. Older highs are dropping out of the window and no new low is being made, so the range is shrinking from the top, the shape of a descending consolidation similar to a descending triangle. Sellers are capping rallies at lower levels while buyers defend the same floor. The channel does not predict the outcome.

Donchian Breakout Strategy

The classic use of the indicator is the Donchian channel breakout: enter in the direction of a new N-period extreme and stay in the trade until an opposite extreme over a shorter window says the move is over.

Entry Rules

  • Long entry: price exceeds the upper band (the prior N-period high).
  • Short entry: price falls below the lower band (the prior N-period low).

Traders differ on what counts as a breakout. Intrabar systems enter as soon as price trades through the band, often with a stop order resting just beyond it. Close-based systems wait for a bar to close outside the channel. The close-based version filters out some wicks that pierce the band and reverse within the bar. In exchange, entries come later and at a worse price after strong moves.

The 20/10 System and the Turtle Rules

The most widely cited Donchian breakout rules come from the Turtle Traders, a group trained in the 1980s by commodity traders Richard Dennis and William Eckhardt. Their published rules used Donchian-style breakouts in two systems:

  • System 1: enter on a 20-day breakout, exit on a 10-day breakout in the opposite direction. This is the origin of the “Donchian 20/10” shorthand.
  • System 2: enter on a 55-day breakout, exit on a 20-day opposite breakout.

The exit channel is shorter than the entry channel on purpose. A long position opened on a new 20-day high is closed when price makes a new 10-day low, not a new 20-day low. The trade stays on through ordinary pullbacks but gives back less of the gain than a full 20-day reversal would.

The Turtles also sized positions by volatility, using a 20-day average true range they called “N,” and placed protective stops as a multiple of it. The breakout decides when to enter. A separate volatility measure, independent of the channel’s width, decides how much to risk, which a position size calculator can apply.

Stop-Loss Placement

The channel suggests natural places for protective stops:

  • Long positions: a stop just below the lower band. If price falls through it, the market has made a new N-period low, which contradicts the reason for being long.
  • Short positions: a stop just above the upper band.

Because the lower band reflects the whole range, a breakout from a wide range carries a wide stop. That is why systems often pair the channel with a shorter exit channel or an ATR-based stop.

Trailing stops. As a trend develops, the opposite band follows price. For a long position, the stop can be raised each time the lower band rises and is never lowered. For a short, the stop follows the falling upper band down. Using a shorter channel for the trailing stop (the 10-day band in a 20/10 setup) keeps the stop closer to price.

Take-Profit Options

Breakout systems usually have no fixed profit target and exit only on the trailing channel. Traders who prefer targets use two common approaches:

  • The midpoint: take profit when price crosses back through the middle line against the position. This works best when the midpoint has acted as support or resistance earlier in the move.
  • The opposite band: in range-bound trading, a long opened near the lower band targets the upper band, and a short opened near the upper band targets the lower band.

The two styles conflict. A trend follower lets the trailing band decide the exit, while a range trader takes profit at the other side. Mixing them on the same trade usually cuts winning trends short.

Other Uses of Donchian Channels

Support and Resistance

The upper band serves as reference resistance and the lower band as reference support. Unlike hand-drawn levels, they update mechanically and shift once the bar that set them leaves the lookback.

Trend Following Without a Breakout

Price that keeps hugging the upper band is printing new highs repeatedly, a sign of upward momentum, and the reverse applies near the lower band. Some traders take only longs while price holds above the midpoint and only shorts below it, turning the middle line into a simple trend filter.

Volatility and Consolidation

A long stretch of narrow width shows price confined to a small range. Some traders watch for this squeeze and wait for a break of either band, on the view that ranges eventually resolve. The channel shows compression, not the direction of the eventual break.

Swing Trading Inside the Channel

On shorter lookbacks, some swing traders fade the bands, buying near the lower band and selling near the upper band. This reverses the breakout logic and only makes sense while both bands move sideways. In a rising or falling channel, fading a band means trading against the trend.

How to Choose the Number of Periods

No single lookback is correct. The trade-off is consistent, though:

  • Shorter lookbacks (for example 10 bars) produce narrower channels that react quickly. They generate more signals, including more false breakouts, and suit short-term trading.
  • Longer lookbacks (for example 55 bars or more) produce wider channels that change slowly. They generate fewer, later signals that capture only larger moves, and suit position trading.
  • 20 periods is the common default and matches the four-week rule on a daily chart.

When choosing, consider your holding period, the instrument’s typical range, and how far your stop will sit from entry. A long lookback on a volatile instrument can put the opposite band too far away for a band-based stop to fit your risk per trade. Test any setting on historical data or in a paper trading simulator, because a setting that suits one market can perform poorly on another.

Combining Donchian Channels With Other Indicators

Moving averages. A longer moving average can act as a trend filter: take only upper-band breakouts while price is above it, and only lower-band breakouts while price is below it. An exponential moving average reacts faster than a simple one if you want a more responsive filter.

Volume. In markets with centralized volume data, a breakout on heavy volume shows wider participation than one on light volume. Spot forex has no consolidated volume, so currency traders usually rely on tick volume or on futures volume as a proxy. Session-based measures such as VWAP offer another participation reference on intraday charts.

RSI. The Relative Strength Index runs from 0 to 100 and flags overbought and oversold readings. A trend follower may read a breakout with a strong RSI as confirmed momentum. A cautious or counter-trend trader may read an upper-band break with RSI deep in overbought territory, or a lower-band break with a very low RSI, as a stretched move and wait. Decide in advance which reading your strategy uses.

MACD. MACD compares two moving averages to measure momentum. A band break that coincides with a MACD crossover in the same direction suggests momentum supports the move. A breakout against the MACD direction deserves more suspicion.

Donchian Channels vs. Similar Indicators

Donchian Channels vs. Bollinger Bands

Bollinger Bands center on a simple moving average of N periods and place the outer bands a set number of standard deviations away, usually two. Donchian channels use only the raw highest high and lowest low.

  • A single extreme spike moves a Donchian band to that exact price and holds it there for N bars. In Bollinger Bands, the same spike is diluted by the averaging and the standard deviation.
  • Bollinger Bands widen and narrow smoothly with volatility, and price frequently closes outside them. Donchian bands move in steps and can stay flat for long stretches.

Donchian Channels vs. Keltner Channels

Keltner channels center on an exponential moving average with bands at a multiple of ATR, an average plus a volatility envelope like Bollinger Bands. A Donchian channel has no envelope. Its bands are actual traded prices.

Donchian Channels vs. Moving Averages

A moving average smooths prices into a single line that trails the trend, while a Donchian channel encloses the extremes. Moving averages are better at showing trend direction. Donchian channels are better at showing when price has left its recent range.

Donchian Channel vs. Darvas Box

The Darvas box, developed by Nicolas Darvas, is also a breakout tool built from highs and lows, but a box forms only after price sets a high that holds for several bars and then establishes a floor, so its size changes with each consolidation. A Donchian channel uses a fixed rolling window and recalculates mechanically on every bar.

Limitations of Donchian Channels

False breakouts. Price can exceed a band, trigger an entry and reverse straight back into the range. Breakout systems accept these losses as the cost of catching large trends, but a choppy period can produce a string of them.

Lag. Every line is built from past highs and lows. The channel confirms that price has moved to a new extreme. It does not anticipate the move, and in fast markets the signal can arrive after much of the move has happened.

Sideways markets. In a flat range, price touches both bands repeatedly, so trend-following rules buy near the top and sell near the bottom. The channel gives no warning about whether the market is trending or ranging.

Wide stops. Because the bands reflect full ranges, stops at the opposite band can sit far from entry, especially on long lookbacks or volatile instruments. Unless position size adjusts, risk per trade varies with every setup.

Sensitivity to settings. Results depend on N, on whether the current bar is included, and on whether breakouts are taken intrabar or on the close. A setting tuned to past data on one instrument may not hold up on another or in a different period.

Gaps and single prints. One extreme bar, such as a spike on a news release or a weekend gap, can set a band level that stays on the chart for the full lookback, even if that price traded only briefly.

Confirmation bias. A channel on a chart makes it easy to spot breakouts that fit an existing view and ignore the ones that do not. Fixed, written rules for entry and exit reduce that risk.

The Bottom Line

Donchian channels suit traders who want mechanical, rules-based breakout signals on any market or timeframe. The channel confirms new highs and lows after they happen, so it lags, produces false breakouts in sideways markets and can force wide stops. Traders get more from it by pairing a shorter exit channel with volatility-based position sizing and testing their lookback setting before trading it.

About this page

Written by Forex & Brokers Desk

The Forex & Brokers Desk covers forex and CFD broker reviews, regulation checks, trading guides and the forex glossary.

Published
Last updated

Spotted an error? Tell the editors. This page is general information, not financial advice.