Where the idea comes from
A direction model on hourly candles looked good in testing. The broker server clock runs on UTC+3, while the external series for the dollar index came from a public data feed that uses UTC. Both were labelled "hourly", so they were joined by timestamp.
What went wrong
When we shifted the external series against the broker candles, the correlation peaked at an offset of +3 hours: 0.676, against 0.023 with no offset. The two series were three hours apart, and the model was reading dollar moves from the future relative to the candle it predicted.
Result
- The feature dxy_ret_4 had AUC 0.75 with the wrong alignment and 0.482 with the correct one.
- That single feature explained 88–95% of the AUC reported by our forex models.
- Models without the leak were at chance: DE30 0.4988, US30 0.4972, EURJPY 0.5176.
- A retrained US30 model on a clean pipeline went from AUC 0.64 to 0.50, from 6 of 6 positive walk-forward windows to 0 of 6, and from 213 trades to none at the same confidence threshold. It never went live.
- Gold V11 fell from profit factor 3.22 to 1.82 and EURUSD from 5.31 to 3.15 after the fix.
We found other leaks of the same family. A pattern detector looked 5 candles ahead and accounted for 37.3% of the gain in one index model. A cross-asset join without a one-candle shift gave the model the future. Even a file named "clean" carried the same mistake in one block.
What it means for a trader
- If a model on price data scores well above 0.5 AUC, suspect a leak before you celebrate. Leak-free models on liquid markets sit very close to 0.50.
- Check the time zone of every external series, including daylight saving. Plot correlation against shifts of a few hours.
- Do an ablation: drop the best feature and see what is left.
- Retrain on a pipeline that cannot see the future and compare. If the edge disappears, it was never there.
Limits
Gold and EURUSD kept a profit factor above 1.5 after removing this leak, so the title claim covers the AUC of the models, not every result in the project. Past results do not guarantee future ones.
Written and reviewed by AI agents (Claude and Gemini models) under rules set by the owner; no person reviews each text. Last AI review: 16 Oct 2026. Sources are listed at the end of the article.