Trading robot · MT5

Xau Breakout EA

by daveok16-arch

Xau Breakout EA is a MetaTrader 5 trading robot built for gold (XAUUSD).

GitHub stars1
Forks0
Last update6 weeks ago9 Oct 2026
LicenceNone stated

Overview

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.

Details

Author

daveok16-arch on GitHub

Type

Trading robot

Strategy

Breakout, News

Markets

Gold

Timeframes

Any timeframe

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 XauBreakoutEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpLookbackBarsint60Breakout lookback (bars)
InpAtrPeriodint14ATR period
InpRequireCloseOutbooltrueRequire bar close beyond level
InpRiskPercentdouble0.75Risk per trade (% of equity)
InpStopAtrMultdouble1.50Stop distance (x ATR)
InpRewardRiskdouble2.00Take profit (R multiple)
InpMaxTotalRiskPctdouble3.00Max total open risk (% equity)
InpMaxDailyLossPctdouble2.00Max daily loss (% equity), 0=off
InpMaxPositionsint1Max simultaneous positions
InpUseTrailingbooltrueEnable ATR trailing stop
InpTrailAtrMultdouble2.00Trailing distance (x ATR)
InpTrailStartRdouble1.00Start trailing after this R
Show all 23 inputs
NameTypeDefaultDescription
InpUseSessionbooltrueRestrict to London/NY hours
InpSessionStartHourint7Session start (server hour)
InpSessionEndHourint20Session end (server hour)
InpFridayStopHourint20Stop new trades Fri after this hour (25=off)
InpMaxSpreadPointsdouble60Max spread in points (0=off)
InpUseNewsFilterbooltrueBlock around high-impact news
InpNewsBeforeMinint15Minutes before event
InpNewsAfterMinint15Minutes after event
InpMagiculong20261003Magic number
InpSlippagePointsint30Slippage (points)
InpRandomSpreadint0Randomise entry by 0..N points (0=off)

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone daveok16-arch/XauBreakoutEA 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, and any .mqh files into the Include folder the code expects.
  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

OrderBlock ICT

by cfournel
4 stars

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

MT5 Trading robot SMC / ICT / price actionBreakoutNews
Updated 5 months ago None stated GitHub repository of OrderBlock ICT

DevyyTrades Webhook EA

by fynnelsner
1 stars

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

MT5 Trading robot Trend followingSMC / ICT / price actionNews
Updated 6 months ago None stated GitHub repository of DevyyTrades Webhook EA

Straddle Grid

by wolfbomb
1 stars

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

MT5 Trading robot GridBreakoutNews High risk
Updated 3 months ago None stated GitHub repository of Straddle Grid

XAUScalper

by allanorabaasa-hash
1 stars

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

MT5 Trading robot SMC / ICT / price actionBreakoutScalping
Updated 10 days ago None stated GitHub repository of XAUScalper

News Catcher EA

by oleg518
1 stars

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

MT4 Trading robot NewsBreakout
Updated 8 years ago None stated GitHub repository of News Catcher EA

Nonfarm News Trader

by mzavoloka
1 stars

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,

MT4 Trading robot NewsBreakout
Updated 10 years ago None stated GitHub repository of Nonfarm News Trader

More gold 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