r/PredictionsMarkets • u/ryanturbine • 3h ago
Strategy / Guide I backtested a trading idea 100 times and paper trading did not go as expected
I wanted to test a trading idea on the Kalshi 15 minute BTC market. It found four pairs of b2b markets where the first signal would have won and the next signal pointed the other way. After a loss it sat out three markets and after a win it skipped the very next market if the signal called for the same side again.
The first backtest made +$601.81 after fees across 461 closed positions, with a $21.10 max drawdown. Then I ran 100 versions of the same strategy which varied the price entries and all 100 showed a positive PnL, from +$47.00 to +$735.89.
I also plotted the pnl to parameter combination on a 3D surface which is meant to expose if the winning combination is due to lucky parameters. The 3D surface was relatively smooth without any sharp spikes suggesting that the strategy was fairly insensitive to parameter settings.
So everything looked good in the backtests but when I finally took the the strategy with the best backtested price entries the paper trade after 24 hours was in the negative. It filled 15 simulated buys and the day ended at −$16.99 PnL after $1.63 in fees. At an average cost of 74¢ per contract after fees, nine wins out of 15 fell short of the roughly three in four I needed to break even.
I think the strategy is still worth tweaking and paper trading again, but this loss reminded me why even a strong backtest needs to be checked against live prices.