Xau Breakout EA enters market orders on the open of a new bar after a completed bar closes beyond a Donchian channel breakout level. Risk controls include ATR-based stop loss, a reward-to-risk take profit multiple, percent-of-equity position sizing, daily loss limits, and an ATR trailing stop activated after reaching a set profit multiple. It also filters trades by session hours, spread limits, and economic news events. According to the README, the MQL5 implementation has not yet been validated in the MT5 Strategy Tester.
Donchian channel breakout entries on completed bars
ATR-based stop loss and trailing stop
Percent-of-equity position sizing and daily loss limit
Read from XauBreakoutEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpLookbackBars
int
60
Breakout lookback (bars)
InpAtrPeriod
int
14
ATR period
InpRequireCloseOut
bool
true
Require bar close beyond level
InpRiskPercent
double
0.75
Risk per trade (% of equity)
InpStopAtrMult
double
1.50
Stop distance (x ATR)
InpRewardRisk
double
2.00
Take profit (R multiple)
InpMaxTotalRiskPct
double
3.00
Max total open risk (% equity)
InpMaxDailyLossPct
double
2.00
Max daily loss (% equity), 0=off
InpMaxPositions
int
1
Max simultaneous positions
InpUseTrailing
bool
true
Enable ATR trailing stop
InpTrailAtrMult
double
2.00
Trailing distance (x ATR)
InpTrailStartR
double
1.00
Start trailing after this R
Show all 23 inputs
Name
Type
Default
Description
InpUseSession
bool
true
Restrict to London/NY hours
InpSessionStartHour
int
7
Session start (server hour)
InpSessionEndHour
int
20
Session end (server hour)
InpFridayStopHour
int
20
Stop new trades Fri after this hour (25=off)
InpMaxSpreadPoints
double
60
Max spread in points (0=off)
InpUseNewsFilter
bool
true
Block around high-impact news
InpNewsBeforeMin
int
15
Minutes before event
InpNewsAfterMin
int
15
Minutes after event
InpMagic
ulong
20261003
Magic number
InpSlippagePoints
int
30
Slippage (points)
InpRandomSpread
int
0
Randomise entry by 0..N points (0=off)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone daveok16-arch/XauBreakoutEA 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, and any .mqh files into the Include folder the code expects.
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 implements Inner Circle Trader concepts, specifically focusing on Order Blocks and PD Arrays for trade entries. The robot identifies price action structures including breakouts, range-based patterns, and Fibonacci extensions. For risk management, it utilizes ATR-based stop losses, trail
This MetaTrader 5 Expert Advisor functions as a bridge for TradingView alerts, processing signals through a Python-based webhook server. It executes a mechanical strategy involving trend following, Fair Value Gaps, and structural changes like Break of Structure. The EA includes sophisticated risk management such as dyn
Straddle Grid is an automated trading robot for MetaTrader 5 that deploys bidirectional stop-order grids based on fixed price distances. The expert advisor utilizes a gates system to filter entries by ATR volatility, spread limits, and specific GMT trading sessions. It manages positions as a basket with currency-based
XAUScalper is a MetaTrader 5 expert advisor designed for gold and Bitcoin that trades M1 market structure without technical indicators. It identifies market structure shifts, swing points, and price breakouts, entering trades confirmed by short-term real tick flow momentum. Orders are placed in asynchronous multi-posit
News Catcher EA is an automated trading robot for MetaTrader 4 designed to trade market volatility typically associated with news events. It functions by placing pending buy and sell orders at a specific distance from the current price at a pre-defined start time. The EA manages trades using a configurable trailing sto
This MetaTrader 4 expert advisor is designed specifically to trade high-impact Non-Farm Payroll news events on USD currency pairs. It functions by placing a straddle of buy and sell pending orders at a set distance from the market price shortly before the news release. Once the market breaks out and triggers one order,