Short answer: A gold EA is a program installed on MT4/MT5 that opens and closes XAUUSD trades according to written rules. Every EA has three parts: entry and exit rules (trend-following, breakout), filters (spread, news, trading hours) and money management (lot size and stop-loss). Safer EAs use a stop-loss on every trade and size lots from risk. Grid and martingale EAs look consistently profitable but can wipe out an account on a day gold runs hard in one direction. Before using real money, backtest it, run it on demo for 1–3 months and start with the smallest lot.
There's no single answer to "which gold EA is best", because an EA that suits one trader may not suit another with different capital and risk tolerance. But there is a way to assess any of them. This article explains how gold EAs work, how risky each strategy is, the settings to check, and how to test before going live.
New to EAs? Start with What is an EA?, and if you're unsure whether to automate at all, read Automated gold trading: pros, cons and risks.
How does a gold EA work?
An EA (Expert Advisor) is an MQL4 or MQL5 program running on an XAUUSD chart. Every time price moves, it checks its conditions and, if they're met, sends an order to the broker immediately. Almost every EA has three parts:
Part | Job | Example |
|---|---|---|
Entry/exit rules | Decide when to buy or sell | Price above the 200 MA on H1 and pulling back to support |
Filters | Block trading in risky conditions | Spread too wide, high-impact news, the daily break |
Money management | Set size and exits | Lot from 1% risk, stop-loss and take-profit |
Most EAs need MT4/MT5 running all the time; if you don't want to leave a computer on, you'll need a VPS. See What is a forex VPS?
How risky is each gold EA strategy?

Type | How it works | Strength | Main risk |
|---|---|---|---|
Trend-following | Trades with the bigger trend | Gold often trends for long periods | Steady losses in ranges |
Session breakout | Enters when price breaks the early-session range | Catches London and New York opens | Frequent false breakouts |
Scalping | Fast in and out, small targets | Many trades | Very sensitive to spread and execution speed |
Grid | Places layered orders at equal spacing | Steady gains in ranging markets | Accumulating losses when price trends |
Martingale | Increases lot size after a loss to win it back | Very smooth equity curve | Can lose most of the account in one move |
Note: EAs advertised with a "95% win rate" are often grid or martingale systems that hold losing trades until price returns. A high win rate doesn't mean safe; always check max drawdown. See What is drawdown?
Settings to check before running a gold EA

Setting | Why it matters for gold | Guideline |
|---|---|---|
Lot or risk % | 1 lot = 100 oz; at 0.01 lot, a $1 move ≈ $1 | Use risk % per trade if supported, or size lots from the stop distance |
Stop-loss / take-profit | Gold moves hard on news | Every trade needs a stop-loss |
Max spread | Gold spreads widen at the daily break and on news | Block entries when spread is above normal |
News filter | NFP, CPI, FOMC cause price jumps | Pause new entries around releases |
Trading hours | The daily break and Monday open are risky | Limit hours to what the system was tested on |
Max open trades | Prevents stacking beyond your capital | Cap trades and total lots |
Magic number | Keeps each EA's trades separate | Unique per EA if running several |
A common beginner mistake: gold's symbol and price format differ by broker. Some use XAUUSD, others GOLD or a suffix such as XAUUSDm; some quote 2 decimals, others 3. If the EA sets its stop-loss in "points", the meaning can differ by a factor of 10. Check your broker's contract specification and test on demo first. See How much is 1 lot of gold?
How to test a gold EA before using real money

Read the manual and ask the developer what strategy it uses, whether it has grid or martingale logic, and which brokers and account types it's designed for.
Backtest with good data across several years, covering both trending and ranging gold markets. Check max drawdown and trade count. See What is backtesting?
Forward-test on demo for 1–3 months with the broker you'll use, to see real spreads and execution. See demo accounts.
Check a verifiable live record if the developer has one: badges and drawdown, as in How to read Myfxbook.
Go live with the smallest lot and compare results with demo. If they differ a lot, stop and find out why.
Set a stop rule: if drawdown exceeds what you accept, switch it off and review.
Installing an EA on MT4, briefly
In MT4, go to File → Open Data Folder → MQL4 → Experts and paste the EA file (.ex4).
Restart MT4, or right-click Expert Advisors in the Navigator and choose Refresh.
Drag the EA onto an XAUUSD chart on the timeframe the developer specifies.
In the Common tab, tick Allow live trading; set the Inputs to the values you tested.
Turn on AutoTrading in the toolbar, then check the Experts and Journal tabs for errors.
Not familiar with MT4 yet? Read What is MT4?
Red flags when buying or using a gold EA
Guaranteed monthly profit, or "never had a losing month".
Only backtests, no live account record.
No explanation of the strategy, or "no martingale" while lot sizes grow after losses.
Requests to send money to the seller's account, or for your withdrawal password.
A high price with "limited places".
If you don't want to install and maintain an EA
EAs need ongoing work: settings, a VPS and monitoring. If you want a gold system without installing software, copy trading is an alternative. Indy Trader's AI Auto Trade is a gold copy trading service built on statistical logic and rules tested on historical data, and it shows its systems' max drawdown.
Gold EA FAQ
Which gold EA is best?
There's no best EA for everyone. Choose one with an explainable strategy, a stop-loss on every trade, a verifiable live record of at least 12 months, and a max drawdown you can accept in your own money.
How much capital does a gold EA need?
It depends on the EA's lot size and drawdown. Work backwards from what the max drawdown would cost you. Grid and martingale EAs usually need more capital than advertised to survive their drawdowns.
Are martingale gold EAs dangerous?
Yes, they're high risk because they increase size after losses. The equity curve can look smooth for a long time, but if gold runs further in one direction than the system can absorb, the account can be badly damaged in one move.
Can I use a gold EA on MT5?
Only if it's built for MT5 (.ex5). MT4 EAs (.ex4) don't run directly on MT5; you need the version for your platform.
By the Indy Trader team. Indy Trader is a forex and gold trading academy founded in 2012 by Coach Beer (Tithivat Huayhongtong).
Risk warning: Forex and gold trading carry a high level of risk and you may lose some or all of your capital. Past results do not guarantee future results. Figures in this article are illustrative only and are not investment advice.
:format(webp))