This Expert Advisor for MetaTrader 5 offers two distinct trading modes: Donchian Channel breakouts for trend following and session range breakouts for daytrading.
The Donchian mode utilizes high/low channel breaks filtered by an Exponential Moving Average, while the session mode targets breakouts from defined UTC time ranges. It features a comprehensive risk management engine including ATR-based stop losses, trailing stops, and break-even logic. The included recovery module provides martingale-style lot scaling via multipliers or target-based sizing to recoup losses. It also implements a daily loss circuit breaker and an interactive dashboard.
Read from ApexBreakoutRecovery.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMode
ENUM_STRATEGY_MODE
MODE_DONCHIAN
Strategy mode
InpATRPeriod
int
14
ATR period
InpSLxATR
double
2.5
Stop loss (ATR multiple)
InpTPxATR
double
0.0
Take profit (ATR multiple, 0 = off)
InpTrailxATR
double
0.0
Trailing stop (ATR multiple, 0 = off)
InpBreakevenR
double
0.0
Move SL to entry after +R (0 = off)
InpBEOffsetPoints
int
0
Break-even offset (points)
InpMaxBarsInTrade
int
0
Time exit after N bars (0 = off)
InpEntryChannel
int
24
Entry channel period (bars)
InpExitChannel
int
12
Exit channel period (bars)
InpTrendEMAPeriod
int
200
Trend EMA filter (0 = off)
InpAllowReverse
bool
true
Stop-and-reverse on opposite signal
Show all 40 inputs
Name
Type
Default
Description
InpRangeStartUTC
int
0
Range build start hour
InpRangeEndUTC
int
7
Range build end hour
InpEntryCutoffUTC
int
12
Last entry hour
InpForceCloseUTC
int
19
Force-close hour
InpBufferATR
double
0.25
Breakout buffer (ATR multiple)
InpMinRangeATR
double
0.0
Min range width (ATR multiple, 0 = off)
InpMaxRangeATR
double
0.0
Max range width (ATR multiple, 0 = off)
InpAutoGMTOffset
bool
true
Auto-detect broker GMT offset (live only)
InpServerUTCOffset
int
2
Manual broker GMT offset (hours, used in tester)
InpTradeMon
bool
true
Trade on Monday
InpTradeTue
bool
true
Trade on Tuesday
InpTradeWed
bool
true
Trade on Wednesday
InpTradeThu
bool
true
Trade on Thursday
InpTradeFri
bool
true
Trade on Friday
InpRiskMode
ENUM_RISK_MODE
RISK_PERCENT
Position sizing mode
InpRiskPercent
double
1.0
Risk per trade (% of equity)
InpFixedLots
double
0.10
Fixed lot size (if fixed mode)
InpMaxSpreadPoints
double
0
Max spread to trade (points, 0 = off)
InpMaxDailyLossPct
double
0
Max daily loss % - blocks new trades (0 = off)
InpFlattenOnDailyLoss
bool
false
Also close open position on daily loss
InpAllowLong
bool
true
Allow long trades
InpAllowShort
bool
true
Allow short trades
InpRecoveryMode
ENUM_RECOVERY_MODE
RECOVERY_MULTIPLIER
Recovery sizing mode
InpMartMultiplier
double
1.5
Risk multiplier per consecutive loss
InpMartMaxSteps
int
3
Max multiplier steps
InpRecoveryTargetR
double
2.0
Assumed win (R) for recovery targeting
InpMaxRiskPerTrade
double
3.0
HARD cap on effective risk per trade (%)
InpReentryMax
int
0
Same-day re-entries after SL loss (0 = off)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone sbrakni/MQL5-trading-bot-claude-experiment 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.
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man
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
This MetaTrader 5 expert advisor implements a breakout strategy combined with Fair Value Gap alignment, primarily optimized for Gold (XAUUSD). It enters trades based on momentum and price range breaks, utilizing ATR-based calculations for dynamic stop loss and take profit levels. The system includes comprehensive risk
This MetaTrader 5 expert advisor provides a framework for trade execution with a heavy emphasis on risk management and scheduling. It offers multiple methods for calculating trade volume and exits: manual points, percentage of account risk, and ATR-based calculations. The EA includes a partial profit-taking system and
This MetaTrader 5 expert advisor is designed for gold trading using an adaptive, modular architecture. It features a regime detector that switches between trend-following, mean reversion, and breakout strategies based on market conditions. The system utilizes exponential moving averages, ADX for trend strength, and RSI