How to backtest an options strategy properly
A stock backtest is easy to get roughly right and hard to make lie by a lot. An options backtest is the opposite. The data is harder to get, the fills are easier to fake, and a beautiful equity curve can hide a strategy that would have lost money every month in real life. Here is how options backtests fool people, and what an honest one does instead.
Why an options backtest lies more easily
Everything that makes options interesting also makes them easy to backtest badly. Four traps catch almost everyone:
- The data problem. You do not just need the price of the underlying. You need the historical option chain: the strikes, the expiries, and the bid and ask for each contract at the moment you would have traded. That data is expensive and messy, and a backtest built on the underlying alone is guessing.
- Optimistic fills. Options often have a wide gap between the bid and the ask. A backtest that assumes you traded at the mid-price is quietly handing you money the live market would have kept. Pay the realistic price and many "profitable" strategies disappear.
- Look-ahead. Using the day's closing price to pick a strike you supposedly traded at midday is cheating, even if it feels innocent. The backtest can only use what a trade could have known at the time.
- Same-day expiry. 0DTE options move fast and behave strangely near the close. Historical bars do not capture that well, so a 0DTE backtest has to be read with real caution.
What an honest options backtest actually does
A trustworthy backtest is built to be harder on your strategy than the live market will be, not easier. In practice that means:
- Realistic fills. Make each trade pay a sensible price against the spread, plus slippage and commissions, so the result reflects what would really have happened.
- No look-ahead, ever. Only data that existed at the moment of the decision, in both the prices and any indicators.
- Out-of-sample testing. Choose the parameters on one span of history, then see whether they still hold up on a later span the tuning never touched. A single curve fitted to the whole past proves nothing.
- Honesty about the limits. Where a strategy cannot be simulated faithfully, 0DTE especially, the backtest earns a smaller share of your trust, and paper trading fills the gap before real money does.
This is the same discipline behind our research work. Our case study on a linear-regression strategy shows how we keep a backtest honest in practice, and it is the heart of our backtesting software and research and validation work.
How to spot a fantasy backtest
A few things should make you suspicious of any options backtest, your own included: an equity curve that only ever goes up, no mention of the spread or commissions, results that fall apart the moment you test a period the strategy was not tuned on, and a run of wins so perfect it would be the envy of every trading desk on earth. None of these prove a strategy is bad. All of them are reasons to look harder before you trust it.
You bring the strategy. We build the honest test.
A backtest cannot tell you a strategy will make money, and anyone whose backtest promises that is selling something. What a good one can do is save you from risking real money on an idea that only ever worked on paper. That is worth more than a flattering chart. We build the engine and report what the data honestly shows. We do not supply strategies or trading calls, and we make no claim about returns. More on options automation if you want to take a tested strategy live.
Common questions
- Why is backtesting options harder than backtesting stocks?
- Two reasons. The data is harder, because you need the historical option chain and its prices, not just the price of the underlying. And the fills are easier to fake, because options spreads are wide, so assuming you traded at the mid-price flatters almost any strategy. Get either wrong and the backtest tells you a comforting lie.
- What is the most common mistake in an options backtest?
- Assuming perfect fills. Options often have a wide gap between the bid and the ask, so a backtest that fills every trade at the mid-price shows profits that the live market would never have given you. A proper backtest makes you pay a realistic price, and the result is usually a lot less exciting, which is the point.
- Can you backtest a 0DTE options strategy?
- Partly, and you have to be honest about the limits. Same-day-expiry options move fast and their behaviour near the close is hard to model from historical bars alone. You can learn a lot from a careful backtest, but the only fully trustworthy test is a real, small order in a live market. We say so plainly rather than pretend a simulation settles it.