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.

MeasureResult
VWAP crosses per session, 09:30 to 15:29 IST11 (middle half 5 to 19)
Sessions with no cross after 09:30 IST6.1%
Sessions closing above VWAP at 15:29 IST50.9%
Distance of the 15:29 IST close from VWAP0.19% (46.62 points)
Typical-price VWAP minus close-only VWAP at 15:29 IST0.35 points (largest 19.61)
Next-month VWAP minus front-month VWAP, full session130.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)TypeMeaning
datetime · timestamptimestampBar start time, IST wall-clock
stock_code · symbolstringUnderlying / contract code
expiry_date · expirystringFutures contract expiry
open / high / low / closefloatTraded price OHLC within the bar
volumeintVolume traded in the bar
open_interest · oiintOpen 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

Index and commodity data only.