The best MT5 EA settings for gold are rarely the default ones. Out of the box, most EAs ship with conservative placeholders that either leave money on the table or quietly mis-handle the volatility on XAUUSD. This guide walks through the five settings that actually matter and gives sensible starting values for 2026.
The TL;DR: risk 0.5–1% per trade, restrict sessions to the London–NY overlap, block red-folder news with a 30-minute buffer, set a unique magic number, and allow 2–5 pips of slippage tolerance.
1. Risk per trade
The single most important input. Risk too much and a normal drawdown becomes a blown account; risk too little and the strategy's edge gets lost in fees.
- 0.5% — conservative; good for live-testing a new EA on a real account.
- 1.0% — the long-accepted standard; most strategy backtests assume it.
- 2.0% — aggressive; only use with a proven live track record and low correlation across trades.
The logic is compounding survival. At 1% per trade, ten consecutive losses (rare but possible) cost ~10% equity — painful but recoverable. At 5%, the same run removes 23% — and now you're in psychological trouble. The CFTC's trading education center discusses this kind of math in depth.
2. Session filter
Gold behaves differently in Tokyo vs London vs New York. Most rules-based systems are built on one of these sessions and fail quietly if allowed to trade the wrong one.
Starter session defaults for a gold EA:
- Start: 07:00 GMT (London open)
- End: 20:00 GMT (before US close thin liquidity)
- Block rollover: 21:00–23:00 GMT — spreads widen sharply here.
If your EA supports it, close any open positions before Friday's US close rather than holding over the weekend. Gaps on Sunday night are unforgiving.
3. News filter
High-impact economic events shred unfiltered EAs. NFP, FOMC, CPI, and central-bank speeches can move gold 50–100 pips in seconds with spreads that briefly hit $1.50.
A proper news filter does three things: subscribes to an economic calendar, blocks entries inside a configurable window (e.g. 30 minutes before → 30 minutes after), and optionally closes open positions before the event. Our NextTrade EA ships with this built in.
4. Magic number
The magic number is a unique integer ID your EA stamps on every order. It lets MT5 tell your EA's trades apart from other EAs, copy-trade orders, or manual clicks.
Rules of thumb:
- Always set a non-zero magic number. Default of
0causes your EA to "adopt" manually placed orders. - Use a different magic number per instance. If you run the same EA on XAUUSD and EURUSD, give each its own ID.
- Pick something memorable — a date, a birthday,
230426. It shows up in every journal log.
5. Slippage tolerance
Slippage is the gap between your requested price and the fill price. On XAUUSD, 1–3 pip slippage is normal during liquid hours; spikes to 10+ pips happen during news.
The right tolerance depends on your stop size:
- Scalping (20–30 pip stops): 2 pip tolerance — reject anything worse.
- Swing (80–150 pip stops): 5 pip tolerance — let small slippage through.
- News trading: don't. See the news-filter section.
Personal insight: the order you adjust matters
After years of helping users tune EAs, the mistake pattern is almost always the same: people change the entry logic first. The right order is the opposite.
- Lock risk-per-trade before anything else.
- Restrict sessions next — often fixes 50% of drawdown by itself.
- Enable the news filter third.
- Only then touch entry/exit thresholds.
Changing indicator thresholds before fixing risk is like tuning a car engine while the tires are flat. For a guided walkthrough, see how NextTrade handles each of these.