What Donchian Channels show
Donchian Channels draw a band around price using only highs and lows. The indicator has an upper line, a lower line and usually a middle line:
- Upper line: the highest high of the last N bars.
- Lower line: the lowest low of the last N bars.
- Middle line: the midpoint between the upper and lower lines.
N is the lookback period, the number of bars the indicator checks. When price makes a new high for that period, the upper line steps up. When nothing new happens, the line stays flat. This is why the channel looks like a staircase rather than a smooth curve.
For a beginner the simplest way to read it is this: the channel marks the full range price has covered over the chosen period. A touch of the upper line means price is at the top of that range. It does not mean price will keep rising or start falling.
Ready to try it on a real or demo account?
Partner link · trading carries a high risk of loss
A drawn example
In the sketch, price ranges inside the channel and the lines stay flat. Then price pushes past the old high and the upper line follows it up. The lower line stays where it is until the old low drops out of the lookback window.
Settings
The indicator has one main input: the period. Many tools ship with a commonly used default period, and some versions let you choose separate periods for the upper and lower lines.
- Shorter period: a tighter channel, more frequent touches, more noise.
- Longer period: a wider channel, fewer touches, slower reaction.
- Separate entry and exit periods: breakout systems often use a longer channel to define a breakout and a shorter one to define when a move has ended.
There is no correct setting. Test a choice on a demo account and across several market conditions before relying on it.
Adding Donchian Channels in MT4 and MT5
Donchian Channels are not among the standard indicators in the default MetaTrader lists. Traders usually add them as a custom indicator:
- Get the indicator file from a source you trust, such as the MetaTrader code library.
- In the terminal, open File, then Open Data Folder.
- Place the file in MQL4/Indicators or MQL5/Indicators.
- Restart the terminal or refresh the Navigator, then drag the indicator onto the chart.
Read the code or the description before use. Versions differ in whether the current bar is included, which matters for the edge cases below. See MetaTrader 4 and MetaTrader 5 for platform basics.
Typical uses
- Breakout definition: a close beyond the previous bar's channel marks a new high or low for the period. This is the core of most Donchian channel strategy descriptions. See breakouts and false breakouts.
- Trailing exit reference: the opposite line, or a shorter channel, can act as a reference for where a trend is considered over.
- Range mapping: flat upper and lower lines show a sideways market, similar to support and resistance.
- Volatility read: a widening channel means price is covering more ground. A narrowing one means it is compressing.
Where the indicator misleads
- Ranges: in sideways markets price repeatedly pokes past a line and returns. Breakout readings fail often in these conditions.
- Single spikes: one news candle can set a high that stays in the channel for the whole lookback period. The channel stays wide long after volatility has calmed.
- Current-bar inclusion: if the channel includes the forming bar, price can never close outside it, and the line moves with every tick. A breakout must be compared with the previous bar's value. See repainting indicators.
- Gaps and weekends: a gap can jump straight past a line, so a planned level is not a guaranteed fill price.
- Bid charts: MetaTrader charts usually show bid prices. With a wide spread, a line can be touched on the chart while the ask side behaves differently.
- Lag: the indicator only reports what has already happened. It is a lagging tool, as explained in leading vs lagging indicators.
Notes for experienced traders
- Compare the channel width with the ATR indicator to judge whether a breakout came from expansion or a single bar.
- Keltner Channels and Bollinger Bands smooth their bands. Donchian lines do not, so they react in steps and can stay unchanged for long stretches.
- Check a higher timeframe channel before reading a lower one. See multiple timeframe analysis.
- Size positions from the distance to your exit reference, not from the channel alone. See risk management.
Leveraged forex and CFD trading can lose money fast. A channel breakout can reverse within the same bar.
Frequent questions
What is the Donchian channel indicator in simple words?
It is a band that marks the highest high and lowest low of the last N bars, with a midpoint line between them.
What are the best Donchian channel settings?
There is no best setting. Shorter periods react faster with more noise, and longer periods are slower and smoother. Test any choice on demo.
Is Donchian Channels built into MT4 or MT5?
Not in the default indicator lists. It is usually added as a custom indicator file.
Does the Donchian channel repaint?
Past values do not change. If the version includes the current bar, the latest value moves until the bar closes.
Does a touch of the upper line mean price will rise?
No. It only shows that price is at the high of the chosen period.
