How a 3-hour timezone error created most of an ML edge

One misaligned data series (broker time UTC+3 vs UTC) produced an AUC of 0.75. After the fix, every model fell to 0.50. A lesson on data leaks.

Written by: WICKVIPER Study ID: HISTORIA-02 Published: Updated:

Does not work

Short answer

Can a 3-hour timezone misalignment create a fake machine-learning edge?

Yes. One feature, aligned 3 hours wrong, scored AUC 0.75; aligned correctly it scored 0.482. That single feature explained 88–95% of the AUC our forex models reported. Without the leak, models sat at about 0.50.

Data
machine-learning models on forex pairs and indices (DE30, US30, EURJPY and others)
Period
April – September 2026
Sample
H1 direction models; leak found by testing correlation at different time offsets
Costs
not applicable: this is a data-integrity case

Key numbers

One feature, wrong alignment
AUC 0.75
Same feature, correct alignment
AUC 0.482
Share of reported AUC explained
88–95%
Clean models
AUC 0.4988 to 0.5176

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.

Questions

What is AUC?

A score from 0 to 1 for how well a model separates up moves from down moves. 0.5 is a coin flip.

How can a timezone mistake produce an edge?

If an external series is three hours ahead of the candle it is matched with, the model effectively sees part of the future. It looks excellent in testing and has nothing to offer live.

How do you check for this?

Shift the external series by several hours and look at the correlation. If it peaks away from zero, the alignment is wrong.

Sources

  1. Leakage (machine learning) — Wikipedia
  2. Coordinated Universal Time — Wikipedia

Past results do not guarantee future results. This is research, not a recommendation to trade.

All studies