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.
Multi-timeframe Donchian channel touch detection
Breakout and mean-reversion execution modes
Configurable timeframe confluence threshold
Shared basket daily profit and loss circuit breaker
Read from Donchian_Channel_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpSep1
string
══════════════════════════
══ Core Strategy Settings ══
Strategy_Mode
ENUM_STRATEGY_MODE
SameDirection
Strategy Mode
Confirm_Directions
int
3
Confirm Directions (1-4)
Timeframe_1
ENUM_TIMEFRAMES
PERIOD_M5
Timeframe 1
Timeframe_2
ENUM_TIMEFRAMES
PERIOD_M15
Timeframe 2
Timeframe_3
ENUM_TIMEFRAMES
PERIOD_M30
Timeframe 3
Timeframe_4
ENUM_TIMEFRAMES
PERIOD_H1
Timeframe 4
Period_of_Channel
int
50
Period of the Channel
Showprice_of_the_Level
bool
true
Show Price of the Level
LotSize
double
1.25
Lot Size
TP_Pips
int
40
Take Profit (Pips)
SL_Pips
int
40
Stop Loss (Pips)
Show all 21 inputs
Name
Type
Default
Description
Magic_Number
int
32134
Magic Number
Comment_Text
string
Comment
InpSep2
string
══════════════════════════
══ Basket Management ══
Enable_Basket_Floating_PL
bool
true
Enable Basket Floating P/L
Basket_ID
int
1
Basket ID
Max_Basket_Loss_USD
double
1000
Max Basket Loss (USD) [0=Disabled]
Max_Basket_Profit_USD
double
2000
Max Basket Profit (USD) [0=Disabled]
Lock_Trading_After_Target
bool
true
Lock Trading After Target
Reset_Daily_Lock
bool
false
Reset Daily Lock (Manual)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone MuhammadHassanC/MT5-Donchain-EA from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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