This guide explains how VWAP is calculated, where it came from, two ways to trade it (mean reversion and trend following), the exact rules for each, worked examples on a stock and on Nifty futures, how VWAP signals are used for options, and how to test and automate a VWAP strategy. The rules on this page are examples for you to test and change, not recommendations.
VWAP strategy at a glance
| VWAP strategy | |
|---|---|
| Style | Intraday, mean reversion or trend following |
| Instruments | Index futures and liquid stocks; options traded on signals from the futures |
| Candles | 1-minute to 5-minute for entries, 15-minute for the day's context |
| Reference line | Session VWAP, which starts again at 9:15 am each day |
| Stretch measure | Bands at standard deviations from VWAP, a percentage distance, or a multiple of ATR |
| Exit | Back to VWAP, a stop beyond the stretch, a trailing stop, or a fixed time |
| Main risk | Trend days for mean reversion; choppy days for trend following |
A short history of VWAP
VWAP began as a way to judge how well a broker executed a large order, not as a trading signal. In 1988 Stephen Berkowitz, Dennis Logue and Eugene Noser published a study of trading costs on the New York Stock Exchange that compared each trade's price with the day's volume-weighted average price.1 Their idea was simple: if a fund bought at a price below the day's VWAP, the trade was cheap compared with the rest of the market that day; if it bought above, it paid more than most.
The benchmark spread quickly through institutional trading. By the late 1990s, brokers sold "VWAP orders", which split a large order through the day in proportion to the usual volume pattern so that the average fill came close to VWAP.2 As exchanges went electronic, these VWAP algorithms became one of the most common execution tools in the world, and the line itself became something every trader could watch on a chart.7
Day traders then turned the benchmark into a signal. If large funds measure themselves against VWAP, they tend to buy below it and sell above it, so the line can act as a magnet on quiet days and as a dividing line on trending ones. In the 2010s, the idea of anchored VWAP, which starts the average from a chosen event such as a results day or a swing low instead of from the day's open, was popularised by Brian Shannon.3
In India, VWAP is part of the market's plumbing as well as a chart line. For years the NSE's official closing price of a stock has been a weighted average of its last half hour of trading, not the last trade. In August 2026 the NSE extended F&O trading to 3:40 pm, alongside a closing auction session in the cash market.4 Intraday traders watch VWAP on Nifty and Bank Nifty futures and on liquid F&O stocks, and many option traders use the futures VWAP as their filter for buying calls or puts.
How VWAP is calculated
Session VWAP starts fresh each day at 9:15 am. For each candle:
- Calculate the typical price: (high + low + close) ÷ 3.
- Multiply it by the candle's volume.
- Add these values up from the open, and divide by the total volume so far.
A simple example. Suppose the first three 5-minute candles have typical prices of ₹500, ₹502 and ₹501 and volumes of 10,000, 6,000 and 4,000 shares. VWAP after three candles is:
(500 × 10,000 + 502 × 6,000 + 501 × 4,000) ÷ 20,000 = ₹500.80
The heavy volume at ₹500 pulls VWAP toward that price. Later in the day, each new candle moves VWAP less, because it adds a smaller share of the day's total volume. By the afternoon, VWAP is slow to move, which is one reason traders treat it as a level rather than a fast signal.
Use futures, not the index
The Nifty 50 index itself has no traded volume, so its VWAP cannot be calculated directly. Intraday traders use the VWAP of Nifty futures instead. The same applies to Bank Nifty, FINNIFTY and Sensex: use the near-month future. A stock that trades in F&O has volume in both its cash and futures markets; most traders use the cash market VWAP for the stock itself and the futures VWAP when they trade the future.
VWAP bands
Many traders draw bands at one, two or three standard deviations above and below VWAP, calculated from how far prices have traded from VWAP during the day. The bands widen on volatile days and stay narrow on quiet ones, so they show how stretched the price is compared with that day's own range.
Two simpler stretch measures work almost as well and are easier to set as rules:
- A percentage distance, such as 0.4% below VWAP on Nifty futures. It is the same every day, which makes testing easier, but it does not adjust to quiet or wild days.
- A multiple of ATR, such as 1.5 times the 14-period ATR on 5-minute candles. It adjusts to volatility like the bands do.
Anchored VWAP
Anchored VWAP starts the calculation from a candle you choose instead of the day's open. Swing traders anchor it to a results day, a gap, or the low of a recent fall, and read it the same way: price above the anchored line means buyers since that event are in profit on average. It is a positional tool more than an intraday one, and it works on daily candles.
What VWAP tells you, and what it does not
VWAP is a summary of where the day's trading took place. It tells you:
- The average price paid today. A buyer who bought at VWAP paid what the day's market paid on average.
- Which side has been in control. A price that has stayed above VWAP since the morning shows that buyers have absorbed selling all day.
- How stretched the price is. The distance from VWAP, in bands, per cent or ATR, measures how far the price has moved from the day's average.
VWAP does not tell you:
- Where the price will go. Being above VWAP is a description of today so far, not a forecast.
- Anything at the open. In the first 15 to 30 minutes, VWAP is built from very few candles and moves with every trade. Most VWAP rules wait until it has settled.
- What happens across days. Session VWAP resets each morning. Yesterday's VWAP is gone unless you use anchored VWAP.
Strategy 1: VWAP mean reversion
The idea: when the price stretches far from VWAP without news, it often drifts back.
- Wait for a settled VWAP. No entries in the first 30 minutes after the open.
- Wait for a stretch. The price closes below the lower band at 1.5 or 2 standard deviations, or more than a set percentage below VWAP.
- Wait for a turn. A candle closes back above the previous candle's high, showing selling has paused.
- Enter. Buy at the next price.
- Target VWAP. Exit when the price returns to VWAP.
- Stop beyond the next band, such as 2.5 or 3 standard deviations, or below the low of the stretch.
- Time limits. No new entries after 2:30 pm, and close everything before your broker's intraday square-off time.
The mirror rules apply for selling above the upper band.
Filters that help mean reversion
- Day type. Mean reversion suits days that open inside the previous day's range. A large gap often starts a trend day.
- News. Skip results days for the stock, RBI policy days and Budget day, when stretches tend to grow.
- Volume. A stretch on heavy volume is more likely to continue than one on light volume.
- Number of trades. Allow one or two mean-reversion trades a day per instrument. A third signal on the same side usually means the day is trending.
Strategy 2: VWAP trend following
The idea: in a trending day, the price stays on one side of VWAP and pulls back to it.
- Trend filter. Trade long only while the price stays above VWAP, short only while below.
- Entry on a pullback. Buy when the price pulls back to VWAP and a candle closes back above it.
- Stop below VWAP by a set amount or a multiple of ATR.
- Exit on a trailing stop, at a target, or when a 15-minute candle closes on the wrong side of VWAP.
Filters that help trend following
- Slope. A rising VWAP confirms an uptrend; a flat VWAP with the price crossing it repeatedly is a choppy day.
- Opening range. Some traders take a VWAP trend trade only after the price has broken out of the first 15 or 30 minutes' range in the same direction. See the opening range breakout strategy for that rule.
- Higher time frame. Trade long only when the day's price is also above the previous day's close, or above a 20-period average on 15-minute candles.
The two strategies disagree on purpose. Mean reversion bets that stretches snap back; trend following bets that the side of VWAP the price is on will persist. Many traders choose between them based on the type of day, for example by trading mean reversion only when the market opened inside the previous day's range and trend following only after a gap.
A worked example: mean reversion on a stock
This is a hypothetical example, not a result.
- At 11:00 am, a stock's VWAP is ₹1,000 and its lower 2-standard-deviation band is ₹990.
- A 5-minute candle closes at ₹988, below the band.
- The next candle closes at ₹991, back above the previous candle's high.
- The trader buys 100 shares at the next price, ₹991.
- The target is VWAP at ₹1,000, a gain of ₹900 before costs.
- The stop is at the 3-standard-deviation band, ₹985, a loss of ₹600 before costs.
If the price returns to VWAP, the trade makes about ₹900. If the selling continues to ₹985, it loses about ₹600. Remember that VWAP moves through the day, so the target updates as new trades come in: if the stock keeps trading near ₹990 for an hour, VWAP itself drifts down toward it, and the target shrinks.
The costs on this trade
An intraday equity round trip of 100 shares at about ₹1,000 has a turnover of about ₹2 lakh. At ₹20 an order, brokerage is ₹40. Add STT on the sell side, exchange charges, SEBI fees, stamp duty and GST, and the total is in the range of ₹100 to ₹110. On the ₹900 target, costs take about an eighth. On a smaller stretch with a ₹300 target, they would take a third, which is why mean-reversion rules need a minimum stretch before they trade.
A worked example: trend following on Nifty futures
This is a hypothetical example, not a result.
- Nifty futures open with a gap up and trade above VWAP all morning. At 11:30 am VWAP is 25,180 and rising.
- A pullback takes the price to 25,175 on a 5-minute candle, just below VWAP.
- The next candle closes at 25,192, back above VWAP. The trader buys one lot of 65 at 25,195.5
- The stop is 30 points below VWAP, at 25,150: a risk of 45 points, or ₹2,925 on one lot.
- The exit rule is a trailing stop 40 points below the highest close, or a 15-minute close below VWAP.
- By 1:45 pm the future reaches 25,290. The trailing stop sits at 25,250. A sharp dip at 2:10 pm hits it.
The trade gains 55 points, or ₹3,575 on one lot, before costs of a little over ₹100 for a futures round trip at ₹20 an order plus statutory charges. On another day, the same rules would have been stopped out at 25,150 for a loss of ₹2,925. Trend-following rules accept many small losses for fewer, larger gains; the test is whether the gains cover the losses over months, not on one day.
Using VWAP with options
VWAP is calculated on something that trades with volume, which for index options means the futures. Option traders use it in three ways:
- As a direction filter. Buy calls only while Nifty futures are above VWAP, puts only while below. The option leg is chosen by strike, such as at the money or one strike in the money.
- As an entry signal. A pullback to VWAP on the futures triggers an option buy, with a stop on the futures price or on the option premium.
- As a no-trade zone for sellers. Some option sellers avoid entering a straddle while the futures are far from VWAP, because a stretched market tends to move again.
VWAP does not capture time decay or volatility, which drive option prices. An option bought on a perfect VWAP pullback can still lose value if implied volatility falls or the move takes too long. Keep option holding times short when the signal comes from an intraday line, and check the option buying strategy guide for the exits that matter to buyers.
Reading VWAP through the trading day
VWAP behaves differently at each stage of the session, and good rules respect that.
| Time (IST) | How VWAP behaves | What many traders do |
|---|---|---|
| 9:15 to 9:45 am | Built from very few candles; jumps with each large trade | Watch only; mark the opening range |
| 9:45 to 11:30 am | Settles; the day's direction usually shows | First trend pullbacks; first stretches for mean reversion |
| 11:30 am to 1:30 pm | Moves slowly; volume is often lighter | Mean reversion on quiet days; fewer new trend entries |
| 1:30 to 2:30 pm | Moves little, even when the price moves a lot | Watch for afternoon breakouts away from VWAP |
| After 2:30 pm | Almost fixed; close to the day's final value | No new intraday entries; manage open trades |
By the last hour, VWAP has absorbed most of the day's volume, so the price can move far from it without VWAP following. A large afternoon stretch is not the same as a morning one: there is less time for the price to return, and positions must be closed before the broker's square-off. Many traders stop mean-reversion entries after 2:30 pm for this reason.
VWAP on F&O stocks
Liquid F&O stocks suit VWAP rules better than thinly traded ones, because the line needs steady volume to mean anything. A few points apply to stocks that do not apply to index futures:
- Results and news days. A stock's VWAP on its results day reflects a repricing, not a normal session. Most VWAP rules skip a stock on its results day and the day after.
- Circuit limits. A stock that hits its price band stops trading at that level, and VWAP stops updating. Rules should not enter a stock within a few per cent of its band.
- Sector moves. When the whole banking or IT sector moves together, a stretch in one bank stock may be part of a sector trend. Some traders check the sector index futures before fading a stretch.
- Cash or futures. Trading the stock future gives leverage and a lot size; trading the cash market lets you size in single shares. The VWAP rules are the same, but the costs and the margin are not.
When VWAP strategies work, and when they fail
| Day type | Mean reversion | Trend following |
|---|---|---|
| Range-bound, no news | Tends to work: stretches return to VWAP | Struggles: the price crosses VWAP repeatedly |
| Steady trend | Fails: a stretch becomes a bigger stretch | Tends to work: pullbacks to VWAP hold |
| Gap and trend | Fails, often in the first hour | Tends to work after the first pullback |
| News or event day | Risky: volatility widens every stretch | Mixed: sharp moves both ways |
| Expiry day | Mixed: index futures can pin near large open interest strikes | Mixed: moves can reverse in the last hour |
No single VWAP rule works on every kind of day. Most of the effort in a VWAP strategy goes into the filter that decides which kind of day it is.
Position sizing and risk
- Size by the stop. Decide the most you will lose on one trade, divide it by the distance to the stop, and round down to whole shares or lots. The position size calculator does this for you.
- Limit trades per day. A VWAP strategy can produce many signals on a choppy day. A cap of two or three trades per instrument keeps one bad day from becoming a disaster.
- Use account-level limits. In QuantPower, Smart Exit squares off every position and stops your algos when the day's loss or profit reaches the level you set, and the daily loss limit refuses new orders once the day's loss reaches it. Both cover every connected broker.
- Mind the square-off. Intraday positions are closed by the broker near the end of the day if you do not close them. Set your own exit earlier.
Testing a VWAP strategy
- Recalculate VWAP from the open each day, using only data available at each point in time. A test that uses the day's final VWAP looks ahead.
- Use intraday candles and fill at the next price after a signal, not at the signal candle's close.
- Include costs and slippage. Mean reversion targets are often small, so costs matter a lot.
- Split results by day type, such as gap days, trend days and range days, to see where the strategy makes and loses money.
- Check the time of day. Signals in the first half hour and the last hour often behave differently from midday signals.
- Compare with a baseline. Test the same entries without the VWAP filter. If the filter does not improve the result over months, it is adding rules without adding anything.
- Run it forward. After the backtest, run the rules on live prices without real money for a few weeks.
In QuantPower, a rule backtest runs a condition such as "close crosses above Session VWAP" on your broker's candles from 5-minute to daily, with a stop, a target, an exit rule, slippage and charges, and the first 10 backtests each week are free. See backtesting for what the report shows.
Automating a VWAP strategy
VWAP rules depend on a running calculation and quick action at the turn, which suits automation. In QuantPower:
- The chart has Session VWAP and Anchored VWAP among its 201 indicators, on candles from 1 second to monthly.
- A signal algo watches a condition on closed candles, such as the price crossing VWAP or a full rule of up to 20 conditions in ALL and ANY groups. When it fires, it either notifies you with the order ready for one touch, or, once you arm it in auto mode, places the order itself through every risk check. A live signal costs no tokens.
- A signal can start an algo instead, for example an option-buying algo with its own strike rule, stop, target and exit time. The algo is charged 200 tokens per 28 days while it runs live.
- Forward test runs the same signals and algos on live prices with test money, so you can see a few weeks of fills before real money is used.
Every rule stays visible and editable. QuantPower is software, not an adviser: it runs the rules you set and does not choose them for you.
Start with 500 free tokens
Connect your broker, build a strategy and test it on paper before a single live order goes out.
Common VWAP mistakes
- Using the Nifty index for VWAP. It has no volume; use futures.
- Trading the first minutes. VWAP is unstable until enough volume has traded.
- Buying every touch of the lower band on a strong down day.
- Forgetting that VWAP moves. The target changes through the day.
- Ignoring costs on small mean-reversion targets.
- Mixing the two strategies on one day. Taking a mean-reversion trade and then a trend trade in the opposite direction an hour later usually means the rules have no view of the day.
- Holding options too long on an intraday signal. Time decay keeps working after the VWAP signal has played out.
- Confusing session and anchored VWAP. A line anchored to last week's low carries across days and moves slowly; a rule written for session VWAP will behave very differently on it.
Where VWAP trading is going
VWAP has moved from a broker's report card to a line on every retail chart, and its use keeps changing. Anchored VWAP has spread from swing traders to intraday traders who anchor to the open of a news candle. Volume data has become available minute by minute on retail platforms, which makes VWAP rules easier to test honestly. India's market structure is changing too: longer F&O hours from August 2026 and a closing auction in the cash market change how volume builds in the last hour, so rules tested on older data deserve a fresh look on recent months.4 And since 1 April 2026, automated strategies for retail traders in India run through brokers under exchange rules, with each algo registered, which makes clear, written rules such as VWAP rules easier to document and review.6
Frequently asked questions
How do traders use VWAP in a strategy?
Two ways: as a level to fade, buying stretches below it and selling stretches above it on quiet days, or as a trend filter, trading only in the direction of the side the price is on and entering on pullbacks to it.
Is VWAP good for intraday trading?
It is widely used as a reference for intraday trading, both for mean reversion and trend-following rules. Like any indicator, it works on some days and fails on others, which is why most VWAP strategies add a filter for the type of day.
Can I use VWAP for options?
Traders usually calculate VWAP on the underlying futures and then trade options on those signals. Option prices also depend on time and volatility, which VWAP does not capture.
Does VWAP reset every day?
Yes. Session VWAP starts again at the open each day. Anchored VWAP starts from a candle you choose and carries across days.
Why is the Nifty VWAP different on two charts?
One chart may use the futures and another a different contract month, or one may include the pre-open session. Make sure both use the same near-month future and start at 9:15 am.
What candle size works for VWAP signals?
Most intraday VWAP rules use 1-minute to 5-minute candles for entries and a 15-minute view for the day's context. Shorter candles give earlier signals and more false ones.
Is VWAP the same as a moving average?
No. A moving average gives each candle in its window the same weight and rolls forward, dropping old candles. VWAP weights each price by the volume traded at it and keeps every candle since the open. On a quiet afternoon a 20-period average follows the price closely while VWAP barely moves.
What is anchored VWAP used for?
It measures the average price paid since an event you choose, such as a results day, a gap or a swing low. Swing traders use it on daily candles to see whether buyers since that event are, on average, in profit or in loss.
Related guides
- VWAP meaning: the definition in short
- Momentum breakout strategy and Bollinger band mean reversion strategy
- Supertrend strategy: another trend filter for intraday rules
References
- Berkowitz, S. A., Logue, D. E. and Noser, E. A. (1988). The Total Cost of Transactions on the NYSE. Journal of Finance, 43(1), 97–112
- Madhavan, A. (2002). VWAP Strategies. Transaction Performance (Institutional Investor Guides), Spring 2002, 32–39
- Shannon, B. (2023). Maximum Trading Gains with Anchored VWAP. Wiley
- NSE extends F&O trading hours to 3:40 pm from 3 August 2026, with a closing auction session in the cash market (groww.in), checked 12 November 2026
- NSE: Equity derivatives contract specifications (Nifty lot size 65), checked 12 November 2026
- SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, in force for every broker from 1 April 2026 (sebi.gov.in)
- Kissell, R. (2013). The Science of Algorithmic Trading and Portfolio Management. Academic Press