Backtesting Option Strategies: What an Honest Test Includes
Research & Invest · Updated 8 Nov 2026 · Education, not advice
Backtesting means running a trading rule on past market data to see how it would have behaved. For options, where premiums depend on time, volatility and expiry rules, a backtest can show you things that are hard to see by intuition: how often a structure loses, how large the worst losses were, and how much of the gross result was eaten by costs. This guide explains why testing matters, what an honest options backtest includes, and the traps that make results look better than they really are.
What is backtesting in options trading?
A backtest takes a precisely defined rule, for example "sell a 200-point-wide iron condor on Nifty at 9:30 on the first day of each weekly series and exit at expiry or at a loss of 1.5 times the credit", and applies it to historical prices as if it had been traded. The output is a list of simulated trades and summary measures such as win rate, average gain, average loss, largest loss and drawdown.
A backtest does not tell you what will happen next. It tells you how a rule behaved in the conditions that existed in the past, which is useful evidence but not a forecast.
Why test a strategy on past data before trading it?
- To find out whether the idea holds up at all. Many rules that sound sensible fail once they meet real prices.
- To see the shape of the risk. Option selling structures in particular can show many small gains and rare large losses. A backtest shows how large those losses were and how often they came.
- To measure the effect of costs. Brokerage, STT, fees and slippage can turn a small gross edge into a net loss.
- To set expectations. Knowing the past worst drawdown helps you judge whether you could have stayed with the rule through it.
- To compare alternatives fairly. Weekly vs monthly expiry, different strikes or different exit rules can be compared on the same data.
A SEBI study covering FY22 to FY24 found that about 9 in 10 individual F&O traders made net losses over that period. Testing a rule before risking money is one way to avoid trading on an untested idea.
What does an honest options backtest include?
1. Realistic costs
Include brokerage per order, STT (on sell-side premium and on exercise), exchange charges, SEBI fees, stamp duty and GST, at the rates that applied at the time of each trade. Rates have changed over the years. See STT and charges on options.
2. Bid-ask spreads and slippage
Last traded prices are not fill prices. A fair test assumes you buy near the ask and sell near the bid, or adds a slippage allowance per leg. Far OTM strikes and stock options often have wide spreads. Multi-leg structures pay this on every leg, on entry and exit.
3. Correct expiry handling
- Use the expiry dates that actually applied at the time. Weekly expiry weekdays, the list of indices with weekly contracts and holiday shifts have all changed over the years. See weekly vs monthly expiry and the expiry calendar.
- Settle options held to expiry at the official settlement price, apply STT on exercise for ITM options, and remember that stock options are physically settled.
4. Historical lot sizes and margins
Lot sizes have been revised many times, including a large change for index derivatives from late 2024. Use the lot size in force on each trade date, not today's (see lot size explained). If the test assumes a fixed capital, check that the margin required at the time would have fitted, including higher expiry-day margins introduced in 2024.
5. No look-ahead bias
Every decision must use only information available at that moment. Common slips:
- Using the day's closing price to decide a trade, then entering at that same close or earlier in the day.
- Choosing the ATM strike using the day's high or low.
- Using indicators calculated on data that includes the bar being traded.
- Using revised or adjusted data that was not available at the time.
6. Clean, complete data
Option data needs prices for every strike and expiry used, at the times the rule trades, with gaps and stale quotes handled. If a strike did not trade at the time of entry, a fair test either skips it or uses a realistic quote, not a price from later.
7. Honest reporting
- Report net results after all costs.
- Show the largest single loss and the maximum drawdown, not just the win rate.
- Show the number of trades. Twenty trades say much less than five hundred.
- Show results by year or by market regime, so you can see whether one period carries the whole result.
Common backtesting traps
Overfitting
Testing dozens of parameter combinations and picking the best one almost always finds something that looks good on past data purely by chance. Signs of overfitting include very specific parameters (exit at exactly 37% of credit), results that collapse when a parameter is changed slightly, and rules with many conditions.
Survivorship bias
The list of F&O stocks changes over time as stocks are added and removed. Testing only on today's F&O list leaves out stocks that were dropped, often after poor performance, which can flatter results.
Ignoring tail events
Short option strategies can look smooth for long stretches. A test period that misses a sharp market crash or gap may hide the risk that matters most. Include periods of stress if your data allows.
Ignoring changes in market rules
SEBI's 2024 measures changed lot sizes, the number of weekly expiries, expiry-day margins and premium collection. A rule tested mainly on the earlier regime may behave differently now.
Treating IV as constant
If the test prices options with a model rather than real quotes, using a fixed implied volatility will misprice trades, especially around events where IV rises and then falls sharply. Real historical option prices are preferable. See implied volatility explained.
Confusing a good test with a good future
Even an honest backtest describes the past. Market structure, participants and volatility change.
How to check that a backtest is robust
- Out-of-sample testing. Develop the rule on one period, then test it unchanged on a later period it has never seen.
- Walk-forward testing. Repeat that process over rolling windows.
- Sensitivity checks. Change each parameter a little and confirm the result does not swing wildly.
- Cost stress. Double the slippage assumption and see what remains.
- Paper trading. Run the rule on live prices without real money for a period, logging every simulated trade, to see whether live fills match the test.
A simple workflow
- Write the rule down precisely: entry time, strikes, expiry, exits, position size.
- Run it on past data with realistic costs and slippage.
- Review the worst trades and the drawdowns, not just the totals.
- Test it out of sample and with small changes to parameters.
- Paper trade it on live data.
- Only then decide, for yourself, whether and how to use it.
Our options strategy lab lets you build multi-leg positions on live option chain prices, view the payoff and Greeks, and test strategies before you trade them. For the structures themselves, see option strategies for beginners.
See the live option chain, PCR and max pain for every F&O stock, and test strategies in the strategy lab: start a free trial.


