Gold trading bot for MetaTrader 5
Gold moves hardest in the London–New York overlap, exactly when Mercury trades. Daily swings and H4 gaps on gold are some of the cleanest breakout levels in the book.
XAUUSD, backtest January 2016 → October 2026, after costs.
How Mercury trades XAUUSD
Mercury runs all five strategies on XAUUSD: breakouts through H4 fair value gaps, daily and H4 swing levels, yesterday’s value area and untested daily POCs. Each trade needs a decisive close through the level and a confirming candle, enters between 12:00 and 16:00 UTC, carries a fixed stop and a 3R or 4R target, and is closed after eight hours at the latest. Mercury holds at most two XAUUSD positions at a time.
When Mercury trades XAUUSD
Mercury’s entry window, 12:00 to 16:00 UTC, covers the London afternoon and the US morning: the main US economic releases, the US stock-market open and the afternoon London gold auction. That is when gold usually travels furthest in a day, and when its higher-timeframe levels get tested.
What moves Gold
- • The US dollar: gold is priced in dollars and usually moves against it.
- • US interest-rate expectations: higher real yields make a metal that pays no interest less attractive.
- • Risk sentiment and central-bank buying, which can keep a trend going for weeks.
XAUUSD at your broker
Brokers name this market differently: XAUUSD, GOLD, XAU, GOLDmicro, or the same name with a suffix such as XAUUSD.pro, XAUUSD.ecn or XAUUSDm. The Mercury Bridge EA recognises these names automatically.
Sizing and costs on XAUUSD
Gold can move several dollars in a minute around US data. Mercury sizes every trade from its stop distance and your broker’s own value per price step, so the amount at risk stays at the percentage you chose. If even the smallest lot your broker allows would risk more than that, Mercury skips the trade instead of over-risking it, so small accounts may see fewer gold trades.
In the backtest
From January 2016 to October 2026, after costs: 239 trades, 36% winners, an average winner of 2.48R and a deepest drawdown of 12.9R. Most trades lost; the result came from winners being larger than losers. Simulated, not live.
XAUUSD questions
- Does Mercury trade gold on Fridays?
- Yes, the same rules apply every weekday. Trades open only between 12:00 and 16:00 UTC and close at their stop, their target or after eight hours, whichever comes first.
- My broker calls it GOLD. Does that work?
- Yes. The Bridge EA recognises the common names and suffixes automatically; attach it to the gold chart your broker offers.
Hypothetical results from a backtest — simulated trades on historical prices with raw-spread costs (0.1 pip spread and $3.50 commission per side; index futures equivalent), not actual trading. The rules were built on 2012–2019 prices and checked on later years, but the results shown include the years they were built on, so live results are likely to be lower; your broker’s spreads, slippage and execution can differ. Past or simulated performance does not guarantee future results. Trading leveraged products can lose more than you expect.