Guide · Fundamentals
XAUUSD expert advisor: how gold trading robots work
A XAUUSD expert advisor is a MetaTrader program that applies a fixed trading plan to gold, tick by tick. This guide explains the signal stack, why gold needs its own risk model, and how to validate a robot before going live.
Last updated: 14 August 2026
What an expert advisor actually does
An EA runs on every incoming tick: it recalculates indicators, checks entry conditions and sends orders when the rules align. Three layers matter — signal generation, position sizing and trade management.
The advantage is consistency: the robot never skips a valid setup and never widens a stop out of hope.
Why gold is different
XAUUSD moves several hundred points a day, spreads widen sharply around US data releases, and weekend gaps are common. A strategy built for EURUSD usually fails on gold because its stop distances and lot sizes are far too small for the volatility.
A gold-specific EA therefore needs a spread filter, a news window and volatility aware stops (for example ATR-based).
Position sizing for XAUUSD
With a standard lot, a 1.00 USD move in gold is roughly 100 USD. Use: lot = (balance × risk%) ÷ (stop distance in USD × 100). On a 5,000 USD account risking 1% with a 2.50 USD stop, that is 0.20 lots.
Fixed lot sizing is the most common reason accounts blow up — the lot must shrink as the stop widens.
Backtesting that means something
Use "every tick based on real ticks" in the MT5 Strategy Tester, at least 12 months of data, and your own broker's feed. Look at maximum drawdown and trade count before looking at profit.
A curve with 300+ trades and a 12% max drawdown is far more trustworthy than one with 20 trades and a spectacular return.
Going live safely
Run two to four weeks on demo, then start live with a small portion of your capital and a conservative risk percentage. Set a daily loss limit, review performance monthly, and re-check settings whenever the market regime clearly changes.
FAQ
Does a gold trading robot guarantee profit?
No. An expert advisor only executes predefined rules without emotion. Results depend on market conditions, spread, broker execution and your risk settings.
Which timeframe works best for XAUUSD?
MetHaND is tuned for the M15 chart, with trend confirmation from a higher timeframe. The shipped preset assumes this configuration.
Do I need a VPS?
It is strongly recommended. MetaTrader must stay online for the robot to manage open positions, so a low-latency VPS avoids gaps caused by outages.
Run MetHaND on your own account
Get a license, download the MT4/MT5 presets and start the XAUUSD strategy in minutes.
See pricing