How to backtest XAUUSD (gold) step by step
Gold trades almost 24 hours, but most of the intraday opportunity sits in a few windows. Backtesting XAUUSD well means picking one window, sizing in dollars of gold, and replaying enough days.
1. Pick your window
| Window (New York time) | What happens |
|---|---|
| 08:20–08:40 | US economic data at 08:30. Fast, often whippy. |
| 09:30–11:00 | Stock market open. Strong trends and reversals. |
| 13:30 | COMEX close approaches; liquidity thins. |
2. Size in dollars, not pips
XAUUSD is quoted in dollars per ounce. On MGC every $1 move is worth $10, on GC $100. A $4 stop is $40 on one MGC. Decide your risk per trade in dollars first and work back to the number of contracts.
3. Replay days you have not seen
Open the simulator on XAUUSD, press Random and Hide date, start at 09:25 and trade only your window. Step bar by bar near entries; the 1-second data shows how fast gold moves through a stop.
4. Tag and judge
Give every trade a setup tag and look at win rate, average R, profit factor and max drawdown after at least 50 trades. Compare gold with the same setup on the Nasdaq 100; some setups work on one and not the other.
Want a setup to start with? See the XAUUSD New York morning setup.
Frequently asked questions
What is the best time to trade XAUUSD?
For intraday traders in the US session, 08:30 data and 09:30 to 11:00 New York time usually have the most movement.
Can I backtest gold for free?
Yes. NQ Replay has real XAUUSD days with 1-second data around the New York morning, free in the browser.