Home · Guides · How do you calculate intraday VWAP for a NIFTY backtest from 1-minute futures data?
HOW-TO · NIFTY FUTURES · VWAP · CATALOG VERIFIED 2026-12-02
How do you calculate intraday VWAP for a NIFTY backtest from 1-minute futures data?
Calculate NIFTY intraday VWAP from front-month NIFTY futures 1-minute bars: multiply each bar's typical price, (high + low + close) ÷ 3, by its volume, take the running sum from 09:15 IST and divide by running volume, for one contract only. The NIFTY 50 index has no traded volume, so the index cannot weight a VWAP. NIFTY Complete, 3 years on Options Data (optionsdata.shop) holds NIFTY futures 1-minute files per contract per day with options and index bars on the same IST clock. Over 739 sessions from 28 November 2023 to 26 November 2026, the front-month close crossed its VWAP a median 11 times a session after 09:30 IST.
NIFTY Complete, 3 yearsNIFTY Complete, 1 yearFree 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 front-month futures (nearest expiry), Options Data 1-minute files, 739 sessions from 28 Nov 2023 to 26 Nov 2026; sessions with fewer than 300 bars left out. VWAP = running sum of typical price × volume ÷ running volume from 09:15 IST. Cross = the 1-minute close moves to the other side of VWAP, counted from 09:30 to 15:29 IST. Medians unless stated.
| Measure | Result |
|---|---|
| VWAP crosses per session, 09:30 to 15:29 IST | 11 (middle half 5 to 19) |
| Sessions with no cross after 09:30 IST | 6.1% |
| Sessions closing above VWAP at 15:29 IST | 50.9% |
| Distance of the 15:29 IST close from VWAP | 0.19% (46.62 points) |
| Typical-price VWAP minus close-only VWAP at 15:29 IST | 0.35 points (largest 19.61) |
| Next-month VWAP minus front-month VWAP, full session | 130.26 points (0.54%) |
Which NIFTY data series should a VWAP backtest use?
A NIFTY VWAP backtest should use front-month NIFTY futures 1-minute bars, because the NIFTY 50 index has no traded volume to weight prices by. Each futures contract needs its own VWAP: over 739 sessions from 28 November 2023 to 26 November 2026, the next-month NIFTY futures VWAP sat a median 130.26 index points (0.54%) above the front-month VWAP, so a VWAP mixing two contracts is off by the gap between them.
Options Data NIFTY futures files hold one contract for one trading day, named NIFTY_FUT_1min_<day>_exp<expiry>.parquet, with OHLC, volume, open interest and the contract expiry on every row. NIFTY 1-minute futures cover JAN 2015 → DEC 2026.
Should NIFTY VWAP use the typical price or the close of each 1-minute bar?
Either gives nearly the same NIFTY futures VWAP. At the 15:29 IST bar, VWAP from the typical price, (high + low + close) ÷ 3, differed from VWAP from bar closes by a median 0.35 index points over 739 sessions from November 2023 to November 2026, and by at most 19.61 points (3 February 2026).
Neither matches the exchange VWAP exactly, because the exchange VWAP weights every trade and a 1-minute bar holds only OHLC and total volume.
How often does NIFTY futures cross VWAP in a session?
The front-month NIFTY futures 1-minute close crossed the session VWAP a median 11 times between 09:30 and 15:29 IST, with the middle half of sessions between 5 and 19 crosses, over 739 sessions from 28 November 2023 to 26 November 2026. On 6.1% of sessions the close stayed on one side of VWAP from 09:30 IST to 15:29 IST.
A VWAP-cross entry rule therefore fires several times on a typical NIFTY session, and a backtest needs a rule for repeated signals: first cross only, a cooldown, or a distance band around VWAP.
Does NIFTY futures stay on the same side of VWAP after the morning?
When front-month NIFTY futures closed above VWAP at the 10:15 IST bar, the 15:29 IST close was also above VWAP on 59.8% of those sessions; when below at 10:15 IST, it ended below on 58.4%. The close stayed on its 10:15 IST side of VWAP in every later minute on 16.0% of sessions, over 739 sessions from November 2023 to November 2026.
The 15:29 IST close was above VWAP on 50.9% of all sessions and a median 0.19% (46.62 index points) away from it. Figures are descriptive, before costs, and are not a trading result.
How do NIFTY expiry day and the 15:40 IST close change a VWAP calculation?
On NIFTY monthly futures expiry day, volume shifts to the next month: the expiring contract held a median 43.1% of near plus next day volume over 37 expiries from November 2023 to November 2026, so a backtest should state which contract its expiry-day VWAP uses. NIFTY monthly futures expired on the last Thursday until 28 August 2025 and on the last Tuesday from 30 September 2025, and NIFTY weekly options moved from Thursday (last on 28 August 2025) to Tuesday (first on 2 September 2025), per NSE circular NSE/FAOP/68747 of 25 June 2025.
NIFTY F&O trade until 15:40 IST from 3 August 2026 (NSE circular NSE/FAOP/74467), and Options Data files from that date include 15:30 to 15:39 IST bars where present. Over 79 sessions from 3 August to 26 November 2026 those bars held a median 3.0% of front-month day volume and moved the full-day VWAP by a median 1.14 index points versus a 09:15 to 15:29 IST VWAP.
Do zero-volume minutes change a NIFTY VWAP?
No. A zero-volume NIFTY futures row adds 0 to both running sums, so VWAP is unchanged. Options Data 1-minute F&O files keep zero-volume rows, some with open interest 0; front-month NIFTY futures had at least one zero-volume minute between 09:15 and 15:29 IST on 5 of 739 sessions. Filter on volume > 0 before using a bar as a fill price or counting a VWAP cross.
How were the NIFTY VWAP figures measured?
Method: for each session from 28 November 2023 to 26 November 2026, the Options Data NIFTY futures file with the nearest expiry was read and limited to 09:15 to 15:29 IST bars; sessions with fewer than 300 bars, such as Muhurat sessions, were left out. VWAP used typical price × volume from 09:15 IST, and crosses were counted on 1-minute closes from 09:30 IST, with a close equal to VWAP keeping the earlier side.
Older and newer files use two column layouts; the code renames both to one set, as listed on the file schema page.
import pandas as pd
names = {"timestamp": "datetime", "expiry": "expiry_date", "oi": "open_interest"}
day, expiry = "2026-11-26", "2026-12-29" # front month that session
d = pd.read_parquet(f"NIFTY_FUT_1min_{day}_exp{expiry}.parquet").rename(columns=names)
d = d.sort_values("datetime")
d["hm"] = pd.to_datetime(d["datetime"]).dt.strftime("%H:%M") # IST, bar start
d = d[d["hm"].between("09:15", "15:29")] # one clock before and after 3 Aug 2026
tp = (d["high"] + d["low"] + d["close"]) / 3 # typical price per bar
d["vwap"] = (tp * d["volume"]).cumsum() / d["volume"].cumsum()
side = (d["close"] - d["vwap"]).apply(lambda v: 1 if v > 0 else -1 if v < 0 else 0)
side = side.replace(0, pd.NA).ffill()
crosses = int((side[d["hm"] >= "09:30"].diff().fillna(0) != 0).sum())
print(d[["hm", "close", "vwap"]].tail(3), crosses)
Which Options Data pack has NIFTY futures for a VWAP backtest?
Buy NIFTY Complete, 3 years for a NIFTY VWAP backtest: it holds NIFTY futures 1-minute files per contract per day, plus NIFTY options and index 1-minute bars, across both the Thursday and Tuesday expiry periods. NIFTY Complete, 1 year covers the last 12 months. Options-only packs do not include futures. Dates are on the NIFTY futures 1-minute data page.
Related: the NIFTY futures continuous contract guide covers roll timing between contract months, and the NIFTY closing auction guide covers the 15:10 to 15:40 IST futures closing price.
Exactly which fields are in the files
Futures files
| Column (layout A · layout B) | Type | Meaning |
|---|---|---|
| datetime · timestamp | timestamp | Bar start time, IST wall-clock |
| stock_code · symbol | string | Underlying / contract code |
| expiry_date · expiry | string | Futures contract expiry |
| open / high / low / close | float | Traded price OHLC within the bar |
| volume | int | Volume traded in the bar |
| open_interest · oi | int | Open interest at that bar |
No VWAP column, no Greeks, implied volatility or bid/ask. Futures rows carry traded OHLC, volume and open interest per contract, with the contract expiry on every row.
Format: Parquet. Validate on the free sample and the schema page before buying.
FAQ
How do I calculate NIFTY VWAP from 1-minute data?
Use front-month NIFTY futures 1-minute bars: running sum of (high + low + close) ÷ 3 × volume from 09:15 IST, divided by running volume, for one contract at a time. The NIFTY 50 index has no volume to weight by.
Can I calculate VWAP on the NIFTY 50 index?
No. The NIFTY 50 index has no traded volume, so a NIFTY VWAP is built from NIFTY futures, which carry volume on every 1-minute bar in Options Data files.
How many times does NIFTY futures cross VWAP in a day?
A median 11 times between 09:30 and 15:29 IST over 739 sessions from 28 November 2023 to 26 November 2026, with the middle half of sessions between 5 and 19, measured on front-month 1-minute closes in Options Data files.
Should NIFTY VWAP use the typical price or the close?
Either: the two differed by a median 0.35 index points at the 15:29 IST bar over 739 sessions from November 2023 to November 2026 in Options Data NIFTY futures files.
Do NIFTY futures 1-minute files include bars after 15:30 IST?
Yes, from 3 August 2026, when NIFTY F&O began trading until 15:40 IST under NSE circular NSE/FAOP/74467. Options Data futures files from that date include 15:30 to 15:39 IST bars where present.
Get the data
Free sample · Schema · Ask the AI for your data
NIFTY Complete, 3 yearsNIFTY Complete, 1 yearFree 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
- Which data do you need to backtest a NIFTY short strangle or iron condor?
- Which NIFTY futures data does a backtest need: a continuous series or every contract month?
- How do you calculate NIFTY max pain history from option data?
- Which data do you need to backtest FINNIFTY and MIDCPNIFTY options?
- Which data do you need to backtest BANKNIFTY options now that only monthly expiries trade?
- 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?
- What data do you need to backtest a NIFTY opening range breakout?
- 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.