Tuesday 16 Jun 2026 was a weekly expiry. Nifty closed at 23,989.15, and every option on that expiry settled against that close. Six days earlier, on Wednesday 10 Jun, the 23,250 straddle had sold for 346.05 a unit. The index finished 739.15 points above the strike, so the seller gave back more than was collected. One trade tells a backtester nothing, and four tell almost as little, as the ledger below shows. This lesson is about the work under an options backtest: the dated inputs, the rule changes a test must carry, the costs of a sold straddle and the number of trades it takes before a record means anything. The trades are an illustration of method. They are not a strategy, and nothing here is a view on where Nifty goes.

3By the end you can

  1. List the dated inputs an options backtest needs, and the contract facts to store with each chain.
  2. Carry lot size, expiry day, charges, STT on exercise and settlement regime by date through a ledger of trades.
  3. Treat a settlement price as a band, and work out how many independent trades a result needs.
Elliptical orbits of small lit dots around a soft core, one arc traced in teal

The idea, plainly

What does an options backtest need that a stock test does not?

A stock test needs one price series. An options test needs a whole chain for each date: every strike, with its settlement price, open interest in units and volume in contracts. NSE's end of day F&O file carries those, plus the future's own row and the lot of each contract. The rate and the expiry calendar come from elsewhere, and every one of them must carry the date of the chain. A rule is then replayed against each chain, settled at expiry, charged its costs of that date and written into a ledger.

Every stage of an options test reads something dated

An options backtest runs from a dated chain and the future, rate and lot of that date, through a written rule, settlement at expiry and costs of that date, into a ledger of tradesDiagram with 6 boxes. Dated chain to Written rule; Future, rate, lot to Written rule; Written rule to Settlement; Settlement to Costs by date; Costs by date to Ledger.Dated chainstrikes, settle, OI,volumeFuture, rate, lotas on that dateWritten rulestrike, entry, exit, sizeSettlementthe regime of that expiryCosts by dateSTT, exchange, SEBI, GSTLedgerone line per trade
A dated chain and its companions feed a rule written in advance. The expiry settles under the regime of its date, costs use the rates of its date, and the ledger keeps one line per trade. Source: RupeeCase illustration of an options backtest. As of 17 Oct 2026.

What is one line of the ledger, as a formula?

Every line is the same sum. The seller of a straddle collects the premium on entry, owes the intrinsic value at expiry, loses what the fill gave away and pays the charges of that date. Writing the sum out shows where each assumption enters, and each term is a column of the ledger.

Maths: the result of a sold straddle held to expiry

Result per lot =
(premium − intrinsic − s)
× lot size − charges

Intrinsic =
max(F − K, 0)
+ max(K − F, 0)

Here K is the strike, F the settlement value of the index at expiry, and s the slippage assumed per unit across the legs, which is zero for a settlement fill and positive for a realistic one. The premium is the settlement price of the call plus the put. The charges are STT on the sale, the exchange charge, SEBI's fee and GST, each at the rate of the entry date. A buyer's ledger replaces the sale charges with the buyer's: stamp duty on the purchase and STT on exercise, charged on the intrinsic value at the rate of the expiry date. Because a straddle always has one leg in the money unless the index closes exactly on the strike, the exercise charge falls on every long straddle held to expiry.

Point in time: what existed on that date?

A chain pulled today for a past date is only as good as the record of that date. Three things changed under the same names. The list of contracts: weekly options on the other NSE indices ended with BANKNIFTY on 13 Nov 2024, MIDCPNIFTY on 18 Nov 2024 and FINNIFTY on 19 Nov 2024 (NSE/FAOP/64506), so a weekly BANKNIFTY test has no data after the first of them. The strikes: for Nifty weekly and monthly expiries, NSE's strike interval file lists 35 strikes in the money, one at the money and 35 out of the money at an interval of 50, and wider ones at 100; the file points to the consolidated circular NSE/FAOP/67775 of 30 Apr 2025. A far strike that is listed today may not have been listed on the date, because the set of strikes follows the index. The lot: the file for the date carries its own lot, which is the only record of what it was.

Stored with each chainWhat to recordSource
Lot size25 for contracts before 20 Nov 2024, 75 for new contracts from then, 65 from the weekly expiry of 6 Jan 2026 and the monthly of 27 Jan 2026NSE/FAOP/64625, NSE/FAOP/70616
Expiry dayThursday, then Tuesday for contracts expiring from 1 Sep 2025NSE/FAOP/68747, SEBI/HO/MRD/MRD-TPD-1/P/CIR/2025/76
Weekly availabilityNifty only from 20 Nov 2024NSE/FAOP/64506
Strikes listedThe strike set of the date, not of todayNSE strike interval file
Settlement regimeIndex close; close set by the auction from 3 Aug 2026; thirty minute average from 7 Dec 2026SEBI circulars of 16 Jan and 15 Oct 2026
ChargesSTT, exchange charge, SEBI fee, GST at the rates of the dateNSE/FATAX/73524, NSE/FA/73061
The RupeeCase terminal on sample data: Portfolio value: what does "Same money in NIFTY 50" mean?
Watch in the terminal: what does "Same money in NIFTY 50" mean? A short tutorial on sample data.
Read one more paragraph, 114 words

Survivorship also works on strikes. A rule that asks for the strike at a given delta, or a fixed distance out, can use only strikes that existed and traded on the date, so a chain built from today's listing silently drops strikes that were listed then and are gone, and adds ones that did not exist. The same file gives the answer for each date: a strike with no volume on the day is a strike a rule could not have traded at the price shown. Keep the strike set of every date, count how many strikes the rule could choose from, and say what it did when the chosen strike had no volume.

How is a trade settled at expiry?

Nifty options are European and cash settled, so at expiry a call is worth the index close less the strike, or nothing, and a put the strike less the close, or nothing. Name the regime of each expiry. Before 3 Aug 2026 the settlement price was the index close, itself built from the constituents' volume weighted prices over the last 30 minutes. From 3 Aug to 6 Dec 2026 it is the index close set by the closing auction session. The four trades below all expired before 3 Aug. From 7 Dec 2026, under SEBI's circular of 15 Oct 2026, settlement returns to the index built from volume weighted prices over the last 30 minutes, now of continuous trading, and expiring index contracts stop trading at 3:30 pm. A rule that leans on the final pin at the close will meet different mechanics after that date, so a test across the change should flag it.

Which rules changed inside the files?

Lot size was 75 on 11 Jun 2025 and is 65 now, so a result in rupees per lot cannot be compared across the change without restating it. The weekly expiry day moved from Thursday to Tuesday for contracts expiring from 1 Sep 2025. BANKNIFTY weekly contracts ended with the expiry of 13 Nov 2024, so a weekly BANKNIFTY test has no data after it. Keep a table of rules by date and read it row by row. The lesson on the real cost of an F&O trade has the charges and backtest biases has the wider list of traps.

Seven dated changes a test across 2024 to 2026 has to carry

  1. Last BANKNIFTY weekly expiry

    Weekly options stay only on Nifty at NSE. A weekly BANKNIFTY test ends here.

  2. Nifty lot becomes 75

    New contracts carry the larger lot. Rupee results before and after are not on one scale.

  3. Tuesday expiries

    Nifty weekly and monthly contracts expire on Tuesday. Thursday was the day before.

  4. First weekly with a lot of 65

    The lot falls from 75 to 65. The first monthly with the new lot is 27 Jan 2026.

  5. STT on options rises

    Sold and exercised options both pay 0.15%. The sale rate was 0.10% before.

  6. Closing auction session

    The cash market closes on an auction, which sets the index close that settles expiries.

  7. Settlement on a 30 minute average

    Index contracts settle on a 30 minute volume weighted average of continuous trading and stop at 3:30 pm on expiry day.

Dates are the days each rule took effect for Nifty contracts. A row of the ledger takes the lot, expiry day, charges and settlement regime of its own date. Source: NSE and SEBI circulars on lot sizes, expiry days, STT and settlement. As of 17 Oct 2026.

The term this section turns on: Ledger

The term this section turns on: LedgerThe term this section turns on: Ledger. Ledger: The table of every trade a test makes, one line each, with entry, exit, result and charges.LedgerThe table of every trade a test makes, oneline each, with entry, exit, result andcharges.
From the module glossary; every term is in the Learn glossary too. Source: Module 19.6, Backtesting options on Indian data.

What does the written rule hold?

Five things, fixed before the first run: how the strike is chosen, when the trade is entered, when it is left, how many lots it holds and what happens on a gap. Strike by distance from the future, by delta or by premium are three different rules, because each picks a different strike as volatility moves. A rule that asks for the strike nearest a given delta reads the Greeks from the chain, which need the rate and the forward of that date. A rule that adjusts when the index moves one percent needs an intraday path the free files do not hold, so a test on them can adjust only at a settlement. Write each such choice down as an assumption with the reason for it, and count every version tried, because the lesson on biases shows how fast luck passes a test.

What is a fill in a free end of day file?

The file has one settlement price for each strike and day. It has no bid, no ask and no time. A strike that did not trade still gets a settlement price from the exchange's own method, and a test that sells there assumes a price nobody paid. Keep a volume filter and report it. ATM needs a definition too: the strike nearest the future for monthly contracts and nearest the parity forward for weekly ones. The weekly chains below use the parity forward, as the files record. With a free file every entry and exit is a settlement price, because nothing else is recorded.

Settlement prices are not always prices an order stood at

Settlement prices on the weekly Nifty chain of 2 Feb 2026 for the 10 Feb expiry: the call one strike further out settled higher, and the deep in the money pair broke put call parity by 10.13 pointsLower strike call 1.80; Higher strike call 2.25; Parity gap, deep ITM pair 10.13.Rupees per unitLower strike call1.80Higher strikecall2.25Parity gap, deepITM pair10.13
Weekly chain of 2 Feb 2026, expiry 10 Feb. The 27,450 call settled above the 27,400 call, and the call minus put at 24,050 sat 10.13 points off the discounted forward minus strike. Settlement prices, not trades. Source: NSE end of day data, computed by RupeeCase. As of 2 Feb 2026.
Read 3 more paragraphs, 296 words

The weekly chain of 2 Feb 2026 for the 10 Feb expiry shows how thin a settlement price can be. The 27,400 call settled at 1.80 on 1,735 contracts. The 27,450 call, one strike further out, settled at 2.25 on 235 contracts. A call at a higher strike cannot be worth more than one at a lower strike, yet here it settled higher. And the 24,050 call, deep in the money, traded 2 contracts against 35,326 for the put at that strike. Its settlement price left the call less the put at 1048.10, against 1037.97 from the forward and the discount factor, a gap of 10.13 points in a pair that put call parity says should agree. A test that sold the call at that print booked a price that no order stood at.

The size of an assumed slip depends on the option. One rupee a unit on each leg of the at the money straddle is 0.48% of its premium. One rupee a unit on the 27,450 call is 44.4% of its settlement price. The same assumption is harmless on one trade and fatal on the other, which is why a fill is reported as a band: the result at no slip, at a modest slip and at a wide one.

Report the band in rupees as well as percent. On a lot of 65 units, each rupee of slip on each of the two legs of a straddle costs Rs 130 a trade, and Rs 520 over the four trades of the ledger below, against statutory charges of Rs 168.26 for the four. At one rupee a leg the slip alone is 3.1 times the charges. A test that includes the charges and leaves out the slip has counted the smaller cost.

What does a sold straddle cost to run?

The seller of an index option held to expiry pays charges on the sale, and the rates move with the date of the sale. STT on a sold option was 0.10% of the premium to 31 Mar 2026 and is 0.15% from 1 Apr 2026. NSE's charge was Rs 3,503 per crore of premium to 28 Feb 2026 and Rs 3,553 from 1 Mar 2026. SEBI takes Rs 10 per crore and GST sits on the exchange charge. The first trade below was sold on 2 Feb 2026 and carries the old rates; the other three were sold in June 2026 and carry the new ones. The buyer who exercises pays STT on exercise, not the seller who is assigned. SEBI's fee also falls on the notional of an assigned leg, a rupee or two a lot, left out here. Brokerage is a labelled assumption and is left out here. A test that holds to expiry has few charges. A test that adjusts has many, and each adjustment is a fresh trade with its own line.

Maths: the charges on one sold lot

Premium of the lot =
straddle price
× lot size

STT = premium
× STT rate
Exchange = premium in crore
× charge per crore
SEBI fee = premium in crore
× fee per crore
GST = exchange
× GST rate

For the first trade in the ledger the premium of the lot is Rs 27,365. STT is Rs 27.37 and the exchange charge Rs 9.59. The four charges add to Rs 38.70, the first row of the charges column below.

What does STT on exercise do to a buyer's ledger?

The ledger above is a seller's. The mirror image, the same four straddles bought, pays no STT on entry but pays STT on exercise on the intrinsic value of the leg that finishes in the money, and the rate follows the expiry date: 0.125% for the first expiry and 0.15% for the three in June and July. The circular NSE/FATAX/73524 puts the payer as the purchaser.

ExpiryIntrinsic per lot, rupeesExercise rateSTT on exercise, rupees
10 Feb 202654,2850.125%67.86
16 Jun 202648,0450.15%72.07
23 Jun 202611,4340.15%17.15
7 Jul 202625,9160.15%38.87

Two terms to hold on to from 19.6

Two terms to hold on to from 19.6Two terms to hold on to from 19.6. Cash settlement: Closing a contract at expiry by paying the difference in rupees against the settlement price, with no delivery. Nifty options settle this way. Parity forward: The forward level implied by a call and put at one strike. It stands in for the future when a weekly contract has no future of its own.Cash settlementClosing a contract at expiry by paying thedifference in rupees against the settlementprice, with no delivery. Nifty options...Parity forwardThe forward level implied by a call and put atone strike. It stands in for the future when aweekly contract has no future of its own.
From the module glossary. Source: Module 19.6, Backtesting options on Indian data.
Read one more paragraph, 47 words

For the first trade, STT on exercise is Rs 67.86, against Rs 27.37 that the seller of the same straddle paid on the sale: 2.5 times as much. A long option test that charges STT on the buy and nothing at expiry drops the larger line.

How many trades before the record means anything?

The four results below swing by hundreds of points around a mean that is itself uncertain. With that spread, seeing a real edge of 20 points a trade, 5.5% of the average premium, at the usual 95 percent level would take about 738 trades. At one weekly trade, that is about 14 years of Tuesdays. The unit of evidence is the trade, or better the expiry, not the day. Marking a weekly position every day adds rows, not independent outcomes.

Maths: the trades needed to see an edge

n = (1.96 × s ÷ e)²

Here s is the standard deviation of the result per trade and e the edge to be seen, both in points. The four results give a sample variance of 76,852, and s is its square root. With e = 20, n = 3.84 × 76,852 ÷ 400, which is 738 trades. Halving the edge to be seen quadruples n. Overlapping trades do not count twice, because their results move together.

Read one more paragraph, 90 words

Overlap is not the only link between trades. Volatility comes in spells, and a seller's results in neighbouring weeks tend to move together. If the correlation between one week's result and the next is 0.3, a record of 52 weekly trades carries the evidence of about 32.5 independent ones, because the effective number is n divided by one plus twice the correlation. The trades needed to see the same edge rise by the same factor, from 738 to 1,181. A short ledger is a thin sample twice over.

What does the research say?

Backtests of option strategies face two problems the literature has measured. The first is small samples and rare events. Broadie, Chernov and Johannes (2009) study the returns of options on the main US share index. They judge average returns against what option pricing models would produce in samples of the same length, and find that the large average returns from writing out of the money puts are not statistically significant against such benchmarks. Bondarenko (2014) studies the overpriced puts puzzle: the historical prices of index puts look too high for the canonical models, and he reports that no model in the class he studies can explain it. Both read their evidence through the length of the sample. The second problem is cost. Muravyev and Pearson (2020) show that trading costs for options are lower than the quoted spread suggests, when traders time their orders, and Christoffersen, Goyenko, Jacobs and Karoui (2018) price illiquidity in equity options. The lesson for a free file, with no quotes, is to treat the fill as a band, and the lesson for a short record is to treat the mean as an estimate with a wide error.

Where this section sits in module 19.6

Where this section sits in module 19.6Where this section sits in module 19.6. 1. The idea, plainly 2. Worked example: one written rule, four trades 3. The common mistake 4. What I'd keep from this01The idea, plainly02Worked example: one written rule,four trades03The common mistake04What I'd keep from this
Sections 1 to 4 of 4; the highlighted one is next. Source: Module 19.6, Backtesting options on Indian data.

A checklist for one ledger line

  1. Entry date, expiry date, strike, lot size and expiry day, each as on the entry date.
  2. Settlement price in and the volume and open interest of the strike on that day.
  3. Settlement regime of the expiry, and the index value that settled it.
  4. Result before charges, then each charge separately at the rates of the date.
  5. Result at no slip, at a modest slip and at a wide slip.
  6. The rule version and the number of versions tried so far.

Stretch: from a ledger to a research record

Walk forward testing lays the ledger out in folds that never see their own test dates, and Monte Carlo and bootstrap asks how much of a short ledger could be luck. Strategy metrics turns the ledger into measures, and backtest overfitting prices the versions tried.

Worked example: one written rule, four trades

The rule, written before opening the files: on a date with a weekly contract six to eight days from expiry, sell one lot of the at the money straddle at the settlement price, hold to expiry and settle on the index close. ATM is the strike nearest the parity forward. Four of the school's example dates fit and have a close for their expiry in the files. All four expiries fall before 3 Aug 2026 and on a Tuesday. The lot is 65 units.

The RupeeCase terminal on sample data: Net return and charges: what do estimated costs take?
Watch in the terminal: what do estimated costs take? A short tutorial on sample data.
Trade, 2026Sold atIndex closeResult per lotCharges
2 Feb to 10 Feb, 25,100421.0025,935.15−26,92038.70
10 Jun to 16 Jun, 23,250346.0523,989.15−25,55243.19
16 Jun to 23 Jun, 24,000325.7523,824.109,74040.66
29 Jun to 7 Jul, 24,000366.1524,398.70−2,11645.70
Total of four−44,847168.26

The seller won only where the move stayed under the premium

Four weekly Nifty straddles of 2026, premium sold against the index move to expiry: the move exceeded the premium in three of the four2 Feb: sold 421; 2 Feb: index moved 835; 10 Jun: sold 346; 10 Jun: index moved 739; 16 Jun: sold 326; 16 Jun: index moved 176; 29 Jun: sold 366; 29 Jun: index moved 399.Straddle price and move at expiry, indexpoints2 Feb: sold4212 Feb: indexmoved83510 Jun: sold34610 Jun: indexmoved73916 Jun: sold32616 Jun: indexmoved17629 Jun: sold36629 Jun: indexmoved399
Each pair is one trade. The seller gains when the bar for the index move is shorter than the bar for the premium sold. Source: NSE end of day data, computed by RupeeCase. As of 7 Jul 2026.

Three of the four June and July weeks, on the index path

Nifty daily close from 1 Jun to 10 Jul 2026 with the entry and expiry days of three of the weekly straddles marked: the index moved away from the strike inside each weekNifty 50: from 23,383 at 1 Jun 2026 to 24,207 at 10 Jul 2026, high 24,430 at 6 Jul 2026, low 23,123 at 8 Jun 2026.23,25023,50023,75024,00024,25024,5001 Jun11 Jun21 Jun1 Jul10 Jun sold16 Jun23 Jun29 Jun sold7 Jul24,207
Daily close of the Nifty 50, a price index. The marks show entry and expiry days. A straddle seller reads the path between them as a distance from the strike. Source: NSE end of day data, computed by RupeeCase. As of 10 Jul 2026.
Read 3 more paragraphs, 242 words

Rupees per lot before charges. The first row carries the rates of 2 Feb 2026 and the other three the rates of June. Three of the four trades lost, and the ledger totals −44,847 before charges and −45,015 after them. The charges were 0.18% of the premium sold, so costs did not decide this record. The index move did. A short straddle keeps its premium only if the index closes within that many points of the strike. The closes were 835.15, 739.15, 175.90 and 398.70 points from the strike, against premiums of 421.00, 346.05, 325.75 and 366.15.

A line of the ledger holds the entry date and the expiry, the settlement regime, the strike and lot, the settlement price in and the index close out, the result before charges and each charge separately. A reader can then rebuild any line by hand from the files. If one cannot be rebuilt, it is not yet a result.

This table is also a poor sample for a second reason. The dates are the school's teaching dates, picked because something happened on them, not drawn at random. A ledger of four chosen weeks is a worked sum, and the lesson it carries is the size of the sample needed, shown above. The other half of the data question is in where to get historical option chain data, and how to backtest an option strategy lists the steps in order.

The common mistake

The belief: The backtest used exchange data, so its fills are what I would have got. The files are official, and the prices in them are settlements, not trades. A strike that traded a handful of contracts gets a settlement price no order stood at. Five specific errors follow. First, a settlement as a fill: one lot of the 27,450 call sold at its settlement price of 2.25 books Rs 146.25; at a fill one rupee lower it is Rs 81.25, 44.4% less. Second, one rate for every date: the 0.15% rate applied to the 2 Feb 2026 sale gives Rs 41.05 of STT where the rate of the day gave Rs 27.37, half as much again, on every weekly sale in the test. Third, lots in rupees across the lot change: a loss of Rs 15,000 in a lot of 75 is Rs 13,000 in a lot of 65. Fourth, a long ledger without STT on exercise: Rs 67.86 on the first expiry, 2.5 times the sale charge. Fifth, four trades read as a sample: the evidence of 52 correlated weekly trades is about 32.5. Check four things before reading a ledger. Was every sale made at a strike that traded? Does each row carry its own lot, expiry day, charges and settlement regime? Were the rules written before the data was opened? And how many independent trades stand behind the total? A ledger that answers all four is a reason to test further on data the rule has not seen, not a result.

What I'd keep from this

  • An options test needs a dated chain, future, rate and lot for every trade.
  • A settlement price in a free file is not a fill.
  • Name the settlement regime of every expiry, and flag 7 Dec 2026.
  • Lot size, expiry day, STT and exchange charges all changed inside the files.
  • Trades needed rise with the variance and fall with the square of the edge.
  • Four trades chosen for teaching are a worked sum, not a sample.

Where this section sits in module 19.6

Where this section sits in module 19.6Where this section sits in module 19.6. 1. The idea, plainly 2. Worked example: one written rule, four trades 3. The common mistake 4. What I'd keep from this01The idea, plainly02Worked example: one written rule,four trades03The common mistake04What I'd keep from this
Sections 1 to 4 of 4; the highlighted one is next. Source: Module 19.6, Backtesting options on Indian data.
Glowing teal and blue bars rising left to right over a glass floor, like a year of monthly returns

Before you trade. Derivatives trading carries a high risk of loss. SEBI's study "Profitability of Individual Traders in the Equity Derivatives Segment (FY25 to FY26)" (August 2026) found that 87.7% of individual traders in equity F&O made net losses in FY26, with aggregate net losses of Rs 91,685 crore. Read the SEBI study