MT5 Expert Advisor
QuantForg Gold Breakout EA for MetaTrader 5
A simple, transparent XAUUSD Expert Advisor: trend-filtered breakout entries, a stop loss and take profit on every trade, and strict risk limits. Listing on the MQL5 Market is in progress; this page explains how it works and how to set it up.
Rules you can read
H1 EMA50/200 trend plus a confirmed M15 breakout of the last 40 bars. No black box.
Stop loss on every trade
2.0 x ATR stop and 2.5 x risk target, with the reward checked after spread.
Risk cap built in
Lot is reduced, never raised, so a stop-out stays under your maximum risk percent.
No martingale, no grid
One position at a time and a daily stop that pauses trading for the day.
Session and spread filters
Trades only 07:00 to 12:00 UTC on weekdays and skips wide spreads.
Honest by design
We publish the settings and the risks. No profit promises.
Set up in five steps
- Open MT5 and add an XAUUSD chart on the M15 timeframe.
- Attach QuantForgEA from the Navigator (Expert Advisors) and tick Allow Algo Trading.
- Keep the default lot of 0.01 while you test, and run it on a demo account first.
- Check the Experts tab: you should see the EA start without errors.
- Keep the terminal running (a VPS helps) during the 07:00 to 12:00 UTC session.
Inputs explained
- InpLot: trade size. Default 0.01.
- InpMaxRiskPct: maximum loss at the stop, as a percent of equity. The lot is reduced to fit it.
- InpDailyStopPct: stops new trades for the day after this loss.
- InpMaxSpread: skips trades when the spread is wider than this.
- InpStartHourUTC / InpEndHourUTC: trading window.
- InpSwingBars, InpAtrSlMult, InpRR: breakout lookback, stop distance and reward ratio.
Know the risks
Trading gold is high risk and you can lose your capital. Read our risk disclosure before you trade, and prefer the cloud robot on the pricing page if you do not want to keep a terminal running.
Frequently asked questions
- Which symbol, timeframe and account type?
- XAUUSD on an M15 chart, on a hedging or netting MT5 account. Make sure Algo Trading is switched on.
- What does the EA do?
- Once per new M15 bar, inside its session (07:00 to 12:00 UTC, Monday to Friday), it looks for a confirmed breakout of the last 40 bars in the direction of the H1 EMA50/EMA200 trend. It opens one trade with a stop loss of 2.0 x ATR and a take profit of 2.5 x the risk.
- Does it use martingale, grid or averaging down?
- No. One position at a time, a stop loss on every trade, a spread filter, a daily stop, and the lot size is reduced so a stop-out never exceeds the risk cap.
- Will it make money?
- Nobody can promise that. The EA wins roughly four to five trades in ten in our tests and relies on winners being larger than losers, so losing streaks of several trades are normal. Backtests do not guarantee future results, and results depend on your broker, spread and execution. Test on a demo account first.
- Is this the same as the QuantForg cloud robot?
- No. The EA is a standalone product that runs inside your own MT5 terminal. The QuantForg cloud robot runs on our servers with a subscription and does not need your computer on.
Try QuantForg on your own MT5 account
Create a free account, connect and verify your broker, and explore QuantForg AI. Subscribe when you are ready to switch the robot on.
Trading gold involves substantial risk of loss. QuantForg is software; it does not guarantee profits and past results do not guarantee future results. See our risk disclosure.