A simulation is only allowed to be pessimistic
Every simulated trade fills at a price that never happened. Unless you correct it, a simulation is optimistic by construction, and an optimistic simulation is worse than none.
Most trading research runs on simulated trades. You can’t afford to place every idea with real money, so you let the system decide as it would live, record the price at that moment and pretend the trade happened. That is a perfectly good way to explore. The trouble starts when the simulated results are read as if they were real ones.
The price you see is not the price you get
A simulated trade fills at the price observed when the decision was made. A real one doesn’t. Between deciding and filling, several things happen, and almost all of them cost you:
- Latency. The transaction takes time to reach the market. In a fast market the price has moved by the time it lands.
- Impact. Your own order moves the price. A simulation trades at the price before your order; a real fill pays its way along the book or the curve.
- Costs. Fees and the extra you pay to get included quickly when it matters.
- Failure. Real transactions fail, and the retry fills somewhere else. A simulated sell cannot fail.
None of these is large on its own. Impact, costs and failure only ever make the real result worse, and latency can’t be relied on to make it better. Add them up and a simulation is optimistic by construction, not by bad luck.
Correcting it, and only downwards
We correct every simulated result before it is used for anything: evaluation, sizing estimates or training labels. The correction is calibrated against real trades. For several thousand real fills we compared what the wallet actually received with the market price at a series of short delays after the decision, then chose the delay whose price best matched real fills, and used that price for simulated trades.
The rule that matters is that the correction only ever lowers a result. If the delayed price is better than the decision price, the simulated trade keeps the decision price; it doesn’t get the improvement. We tested a symmetric version that also raised results, which is more “unbiased” on paper. It was worse on every measure we track. Upward moves in that short window are noise that nothing known at decision time can predict, while downward moves are partly the systematic costs above. An unbiased correction is not the same thing as a useful one.
The bug you will make anyway
Once the corrected value exists, the uncorrected one is still sitting in the database, and it is easier to reach for. We have reached for it more than once.
The most instructive time, we spent a day investigating why simulated trades seemed to suffer severe losses about five times less often than real ones. It looked like a deep problem: perhaps the simulation was hiding the worst outcomes and the model was learning from a sanitised world. Measured on the corrected values, the gap shrank to less than one and a half times. After matching the two groups for how confident the model had been, it disappeared into noise. The whole investigation was built on the wrong column.
That episode is now a written rule: any number computed over simulated trades uses the corrected value, with no exceptions and no “just for a quick look”.
Why optimism is worse than nothing
A missing simulation leaves you uncertain, and uncertainty makes you careful. An optimistic one makes you confident in the wrong direction. It approves ideas that only work at prices nobody gets, it makes position sizes larger than the real edge supports, and it shows a comfortable gap between research and live results that you’ll spend weeks blaming on the market.
So a simulation earns its place only by being at least as harsh as reality. If it has to be wrong, it should be wrong on the pessimistic side, where the cost is an idea you didn’t try rather than money you didn’t have.