Trading robot · MT5

Donchian Channel MT5 EA

by MuhammadHassanC

This MetaTrader 5 expert advisor trades multi-timeframe Donchian Channel breakouts and reversals.

GitHub stars1
Forks0
Last update11 days ago28 Oct 2026
LicenceMIT

Overview

Donchian Channel MT5 EA monitors up to four timeframes simultaneously in real time and enters orders when current price reaches Donchian channel boundaries across a user-defined confluence threshold. Traded logic can be configured for trend-following breakouts or mean-reversion bounces. Position risk is managed through fixed stop loss, take profit, and lot sizing parameters. Additionally, it features a shared basket money management system that enforces daily circuit breakers based on maximum dollar profit or loss targets across multiple asset instances.

Details

Author

MuhammadHassanC on GitHub

Type

Trading robot

Markets

Forex

Timeframes

M1-M5, M15-H1

Risk Profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input Parameters

Read from Donchian_Channel_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpSep1string════════════════════════════ Core Strategy Settings ══
Strategy_ModeENUM_STRATEGY_MODESameDirectionStrategy Mode
Confirm_Directionsint3Confirm Directions (1-4)
Timeframe_1ENUM_TIMEFRAMESPERIOD_M5Timeframe 1
Timeframe_2ENUM_TIMEFRAMESPERIOD_M15Timeframe 2
Timeframe_3ENUM_TIMEFRAMESPERIOD_M30Timeframe 3
Timeframe_4ENUM_TIMEFRAMESPERIOD_H1Timeframe 4
Period_of_Channelint50Period of the Channel
Showprice_of_the_LevelbooltrueShow Price of the Level
LotSizedouble1.25Lot Size
TP_Pipsint40Take Profit (Pips)
SL_Pipsint40Stop Loss (Pips)
Show all 21 inputs
NameTypeDefaultDescription
Magic_Numberint32134Magic Number
Comment_TextstringComment
InpSep2string════════════════════════════ Basket Management ══
Enable_Basket_Floating_PLbooltrueEnable Basket Floating P/L
Basket_IDint1Basket ID
Max_Basket_Loss_USDdouble1000Max Basket Loss (USD) [0=Disabled]
Max_Basket_Profit_USDdouble2000Max Basket Profit (USD) [0=Disabled]
Lock_Trading_After_TargetbooltrueLock Trading After Target
Reset_Daily_LockboolfalseReset Daily Lock (Manual)

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone MuhammadHassanC/MT5-Donchain-EA from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar Expert Advisors

High Frequency Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri

MT5 Trading robot ScalpingBreakoutMean reversion

Nolo Trading Bot

by festomanolo
4 stars

This expert advisor for MetaTrader 5 is a multi-strategy system that utilizes market regime detection to switch between trend following, range trading, and breakout modes. It incorporates a wide array of technical indicators, including Moving Averages, RSI, MACD, Ichimoku, and SuperTrend. The bot manages risk through v

MT5 Trading robot Trend followingMean reversionBreakout High risk
Updated 7 months ago MIT GitHub repository of Nolo Trading Bot
4 stars

Gold SnR Momentum Scalper Pro is an automated scalping robot for MetaTrader 5, specifically optimized for XAUUSD on the M1 timeframe. It identifies entry points by combining support and resistance zones with RSI and moving average momentum. The system incorporates tick-level analysis to measure buying and selling press

MT5 Trading robot ScalpingBreakoutMean reversion
Updated 5 months ago Custom licence GitHub repository of Gold SnR Momentum Scalper Pro

Sumting Wong EA

by definitelyfkd
3 stars

This multistrategy expert advisor for MetaTrader 5 combines currency strength analysis, breakout/reversal logic, and swap carry trading. It targets various markets including forex, gold, oil, indices, and crypto. Trade execution involves ATR-based stop losses, multiplier-based take profits, and partial closing mechanis

MT5 Trading robot BreakoutMean reversionMulti-strategy
Updated 5 months ago None stated GitHub repository of Sumting Wong EA
3 stars

This automated expert advisor for MetaTrader 5 implements a mean-reversion strategy based on Asian session price ranges. It identifies the high and low levels during specific Asian trading hours and monitors for a price breakout. Instead of trading the breakout momentum, it enters a position when price returns inside t

MT5 Trading robot Mean reversionBreakout
Updated 1 year ago None stated GitHub repository of Asian Range Breakout

Xauusd God MT5

by techly39
3 stars

This MetaTrader 5 expert advisor is designed specifically for trading gold (XAUUSD). The system utilizes a modular architecture to detect market regimes, identify ranges, and execute trades based on liquidity sweeps and breakouts. It incorporates several filters, including spread and volume checks, alongside a drawdown

MT5 Trading robot BreakoutSMC / ICT / price actionMean reversion
Updated 11 months ago None stated GitHub repository of Xauusd God MT5

More breakout EAs

Related on ForexR

Need a Broker for MT5?

Compare regulated brokers that support MT5, with spreads, minimum deposits and leverage side by side.

Compare MT5 brokers