NineFifteenAM

The journey

Month 6: the strategy worked, the plumbing didn't

1 min readBy Shubham

Backtests looked fine, live results didn't match, and the gap had nothing to do with the strategy. What I found when I replayed real order books.

Six months in, I had a strategy that looked good on paper and a live account that disagreed. The gap was eleven basis points per trade, consistently, in the same direction.

Where it went

Paper fills assumed the mid. Live got the far touch plus impact. On a strategy with a thin per-trade edge, that difference is the whole edge.

The fix

I rebuilt the paper engine to replay recorded order books against the decisions the strategy made, rather than pricing at the mid. Simulated results dropped immediately, which was the point: they finally matched reality closely enough to make decisions from.

The lesson I keep relearning is that the strategy is rarely the problem. The infrastructure around it is.

backtestingexecutionslippage
S

Shubham

I trade Indian markets and write the software that does it for me. I publish the engineering and the mistakes twice a week — no tips, no calls, no returns.

The Saturday letter

One email a week: what I built, what broke, and the lesson I'd pay money to have learned earlier.

Free. Unsubscribe anytime. No tips, no spam.

Related

26 Sept 2026
Why my backtest liedOne sentence that would make someone click this in search results.
The journey
18 Sept 2026
The ₹40,000 bug I shipped on a FridayA missing check turned one rejected order into eleven retries in nine seconds. The code path, the logs, and the guard that now makes it impossible.
Mistakes that cost me
26 Sept 2026
Algo trading in India: the rules, the cost, and what to do firstWhat the law requires of a retail algo trader in India, what a system costs to run after the April 2026 STT change, and the order to build it in.
Guides