Pick an index, a structure and a time window, and see how it would have done on each of the last 4 to 52 expiries, using the real 1-minute prices of the exact contracts that traded. Test the expiry day itself or up to four sessions before it, with an optional stop-loss and target.
What does the expiry backtest do?
It takes one option structure and runs it the same way on many past expiries. For each expiry it reads the index at your entry time, picks the at-the-money strike, places the legs, and follows the position minute by minute until your exit time, stop-loss or target. You get every trade plus the win rate, total and average P&L, worst trade, drawdown and losing streak.
How far back does it go?
Up to the last 52 expiries. Nifty and Sensex have weekly expiries, so that is about a year; Bank Nifty has only monthly expiries now, so the same count reaches further back.
How are stop-loss and target measured?
As a share of the premium paid or received at entry. On a short straddle that collected ₹200, a 30% stop exits when the position is down ₹60 per unit. Checks run on each minute's closing price, so a stop can be breached inside a minute and recover by its close, and real fills at a stop are often worse.
Are costs included?
Yes. Every leg pays brokerage on entry and exit, STT, exchange and SEBI charges, stamp duty, GST and a slippage allowance. P&L uses the lot size that applied on each expiry, which has changed over time.