My backtest was lying to me and i didn't notice for 3 weeks

u/Ashwinnie13 · Reddit — r/algotrading · July 17, 2026 at 11:24 · ⬆ 15 pts · 💬 11 comments  | View on Reddit ↗
AI Summary

Summary

  • Author describes discovering a position sizing bug in a mean reversion backtest for SPY options, which caused backtest results to be overly optimistic compared to paper trading.
  • The bug was in contract sizing based on post-fill margin instead of pre-fill, leading to unrealistic fills.
  • Post is a cautionary tale about backtesting assumptions and debugging methods, not a research-driven investment thesis.
  • Quality assessment: Anecdotal / noise — no new data or tradeable insight provided.
Score 15
Comments 11
Upvote % 100%
Full Post Text
More from Reddit — r/algotrading