
Why your backtest and live trading disagree, and why they shouldn't
Imagine your backtest says your strategy bought on Tuesday, but your live account shows it did nothing. One of the two is wrong, and until you know which, you cannot really say whether the strategy works at all.
Every systematic trader runs into this sooner or later. A strategy is built and tested in a simulator, which replays years of market history, and is then switched on with real orders. At some point the simulation and the live trading disagree, and the temptation is to call the difference noise and move on. That is a mistake, because a small difference is usually the visible end of something larger. One extra trade changes the strategy's equity, which changes how much capital it is given, which in turn changes the size of every trade that follows.
Finding out which side is wrong depends on one condition: both must be given exactly the same inputs and start from exactly the same state, so that the same question always produces the same answer. Engineers call this determinism. In practice it means locking down everything that can quietly change, from historical prices that data vendors revise after the fact, to futures price histories that are recalculated every time one contract expires and the next takes over, to strategies that decide to "buy at the close" using the closing price itself, which a real order placed before the close could never have known.
The most effective test is to run a new strategy live on a paper account, which trades real market prices with simulated money, alongside its simulation, and to insist that every signal, position and profit figure matches. This is how I validate every new strategy on my own platform before it trades with real capital, and it regularly catches problems that the backtest alone would never have revealed.
Once the two sides agree, any remaining difference in results can only have come from the market, and that is the point of the exercise. The market's moves stay uncertain, but how much risk is taken, and how it is sized and limited, is decided by rules that behave the same way in simulation and in live trading.
The full paper walks through the seven things that most often break that agreement, from history that a data vendor rewrites overnight to a rounding rule that quietly moves an order by a cent, each with a real case from my own platform and the fix that now prevents it.




