How to backtest a prediction market bot honestly
A backtest replays past markets to see how a strategy would have done. Most look far better than real life. Here's why, and how to fix it.
Why paper results look too good
- Fills: paper trades fill instantly. Real orders can miss when the price moves.
- Price: real buys often pay a cent more than the price on screen.
- Delay: the market can move between seeing a signal and getting in.
- Fees: easy to forget, and they add up.
Four rules for an honest test
- Assume you get filled a minute late.
- Pay one cent more than the screen price.
- Include every fee.
- Split your data into older and newer days and check that the strategy works on both. If it only works on one half, it was probably luck.
Then practice on paper
After a backtest, run the strategy on paper money on live markets for a while before using real money. New data is the real test.