Donchian Channels: what they are and how they’re worked out
By Bec, futures trader and founder of Wildflower · Updated
Donchian Channels are three lines on a price chart. The upper line is the highest high of the last few candles, the lower line is the lowest low, and the middle line is halfway between. Traders watch for price to go past the highest high or the lowest low.
What Donchian Channels are, and why they’re called that
Lines at the highest high and lowest low of the last few candles, with a middle line halfway between. Named after Richard Donchian.More in the glossary draw a box around recent price. The top line is the highest high of the last few One bar on a price chart. It shows where price opened and closed, and the highest and lowest it reached, in one stretch of time.More in the glossary. The bottom line is the lowest low. The middle line is halfway between them.
There’s no average and no formula beyond that. The lines are real prices that traded. They stay flat while price moves inside the box, and step to a new level when a new high or low is made.
They’re named after Richard Donchian, a futures fund manager who used rules like this from the middle of the last century. A new high above the channel is a When price moves past a level, such as the top or bottom of a range, and keeps trading beyond it.More in the glossary, the idea his rules were built on.
How Donchian Channels are worked out, step by step
1. Find the highest high
Look back over the last 20 candles. The highest high here is 5,008.75.
2. Find the lowest low
Over the same 20 candles. Here it’s 5,002.75.
3. Mark the middle
Halfway between: 5,005.75.
4. Move along one candle
Do it again for every candle. The lines join up into the channel.
In full, for each candle:
- Upper line: the highest high of the last N candles.
- Lower line: the lowest low of the last N candles.
- Middle line: (upper + lower) ÷ 2.
N is the length. Charting tools often show a length of 20 when you first add them. On a daily chart, that’s four weeks of weekdays. That’s a starting point, not a rule. The length is your choice.
What counts as a close outside the channel
Which 20 candles. Most charting tools draw the channel counting the candle itself. That candle’s own high can lift the upper line, so a candle can never close above the line drawn on it, as the third picture shows. A breakout is measured against the 20 candles before: in other words, the line as it stood one candle earlier.
Close or touch. Some rules count the moment price trades past the line, a wick is enough. Others wait for a candle to close past it. In the second picture, the wick went past but the close didn’t. Which you use is your rule.
A distance past the line. Some traders want price to go a number of The smallest step a price can move. On many stock index futures that’s 0.25 of a point.More in the glossary past the line before it counts. There’s no single rule.
Timeframe matters. 20 candles on a 5-minute chart is 100 minutes. On a daily chart, it’s four weeks of weekdays.
What the length changes
A shorter length follows price closely. Its lines move more often, and in a sideways stretch more candles close outside it. A longer one is wider and steadier. In the push above, both mark the same new highs, but the 10-candle lower line has climbed to 5,010.00 by the last candle, while the 30-candle one is still at 5,002.75. Neither is right or wrong. They describe different stretches of time.
How traders use Donchian Channels
Donchian Channels describe where price has been. A few ways you’ll see them used:
- Breakouts. Marking a new high above the upper line or a new low below the lower one. That’s the classic Trading in the direction price has already been moving, such as buying after a new high.More in the glossary use.
- Two lengths. A longer channel for the breakout, and a shorter one on the other side to mark when a move has turned. The Turtles, a group of traders taught by Richard Dennis and William Eckhardt in the 1980s, used rules like this: a 20-day breakout with a 10-day line the other way, for example.
- The middle line. Some watch whether price is above or below it, as a rough read of which half of the range price is in.
- Stops. Some place a stop at the other side of the channel, or at the middle.
A close outside the channel only says price went past the recent high or low. It can’t tell you whether the move carries on. Some breakouts keep going, and some turn straight back. Read about turtle soup, a pattern built on breakouts that turn back.
Where Donchian Channels come from
Richard Donchian (1905 to 1993) started one of the first public futures funds, Futures Inc., in 1949. He’s often called the father of trend following. A rule credited to him, the four-week rule, bought when price went above the highs of the last four weeks and sold when it went below the lows. The channel draws exactly those two prices.
Rules like this became well known through the Turtles in the 1980s, and Donchian Channels are now built into most charting tools.
Often confused with
Keltner Channels. Bands a number of average true ranges from a moving average. They’re smooth and move every candle. Read about Keltner Channels.
Bollinger Bands. Bands a number of standard deviations from an average of the closes. Read about Bollinger Bands.
Opening range. The high and low of a set time window, such as the first 30 minutes after the open. It’s fixed for the day, not a rolling look back. Read about the opening range breakout.
Price channels. Two parallel trendlines drawn by hand along highs and lows. They can slope. A Donchian Channel is worked out, and only ever flat or stepping. Read about price channels.
Donchian Channel indicator for TradingView
Have every close outside the channel marked, to your own rules
Tell Wildflower’s Indicator what you want in plain words, like “mark every candle that closes above the highest high of the candles before it”. You type the number of candles, and it can add a distance in ticks past the line. It measures against the candles before, never the candle’s own high. You can also use the channel as a condition on another setup, such as the close being inside the channel, or a candle touching one of its lines. It can’t trail an exit on a shorter channel the other way. It marks every one on a chart so you can check it matches your rules, then gives you a script to add to TradingView, with a step-by-step guide.

Free to build
Common questions
What are Donchian Channels?
Three lines: the highest high of the last few candles, the lowest low, and the middle between them.
How are Donchian Channels calculated?
Upper line: highest high of the last N candles. Lower line: lowest low. Middle: (upper + lower) ÷ 2. See the steps.
What is the best Donchian Channel length?
There isn’t one right length. Charting tools often show 20 when you first add them, but it’s your choice.
Why can’t price close above the Donchian Channel on my chart?
Your chart counts the candle itself, so its high lifts the line. Compare the close with the line on the candle before.
Who invented Donchian Channels?
They’re named after Richard Donchian, a futures fund manager known for trend following.
Did the Turtles use Donchian Channels?
The Turtles used breakouts of recent highs and lows, such as 20 and 55 days, with shorter lines for exits. That’s the same idea.
What’s the difference between Donchian and Keltner Channels?
Donchian uses the highest high and lowest low. Keltner uses a moving average and the average true range.
What does the middle line show?
The halfway point of the recent range. Some traders read price above it as being in the upper half.
Is the Donchian Channel a lagging indicator?
Yes. It only uses candles that have already happened.
Can I get a Donchian Channel indicator for TradingView?
Yes. Describe your rules in plain words and Wildflower builds the indicator. Preview it free on a chart, then pay only when you add it to TradingView. See the Indicator.
Learn it step by step in Wildflower Trading School, starting with the lesson “Donchian, Keltner and Bollinger compared”.