VI

Donchian Channel Breakout Forex Robot

EA that opens trades when price breaks the Donchian channel Turtle style: break of the 20 candle high, low (default), pending orders at the channel edge, pullback to the channel middle, exit by the 10 candle channel, ADX filter.

Robot Forex MT4MT5 GD-8810v1.0 Lifetime 7-day trial 23/11/2026
Donchian 20 / 10 · H1–20 candle channel high2661.48020 candle channel low2638.920Price vs channelTo high 2140 · to low 2042010 candle exit channel2661.480 · 2647.150ADX 14 filterNo filterChannel breakoutOnPending orders at the channel edgeOffChannel middle pullbackOffOpen positionBUY 1 · SELL 0Waiting for a channel breakout on H109:00 Opened BUY: close above the 20 candle channel high
The EA panel on the MetaTrader chart (sample data, default inputs). Values come from the candle that just closed. The panel can be dragged; click the top-right button to collapse it.
GD-8810 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic number (per product code)
01Max spread to open orders (points, 0 = no limit)
abTrading hours (server time), separate ranges with commas
Timeframe
ab========================================ORDER SETTINGS
½Volume (lot)
Stop loss
01Stop Loss in points (0 = none)
½ATR stop loss: ATR multiplier
01Take Profit (points, 0 = none)
Exit when price breaks the exit channel in the opposite direction
01Min distance between 2 same-direction orders (points, 0 = no limit)
Close opposite orders on a new signal
ab========================================ORDER LIMITS
01Max total BUY + SELL orders (0 = no limit)
01Max BUY orders (0 = no limit)
01Max SELL orders (0 = no limit)
At most 1 order per candle (of the timeframe)
ab========================================DONCHIAN CHANNEL SETTINGS
01Entry channel candles
01Exit channel candles
Draw the channel on the chart
ADX filter: only enter when ADX is at the trend level
01ADX and ATR period
½ADX trend level
ab========================================ENTRY SCENARIOS
Channel breakout: close above the channel high BUY, below the low SELL
Pending orders: Buy Stop at the high, Sell Stop at the low of the channel
01Pending orders: distance from the channel edge (point)
Channel middle pullback: touch the middle line then bounce
01Channel middle pullback: within this many candles after the breakout
Trade direction
ab========================================BREAKEVEN AND TRAILING STOP
Move Stop Loss to breakeven
01When the order is in profit by (points)
01Stop Loss beyond entry price (points, to cover costs)
Trailing Stop: Stop Loss follows price
01Start when the order is in profit by (points)
01Keep Stop Loss away from price (points)
01Minimum step (points)
ab========================================OTHER SETTINGS
Phone notification when orders open / close
LoadSave

How the EA works

The EA computes the Donchian channel on closed candles of the entry timeframe (H1 by default): the high and low of the previous 20 candles. A close outside the channel is a breakout, the EA enters in the breakout direction and exits when price breaks the 10 candle channel the other way, like the Turtle system.

BUYBUYBUYSELLBUYSELLBUYSELLBUYBUY20 channel high20 channel lowChannel middleEntry point
The same price section, with the 20 candle Donchian channel (high, low of the previous 20 candles) computed exactly like the EA. Choose a setup to view: the yellow dot is where the EA opens a trade. Channel breakout enters at the open of the candle after the candle that closed outside the channel; Pending orders fill right at the Buy Stop, Sell Stop level (dashed yellow line), and the EA only places new pending orders after the previous trade has exited by the 10 candle channel; Channel middle pullback enters after price returns to the middle line and bounces.

Entry scenarios

  • 1. Channel breakoutDefault: YES
    • BUYA candle closes above the 20 candle channel high
    • SELLA candle closes below the 20 candle channel low
  • 2. Pending orders at the channel edgeDefault: NO
    • BUYBuy Stop 50 points above the channel high, placed again every candle
    • SELLSell Stop 50 points below the channel low, placed again every candle
  • 3. Channel middle pullbackDefault: NO
    • BUYJust broke the channel high, the candle touches the middle line then closes bullish above it
    • SELLJust broke the channel low, the candle touches the middle line then closes bearish below it

When there is a signal

  1. 1Check conditions

    A new order opens only when all of these hold.

    • Within 00:00 - 23:59 (server time), spread no more than 250 points
    • Fewer than 10 orders, at most 5 BUY and 5 SELL
    • At most 1 order per H1 candle
  2. 2Open the order

    Stop loss by the exit channel, no take profit so the trade runs with the trend.

    • Volume 0.01 lot
    • Stop loss: BUY at the low, SELL at the high of the 10 candle channel (can switch to ATR or points)
    • No take profit by default
  3. 3Exit

    Turtle style: exit when the trend ends, no guessing tops and bottoms.

    • A candle closes below the 10 candle channel low: close all BUY trades
    • A candle closes above the 10 candle channel high: close all SELL trades
    • Break even and Trailing Stop can be added if you want
  • The channel uses the 20 candles before the current one, so a breakout candle is always compared with the old high, low. Signals come from closed candles and never repaint.
  • Breakouts often fail while the market is ranging. Turn on the ADX filter to enter only when there is a trend.
  • Direction: Both BUY and SELL, BUY only, SELL only.
  • To see the channel and signals on the chart without automatic trading: Donchian channel indicator CB-8910 (free).
Turtle style channel breakout

A close above the 20 candle high is a BUY, below the 20 candle low a SELL. Only the first breakout, no repeated entries.

Pending orders at the channel edge

Turn on to place Buy Stop, Sell Stop orders at the channel edge, updated every candle, filled as soon as price touches instead of waiting for the candle to close.

Channel middle pullback

After a breakout, when price pulls back to the middle line and bounces, an extra trade in the same direction is opened.

Exit by the 10 candle channel

Trades are held until price breaks the 10 candle channel the other way, so winning trades ride the whole trend.

ADX filter

Turn on to only enter when ADX is 25 or higher, skipping false breakouts while the market is ranging.

Channel and panel on the chart

The EA draws the Donchian channel. A draggable panel shows the channel high and low, price position, exit channel, ADX filter and enabled setups.

Overview

Donchian Channel Breakout Forex Robot (code GD-8810) is an EA for MetaTrader 4 and MetaTrader 5 that trades the Donchian channel, the basis of the famous Turtle system. The Donchian channel connects the highest and lowest prices of the last N candles; a close outside the channel means the market has just broken the old high or low and often starts a trend move.

The EA has 3 setups switched on or off separately: 20 candle channel breakout (default), Buy Stop, Sell Stop pending orders at the channel edge, and a pullback to the channel middle after a breakout. The default stop loss is at the 10 candle channel edge with no take profit; the EA exits when price breaks the 10 candle channel the other way, so winning trades ride the whole trend. Turn on the ADX filter to skip false breakouts while ranging. Signals always come from closed candles.

Default settings are made for gold XAUUSD. With brokers quoting gold with 3 decimals (for example 2650.125), 1 dollar of gold = 1000 points. With brokers quoting 2 decimals, 1 dollar = 100 points, so divide the point settings by 10.

Example with default settings on H1: the 20 candle channel high is 2661.480. The 08:00 candle closes at 2662.300, above the channel high. At 09:00 the EA opens a BUY 0.01 lot at about 2662.400, stop loss at the 10 candle channel low 2647.150. The trade is held until a candle closes below the 10 candle channel low (this channel rises with price), then the EA closes it.

The panel on the chart shows the channel high and low, price position vs the channel, the exit channel, ADX filter status, enabled setups and open trades. One single file for a 7 day demo trial and live trading with a license. Every trade has the comment "www.HoangTrong.com", default Magic number 8810.

Changelog

Version 1.023/11/2026

First release of Donchian Channel Breakout Forex Robot.

  • Turtle style channel breakout
  • Pending orders at the channel edge
  • Channel middle pullback
  • Exit by the 10 candle channel
  • ADX filter
  • Channel and panel on the chart

FAQ

Is the trial version different from the full version?

No. Each product has a single file. Without a license it runs for 7 days on a demo account. Buy a license for your account ID and it runs on your live account, no new download needed.

What is WebRequest and why does the EA need it?

WebRequest is the permission that lets an EA connect to an address on the internet. HoangTrong.com EAs use it to activate the license, then check themselves offline. See how to enable WebRequest.

How do I activate the license?

Buy a license for the correct MetaTrader account ID, then click Activation in the EA. You don't need to enter or store any key. After reinstalling, just activate again.

What if I want to use the EA on another account ID?

A license is permanently tied to the account ID it was bought for. To use the EA on another ID, buy an extra ID right on the product page: if you already own the license, each extra ID costs only 100,000 VND.

Multi-account licenses

Extra IDs only 100,000 VND/ID

Each license includes 1 account ID. Each extra ID is only 100,000 VND, for both retail and COMBO prices, valid forever.

  1. What is an account ID?It's your MT4/MT5 login number, shown in MetaTrader and in the email the broker sends when you open the account.
  2. Buy several IDs at onceEnter IDs separated by commas, for example 12345678, 87654321. Up to 20 IDs per order.
  3. Add IDs laterOnce you have a license, come back to this page, enter the new ID and click Buy a license. You're only charged 100,000 VND per ID, not the license price again.
Buying extra IDs: sign in firstSign in with the website account you bought the license with to get the 100,000 VND per ID price. With a different website account, the system cannot see your license and charges the full license price.
Example1 ID3 ID
Retail price500,000 VND700,000 VND
COMBO price5,000,000 VND5,200,000 VND
Add IDs later100,000 VND per ID (signed in)

Besides Donchian Channel Breakout Forex Robot

Other products from HoangTrong.com

View all products
CB-8910IndicatorsMT4MT5

Donchian Channel Indicator

Draws the Donchian channel (high, low, middle line of 20 candles), draws BUY, SELL arrows when price closes outside the channel or pulls back to the channel middle, ADX filter and phone notifications.

  • Donchian channel high, low, middle
  • Arrows on breakout and middle pullback
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details
GD-8801Indicator-basedMT4MT5

RSI Overbought Oversold Forex Robot

The EA opens BUY and SELL orders on RSI signals in the overbought and oversold zones, with built-in stop loss, take profit, break-even and Trailing Stop.

  • 3 RSI entry scenarios, each can be switched on or off
  • Stop loss, take profit, break-even and Trailing Stop
  • Limits on order count, trading hours, spread, 1 order per candle
Retail price500,000 VND
Details
GD-8805Indicator-basedMT4MT5

Multi-Timeframe RSI Forex Robot

EA opens orders on RSI overbought and oversold signals, filters signals with the RSI of 5 timeframes switched on or off separately, multi-timeframe RSI table right on the chart.

  • 3 RSI entry scenarios, same as GD-8801
  • 5 RSI filter timeframes, each with its own inputs and on/off
  • Multi-timeframe RSI table on the chart, unused filters clearly marked
Retail price500,000 VND
Details

Need a different feature?

Order a custom EA built on your strategy, priced per feature.