Backtest vs live: why our best backtests failed when the bots went live

Profit factors of 13.65, 5.28 and 4.8 in testing became zero trades, 0.61 and 0.20 live. Four mechanisms explain most of the gap.

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

Does not work

Short answer

How much of a strong backtest survives when the bot trades live, and why does the rest disappear?

In our older project, very little. Bots with backtest profit factors between 1.55 and 13.65 went live at 0.20 to 1.04, or never traded at all. We traced the gaps to four mechanisms: look-ahead, gross vs net, regime mistaken for edge, and too many tests without correction.

Data
forex pairs, US100, US30, UK100, DE30, gold, BTC
Period
April – September 2026
Sample
about 40 bots in an earlier project; nine backtest-vs-live pairs shown
Costs
live results are net of real costs; several backtests were gross (no costs)

Key numbers

Best backtest
PF 13.65, win rate 91–96%
Same bots live
0 trades in 60 days
Leaky feature
AUC 0.75 → 0.482 when fixed
False survivors
~155k of 621k tests

Where the idea comes from

Before the current lab we ran an earlier project: machine-learning models in Python, execution in MetaTrader 5, about 40 bots over its life. Many had excellent backtests. Almost none survived live trading. This post is the honest table, and what we learned from it.

The rule we tested

This is not one strategy. For each bot we compare the number the backtest promised with what live trading delivered. Profit factor (PF) is gross profit divided by gross loss; 1.0 means break-even.

Result

Result
BotBacktestLive
ML direction bots, forex (4)PF 13.65 / 13.23 / 8.25, win rate 91–96%0 trades in 60 days
US100 single modelPF 5.280.93 / 0.61
US100 direct modelPF 2.41 (tester, real ticks)0 trades in its whole life
Gold V10/V14PF ~4.80.20
UK100 time bias"PF 1.84"0.70
BTC Donchian (after leak fix)1.551.04
DE30 v14tester result gross−29.2% once costs were added

The direction of the gap is the same every time. The question is why.

Why

1. Look-ahead. Data from a higher timeframe or another market was joined to each bar without shifting it, so the model saw information from the future. One feature built on the dollar index had an AUC of 0.75 when misaligned by three hours and 0.482 when aligned correctly; that single feature explained 88–95% of the reported AUC of the forex models. Every model rebuilt without leaks scored about 0.50, a coin flip (DE30 0.4988, US30 0.4972). When one US30 model was retrained cleanly, its AUC fell from 0.64 to 0.50, walk-forward from 6/6 to 0/6 windows, and its trade count at the confidence threshold from 213 to 0. On BTC, fixing one forward-fill leak cut PF from 1.55 to 1.04 and walk-forward from 5/5 to 2/5.

2. Gross vs net. A tester that ignores friction reports a different strategy. For DE30 v14 adding costs removed 29.2% of the result. For UK100 the reward-to-risk was 0.48, so break-even needed a 68% win rate; live it won 64.5–66.3% of the time. That strategy was never run in the MetaTrader tester before going live.

3. Regime mistaken for mechanism. One trend model scored a Sharpe of 1.155 in a sealed test. A plain "always long" control on the same data scored 1.723. The model was riding the market, not adding to it, and its own pre-registered kill rule fired.

4. Too many tests. A filter of "positive in both test windows" applied to 621k variants lets through about 155k false survivors by chance alone. Results were reported as PF and CAGR without per-trade t-statistics or a correction for the number of tries.

What it means for a trader

  • A model that is right 50% of the time cannot produce a 95% win rate. Any win rate above 65% with PF above 2.5 deserves a hunt for a leak before anything else.
  • Ask for the result after costs, and for the break-even win rate of the stop and target you use.
  • Compare a strategy with "always long" on the same market and period. If the simple control wins, there is no edge.
  • Ask how many variants were tried. A best-of-many result needs a much higher bar.

Limits

These are our own bots from one earlier project, on one broker, over a few months of live trading; some live samples were small. The figures are taken from that project's documentation. They show what went wrong for us, not a law for every backtest. 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: 20 Oct 2026. Sources are listed at the end of the article.

Questions

Were these bots just unlucky?

Luck cannot explain a model with AUC around 0.50 reporting win rates of 91–96%, or a feature whose AUC fell from 0.75 to 0.482 once the timestamps were aligned. Most gaps had a concrete cause we could reproduce.

What is the quickest check against look-ahead?

Shift every external or higher-timeframe input so it is only known after the bar closes, rerun, and compare. If the result collapses, the original was using the future.

Does this mean backtests are worthless?

No. It means a backtest is a claim to be checked: costs included, inputs shifted, compared with a simple control and corrected for the number of variants tried. Our current lab registers rules before testing for that reason.

Sources

  1. Backtesting — Wikipedia
  2. Overfitting — Wikipedia
  3. Multiple comparisons problem — Wikipedia

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

All studies