Backtesting gold requires explicit spread, slippage, commission and swap assumptions because XAUUSD trading costs vary dramatically between the London session and the 21:00 UTC rollover.
Results should be split by market regime — trend, range and shock — rather than by calendar date, and validated on out-of-sample data before any live capital is committed.