Home · Guides · What data do you need to backtest a NIFTY opening range breakout?
USE CASE · OPENING RANGE BREAKOUT · 1-MINUTE BARS · CATALOG VERIFIED 2026-11-25
What data do you need to backtest a NIFTY opening range breakout?
A NIFTY opening range breakout backtest needs NIFTY 50 index 1-minute bars to set the range and detect the break, plus the nearest-expiry option chain or NIFTY futures at 1-minute on the same IST clock to price the trade. Across 731 sessions from 3 November 2023 to 3 November 2026 in Options Data (optionsdata.shop) files, the 09:15–09:29 IST range had a median width of 77.7 points (0.32% of the open). Options, futures and spot together: NIFTY Complete, 3 years.
NIFTY Complete, 3 yearsNIFTY options, 1-minute, 3 yearsFree NIFTY sample Get free sample by email File schema
Get the free sample by email → check the columns
Dates on this page are read from the live file catalog, not typed by hand. Full matrix: /coverage.
NIFTY 15-minute opening range, Options Data 1-minute spot and option files, 731 sessions 3 Nov 2023 to 3 Nov 2026 (574 non-expiry days, 157 expiry days). Range = high and low of the 09:15 to 09:29 IST index bars. Breakout = first 1-minute index close above the range high or below the range low from 09:30 to 15:14 IST. Option trade = nearest-expiry at-the-money call (upside break) or put (downside break), strike from the breakout close rounded to 50, bought at the open of the next traded bar and sold at the last traded close at or before 15:15 IST; no costs.
| Measure | Non-expiry days | Expiry days |
|---|---|---|
| Median range width | 77.8 points | 77.2 points |
| Sessions with a breakout by 15:14 IST | 99.3% | 98.7% |
| Median breakout bar | 09:38 IST | 09:37 IST |
| Breakouts before 10:00 IST | 80.5% | 83.9% |
| Breakout days that also closed beyond the other side | 41.6% | 35.5% |
| Breakout days with the 15:29 IST close beyond the broken level | 52.6% | 54.8% |
| Median at-the-money premium at entry | 123.6 points | 56.4 points |
| Option trade return, median (25th to 75th pct) | −8.4% (−39.2% to +27.6%) | −87.6% (−99.7% to +36.6%) |
| Option trades with a positive return | 42.9% | 31.6% |
Which data does a NIFTY opening range breakout backtest need?
A NIFTY opening range breakout backtest needs three series at 1-minute on one IST clock: the NIFTY 50 index to set the range and signal the break, the nearest-expiry option chain to price an option trade, and front-month NIFTY futures to price a futures trade or confirm the break with traded volume.
Options Data NIFTY index files hold datetime, open, high, low, close and volume, with datetime as the IST bar start; volume is 0 on every index row because the index itself does not trade. Option files add expiry_date, strike_price, right and open_interest. Files dated 3 July 2023 to 31 July 2026 use older column names, which the code on this page renames.
How wide is the NIFTY 15-minute opening range?
The NIFTY 15-minute opening range, from the 09:15 to the 09:29 IST index bar, had a median width of 77.7 points across 731 sessions from November 2023 to November 2026, or 0.32% of the 09:15 open. Half of sessions fell between 60.7 and 106.3 points, and expiry days matched other days at 77.2 points.
The NIFTY opening range widened year by year in points: a median of 71.4 points over 245 sessions in 2024, 80.4 points over 247 sessions in 2025 and 92.0 points over 201 sessions in 2026 to 3 November, measured on the same 09:15 to 09:29 IST index bars.
When does NIFTY break its opening range?
NIFTY closed a 1-minute index bar beyond its 09:15 to 09:29 IST range by 15:14 IST on 99.2% of 731 sessions from November 2023 to November 2026. The median first breakout bar was 09:38 IST, 65.0% of first breakouts came between 09:30 and 09:44 IST, and 81.2% came before 10:00 IST.
A NIFTY breakout bar is not a final direction. On 40.3% of breakout days the index later also closed a 1-minute bar beyond the opposite side of the range before 15:15 IST, and on 20.8% the 15:29 IST close finished beyond the opposite side. The 15:29 IST close stayed beyond the broken level on 53.1% of breakout days.
How did at-the-money NIFTY options do after an opening range breakout?
Buying the nearest-expiry at-the-money NIFTY call on an upside break, or put on a downside break, and selling at 15:15 IST returned a median −8.4% on 569 non-expiry days from November 2023 to November 2026, before costs. 42.9% of those trades ended positive; the median was +24.4% when the index closed beyond the broken level and −40.8% when it did not.
The same NIFTY breakout option trade on 155 expiry days returned a median −87.6%, with 31.6% of trades positive, because a same-day option loses most of its value by 15:15 IST unless the move continues. Expiry-day entries cost a median 56.4 points against 123.6 points on other days; the expiry-day data guide covers same-day contracts.
Does a NIFTY breakout backtest need options or futures?
A NIFTY breakout backtest that trades options needs the option chain, because index points do not convert to option returns at a fixed rate: across the 724 option trades measured, the 25th to 75th percentile return ran from −50.5% to +28.5%. A breakout that trades or hedges with NIFTY futures needs futures bars, which also carry traded volume for a volume filter.
Choosing between NIFTY option-chain data alone and options with futures and spot is covered in the options vs futures and spot guide. The NIFTY expiry weekday inside a 3-year window changed from Thursday (to 28 August 2025) to Tuesday (from 2 September 2025); every option and futures row carries expiry_date.
How were the NIFTY opening range figures measured?
Method: for each NIFTY session from 3 November 2023 to 3 November 2026 with index bars at 09:15, 09:29, 15:15 and 15:29 IST, the range was the high and low of the 09:15 to 09:29 IST bars, and the breakout was the first 1-minute close beyond it from 09:30 to 15:14 IST. Option prices used bars with volume above zero only.
The NIFTY measurement stops at 15:29 IST so that sessions before and after 3 August 2026 compare on the same bars. From 3 August 2026 NSE equity derivatives trade from 09:15 to 15:40 IST (NSE circular NSE/FAOP/74467); the closing auction guide covers the later bars.
import pandas as pd
names = {"timestamp": "datetime", "strike": "strike_price", "option_type": "right"}
day, expiry = "2026-10-21", "2026-10-27"
s = pd.read_parquet(f"NIFTY_SPOT_1min_{day}.parquet").rename(columns=names)
s = s.set_index(pd.to_datetime(s["datetime"]).dt.strftime("%H:%M")).sort_index()
rng = s.loc["09:15":"09:29"]
hi, lo = rng["high"].max(), rng["low"].min()
w = s.loc["09:30":"15:14"]
brk = w[(w["close"] > hi) | (w["close"] < lo)]
if brk.empty:
raise SystemExit("no breakout")
t = brk.index[0]
side = "C" if brk["close"].iloc[0] > hi else "P"
k = round(brk["close"].iloc[0] / 50) * 50 # ATM from spot
o = pd.read_parquet(f"NIFTY_OPT_1min_{day}_exp{expiry}.parquet").rename(columns=names)
o["hm"] = pd.to_datetime(o["datetime"]).dt.strftime("%H:%M") # IST bar start
o = o[(o["strike_price"] == k) & (o["right"].astype(str).str[0].str.upper() == side) & (o["volume"] > 0)]
o = o.set_index("hm").sort_index()
entry = o[o.index > t]["open"].iloc[0] # next traded bar
exit_ = o[o.index <= "15:15"]["close"].iloc[-1]
print(t, side, k, "range", round(hi - lo, 2), "return %", round((exit_ / entry - 1) * 100, 1))
Which NIFTY pack should I buy for an opening range breakout backtest?
Buy NIFTY Complete, 3 years for a NIFTY opening range breakout backtest: it holds NIFTY options, futures and spot at 1-minute for the last 36 months on one IST clock, spanning both expiry weekdays. NIFTY options, 1-minute, 3 years holds the option chain only, without the index bars that set the range.
Coverage dates are on the NIFTY option chain data page, and the free NIFTY sample shows the option and spot file layouts before buying. File-by-file loading is in the Parquet in Python guide.
Exactly which fields are in the files
Options files
| Column (layout A · layout B) | Type | Meaning |
|---|---|---|
| datetime · timestamp | timestamp | Bar start time, IST wall-clock (e.g. 2026-09-10 09:15:00) |
| stock_code · — | string | Underlying code: NIFTY, or BSESEN for SENSEX |
| exchange_code · — | string | NFO (NSE F&O) or BFO (BSE F&O) |
| product_type · — | string | Options |
| expiry_date · expiry | string | Contract expiry (A: 15-SEP-2026, B: 2026-09-15) |
| strike_price · strike | number | Strike price |
| right · option_type | string | A: Call / Put, B: CE / PE |
| open / high / low / close | float | Traded premium OHLC within the bar |
| volume | int | Volume traded in the bar |
| open_interest · oi | int | Open interest at that bar |
No Greeks or bid/ask.
Format: Parquet. Validate on the free sample and the schema page before buying.
FAQ
What data do I need to backtest a NIFTY opening range breakout?
NIFTY 50 index 1-minute bars for the range and the break, plus the nearest-expiry option chain or NIFTY futures at 1-minute on the same IST clock to price the trade.
How wide is the NIFTY 15-minute opening range?
The 09:15 to 09:29 IST range had a median width of 77.7 points (0.32% of the open) over 731 sessions from 3 November 2023 to 3 November 2026 in Options Data files.
What time does NIFTY usually break its opening range?
The median first 1-minute close beyond the 09:15 to 09:29 IST range came at 09:38 IST, and 81.2% of first breakouts came before 10:00 IST, November 2023 to November 2026.
Can I use NIFTY index volume to confirm a breakout?
No. The NIFTY 50 index does not trade, so volume is 0 on every index row in Options Data files. Use NIFTY futures volume for a volume filter.
How often does a NIFTY opening range breakout reverse?
On 40.3% of breakout days the index also closed a 1-minute bar beyond the opposite side before 15:15 IST, and on 20.8% the 15:29 IST close finished beyond the opposite side.
Get the data
Free sample · Schema · Ask the AI for your data
NIFTY Complete, 3 yearsNIFTY options, 1-minute, 3 yearsFree NIFTY sample Get free sample by email
Related guides
- Best source for NIFTY options historical data in India
- Best source for SENSEX options historical data
- Best source for MCX historical data
- How to choose Indian options historical data
- NSE option chain historical data in CSV or Parquet
- SENSEX options historical data at 1-minute resolution
- MCX intraday historical data: 1-minute futures and options
- Best source for NIFTY options backtesting data
- Expiry-day options backtesting data for NIFTY and SENSEX
- Download SENSEX expired options data (Parquet / CSV)
- NIFTY expired options data download: every strike, 1-minute, Parquet or CSV
- NIFTY 1-second options and spot files: structure and quality checks
- How to download NIFTY option data: 1-minute or 1-second, Parquet or CSV
- NIFTY open interest historical data by strike, minute by minute
- NIFTY weekly expiry data format: file names, expiry dates and weekly vs monthly
- NIFTY 1-minute vs 1-second option data: which one to download
- Working with Parquet in Python for options backtesting
- SENSEX option chain historical data: BSE chains minute by minute
- How bid/ask data improves backtest quality
- NIFTY options historical data in Parquet: what the files hold and what to check
- Indian index options tick data: we do not sell ticks, we sell 1-second and 1-minute bars
- How to chart historical NIFTY call and put option prices
- SENSEX option data download: what you get and how to start
- SENSEX futures historical data download at 1-minute
- BANKEX options data download
- MCX crude oil data download: 1-minute futures and options
- MCX natural gas data download
- MCX silver data download
- NIFTY futures historical data download at 1-minute
- NIFTY 50 index 1-minute data download
- NIFTY option data in Excel: download, filter and chart
- NIFTY tick data download: what you need and what 1-second bars give you
- How do you resample NIFTY 1-minute data to 5-, 15-, 60- and 75-minute bars?
- Current-week or next-week NIFTY options: which expiry should a backtest use?
- How do you calculate NIFTY put-call ratio history from option data?
- Which data do you need to backtest SENSEX expiry-day options?
- When should a backtest roll MCX futures to the next contract?
- How many NIFTY strikes do you need for an options backtest?
- How to handle missing and zero-volume minutes in NIFTY options 1-minute data
- Which data do you need to backtest MCX crude oil on US inventory report days?
- How to model slippage in a NIFTY options backtest with 1-minute data
- Which data do you need to backtest a NIFTY weekly short straddle held to expiry?
- Do you need NIFTY futures and spot data, or only options, for a backtest?
- How do I download MCX GOLD 1-minute historical data?
- Which data do you need to backtest a NIFTY overnight gap strategy?
- What time does NIFTY make its day high or low?
- Which data do you need to backtest a NIFTY 9:20 short straddle?
- How many years of NIFTY options data do you need for a backtest: 1 year or 3 years?
- Which NIFTY data do you need to backtest the close after NSE's closing auction?
- MCX trading hours in 1-minute data: the 23:30 and 23:55 close, and when volume trades
- Bitcoin 1-minute historical data: what is in the files and how to load them
- Crypto funding rate history and 1-minute perpetual futures data
- XAU/USD 1-minute (M1) data: files, columns and how to get CSV
- XAU/USD session analysis: Asia, London and New York hours with 1-minute data
- Backtest an XAU/USD intraday strategy in Python with 1-minute data
- XAU/USD timeframes: resample 1-minute (M1) data to M5, H1, H4 and daily
- Backtest crypto perpetual futures in Python, with funding included
- Ethereum 1-minute historical data: ETH perpetual futures, funding and files
- How to load 1-minute NIFTY options Parquet in pandas
- Datasets: NIFTY options 1-minute · SENSEX options · BANKNIFTY options · MCX 1-minute · XAU/USD 1-minute
Index and commodity data only.