Free trial
Menu
Strategy guide

Automated Stocks & Futures VWAP Band Trading

VWAP, the volume-weighted average price, is the average price of an instrument during the day, weighted by how much traded at each price. Institutions use it as a benchmark for execution, and intraday traders use it as a reference line: price above VWAP suggests buyers are in control, price below suggests sellers are.

QuantPower Research · Updated 3 Nov 2026 · 5 min read

This guide explains how VWAP is calculated, two ways to trade it (mean reversion and trend following), the exact rules, a worked example, and how to automate and test a VWAP strategy on Nifty futures and stocks.

At a glance

VWAP strategy
StyleIntraday, mean reversion or trend following
InstrumentsIndex futures and liquid stocks
Timeframe1- to 5-minute candles
ReferenceVWAP and bands at standard deviations around it
ExitBack to VWAP, a stop beyond a band, or a fixed time

How VWAP is calculated

VWAP starts fresh each day at 9:15 am. For each candle:

  1. Calculate the typical price: (high + low + close) ÷ 3.
  2. Multiply it by the candle's volume.
  3. 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.

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.

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 show how stretched the price is.

Strategy 1: VWAP mean reversion

The idea: when the price stretches far from VWAP without news, it often drifts back.

  1. Wait for a stretch. The price closes below the lower band at 1.5 or 2 standard deviations.
  2. Wait for a turn. A candle closes back above its own low or above the previous candle's high, showing selling has paused.
  3. Enter. Buy at the next price.
  4. Target VWAP. Exit when the price returns to VWAP.
  5. Stop beyond the next band, such as 2.5 or 3 standard deviations.
  6. Time limits. No new entries after a set time, and close everything by 3:15 pm.

The mirror rules apply for selling above the upper band.

Strategy 2: VWAP trend following

The idea: in a trending day, the price stays on one side of VWAP and pulls back to it.

  1. Trend filter. Trade long only while the price stays above VWAP, short only while below.
  2. Entry on a pullback. Buy when the price pulls back to VWAP and closes back above it.
  3. Stop below VWAP by a set amount or a multiple of ATR.
  4. Exit on a trailing stop, at a target, or when a candle closes on the wrong side of VWAP.

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.

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 algo 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.

VWAP mean reversion rules: a close below the 2-standard-deviation band, buy ₹991 on the turn, target VWAP at ₹1,000, stop ₹985 (illustration)

When VWAP strategies work, and when they fail

Mean reversion works best on range-bound days without major news, in liquid instruments where large orders get absorbed.

Mean reversion fails on trend days, when the price moves away from VWAP and stays away. A stretch can become a bigger stretch.

Trend following works best on days with a clear direction, and fails on choppy days when the price crosses VWAP repeatedly.

Position sizing and risk

  • Size each trade by the distance to the stop and the loss you can accept, using the position size calculator.
  • Limit the number of trades per day. A VWAP strategy can generate many signals on a choppy day.
  • Use a daily loss limit across all strategies with an MTM stop loss.

Automating a VWAP strategy

VWAP strategies need a running calculation, precise band levels and fast entries, which suits automation. QuantPower's strategy builder lets you use indicator conditions for entries and exits, with stops, targets and time limits on each trade. Test your rules in the backtesting engine and in paper trading before running them live.

Start your free trial

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Backtesting tips

  • Recalculate VWAP from the open each day, using only data available at each point in time.
  • Use intraday data and fill at the next price after a signal.
  • Include costs and slippage. Mean reversion targets are often small, so costs matter a lot.
  • Split results by day type, such as trend days and range days, to see where the strategy makes and loses money.

See how to backtest trading strategies for the full method.

Common VWAP mistakes

  • Using the Nifty index for VWAP. It has no volume; use futures.
  • 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.

Frequently asked questions

What is VWAP in trading?

The average price of the day weighted by volume. It shows where most trading has taken place.

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.

Can I use VWAP for options?

Traders usually calculate VWAP on the underlying futures and then trade options based on those signals. Option prices also depend on time and volatility, which VWAP does not capture.

Does VWAP reset every day?

Yes. Standard VWAP starts again at the open each day. Some traders also use anchored VWAP from a chosen date or event.

Sources

  • 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
The example on this page is hypothetical and for illustration. Intraday trading involves substantial risk. This guide is for education and is not investment advice.