The Donchian Channel Breakout strategy is one of the cleanest examples of rule-based trading. It has a clear origin in trend-following history, it uses objective price levels, and it can be translated into automation rules without much interpretation.
.webp)
Richard Donchian, the creator of the Donchian Channels indicator, became a popular trader for his views on mechanical systems. Richard Donchian believed that traders should not rely on emotions, guesswork, and discretion. He believed that following clear, mechanical rules increases your chances of winning and that such an approach leads to more consistent trading behavior.
Similar to the famous Turtle Trading approach, the Donchian system relies on objective rules to specify potential breakouts and the direction of trend.
Disclaimer: Templates are for educational purposes only!
👉 Get the Donchian Channel Automation Template → Donchian Channel Profectus Template
This template is designed to run on the Daily Timeframe
A Donchian Channel is a technical indicator that simply shows the highest and lowest prices reached over a period of historical candles. A 20-period Donchian Channel shows the highest high and lowest low of the last 20 candles.
The upper channel marks the highest price reached during the last 20 candles.
The lower channel marks the lowest price reached during the last 20 candles.
The Donchian-style breakout refers to price breaking above the upper channel, or below the lower channel, confirming a breakout and continuation of the trend.
The Donchian Channel Strategy is all about looking for breakouts and trend continuations.
When price breaks above the upper Donchian Channel, the market may be starting or continuing an uptrend. A buy trade is considered.
When price breaks below the lower Donchian Channel, the market may be starting or continuing a downtrend. A sell trade is considered.
This is the most basic rule set, but it has proven valuable for many traders over many, many years. We have added an extra rule to take the overall trend into consideration and minimize the number of false breakouts that we might be entering into. The simple rule means that:
Super easy. We’ve simply added another popular indicator and were able to increase our win rate for this strategy.
This is what a buy trade example looks like on the chart.
.webp)
Don’t worry, this is one of the easiest strategies you can build. Let’s focus on the buy-side only of this strategy for the following sections.
Now, let’s build this system in Profectus AI.

I already said that this is a very easy strategy to build. Let’s do it together; it will only take a few minutes.
Want to see how this Donchian Channel strategy works when fully automated?
Access an enhanced automation template used to turn this trading concept into a deployable MQ5 trading bot inside Profectus. This template has a trade execution module included, so you can start testing it right away!
Disclaimer: Templates are for educational purposes only!
👉 Get the Donchian Channel Automation Template → Donchian Channel Profectus Template
This template is designed to run on the Daily Timeframe
We have written a full article to get you started in Metatrader 5 and how you can run any automated strategy, such as the Donchian Channel strategy, as an Expert Advisor yourself.
Read the full guide here to run your first trading bot in MT5
Dive into a world of knowledge, trends, and industry updates on the Variable blog. Our curated content covers a spectrum of topics.