The Test Bench › VWAP

VWAP and Anchored VWAP Explained

How they work, how traders use them, and what our backtests found.

VWAP (volume-weighted average price) estimates the average price a stock has traded at, giving more weight to periods with higher volume. Anchored VWAP is the same calculation from a starting point you choose.

This page covers:

VWAP is a reference levelVWAP is an average price that gives more weight to periods when more shares traded.Price above or below it is a condition a strategy can use.A full strategy adds entry rules, exit rules and costs.
Anchored VWAP starts from a point you chooseSession VWAP restarts at every market open. Anchored VWAP keeps averaging from its anchor.Common anchors: the market open, the start of a week or month, an earnings report, a high or a low.It shows the average traded price since that moment.
The VWAP rule we tested did not hold up beyond QQQ’s original yearsStudy 010 rebuilt the long side of a rule a 2023 study tested on QQQ from 2018 to 2023.After 2023 it returned +9.7% against +105.9% for buying and holding QQQ, and it beat buying and holding on only 46 of 149 other stocks. At 0.02% on each buy and sale, the account fell below its starting value on QQQ.A strong result on one fund over one period did not predict later years or other stocks.

What is VWAP?

A session VWAP starts at the market open, 09:30 New York time for US stocks, and accumulates through the trading session, recalculated after every candle. Each candle’s typical price, the average of its high, low and close, is weighted by the candle’s volume, so a candle with heavy volume moves the line more than a quiet one. By the end of the session, VWAP is an estimate of the day’s average traded price.

Session VWAP on one illustrated day5-minute candlesVWAP from the openVWAP, restarting at 09:30VWAP09:3011:0013:0015:0015:55Illustration with invented prices — not market data
An illustrated trading day on 5-minute candles. The grey line is the session VWAP: it starts at the first candle and settles as more shares trade. Prices are invented.

How is VWAP calculated?

  1. For each candle, the typical price is (high + low + close) ÷ 3.
  2. Multiply the typical price by the candle’s volume.
  3. Add those products from the first candle of the session to the latest one.
  4. Divide by the total volume over the same candles.

An example with three invented 5-minute candles:

CandleHighLowCloseTypical priceVolume
09:30$101.00$99.00$100.00$100.003,000
09:35$102.00$100.00$101.50$101.171,000
09:40$101.50$100.50$101.00$101.002,000

After the third candle, VWAP is $100.53: the typical prices weighted by 6,000 shares. A plain average of the three typical prices would be $100.72. The first candle carried half of the volume, so it pulls VWAP towards its price.

What is Anchored VWAP?

Anchored VWAP uses the same calculation from a different starting point, the anchor. Common anchors are the market open, the start of the week or the month, an earnings report, and a significant high or low. It estimates the volume-weighted average traded price since that moment, and traders use it as a reference for where the market has traded since then.

When the price is above an Anchored VWAP, it is above that average traded-price level. Traders sometimes use the line as a rough proxy for the average price paid by participants since the anchor.

Session VWAP and Anchored VWAP over one illustrated week5-minute candlesPriceSession VWAP: restarts every morningAnchored VWAP from Monday’s openMonTueWedThuFriIllustration with invented prices — not market data
One illustrated week. The session VWAP (grey) restarts every morning. A VWAP anchored at Monday’s open (teal, dashed) keeps averaging across the whole week. Prices are invented.

In GU Analyser, Anchored VWAP can be anchored at the market open, midnight, a time of day, or the start of each week or month, with bands a chosen number of standard deviations above and below it — how it is calculated. The VWAP indicator runs from the first candle loaded; for a VWAP that resets at each market open, use Anchored VWAP with a market-open anchor — VWAP in the indicator reference.

VWAP vs Anchored VWAP

Session VWAPAnchored VWAP
StartsAt each market openAt the anchor you choose
RestartsEvery dayOnly when you move the anchor
CoversOne sessionAny span: hours, days, weeks or months
Common useIntraday reference and trend filterReference since an event, a week or a month

How traders use VWAP

There is no single VWAP strategy. Common uses include:

Being above VWAP is a condition a strategy can use. The entry, the exit, the timeframe and the trading costs decide whether a VWAP rule works, and each rule needs its own test.

What is a VWAP trading strategy?

VWAP is an indicator. A VWAP strategy adds rules for when to enter, when to exit, whether to trade long or short, which timeframe to use and how to handle costs, so two VWAP strategies can give very different results.

A widely discussed version comes from a 2023 study by Carlo Zarattini and Andrew Aziz, which tested it on QQQ, the Nasdaq-100 fund, with 1-minute candles from 2018 to 2023. While QQQ closes a candle above VWAP the portfolio is long; while it closes below, the portfolio is short; every position is closed by the end of the day.

The long-only VWAP rule on one illustrated day5-minute candlesIn the market: the candle after a close above VWAPVWAP from the openVWAP, restarting at 09:30VWAP09:3011:0013:0015:0015:55Illustration with invented prices — not market data
The long side of the rule on the same illustrated day. Shaded: the candles the rule holds the stock, each one following a candle that closed above VWAP. This day trends; on a day without a clear trend, price crosses VWAP many times and the rule trades at each cross. Prices are invented.

Does the VWAP trading strategy work?

From late 2023 the long-only rule returned +9.7% on QQQ against +105.9% for buying and holding, and over six months of 2026 it beat buying and holding on 46 of 149 large US stocks. With a cost of 0.02% on each buy and each sale, the account fell below its starting value on QQQ in both periods and on 127 of the 149 stocks. In the original study's years, 2018 to 2023, at near-zero cost, it returned +141.9% against +122.9%. With orders filled at the next candle's open, a check added after the results, it returned +111.2% over 2018 to 2023, behind buying and holding. These are historical results under stated assumptions, from a rebuild of the long side on 5-minute candles. See the full VWAP strategy backtest.

Does VWAP work after trading costs?

A rule that switches at every cross of VWAP can trade several times a day, so each trade’s cost is paid many times. In Study 011 the long-only rule’s lead over buying and holding QQQ from 2018 to 2023 disappeared at 0.0008% per buy and per sale, about 0.2 cents a share. See how trading costs changed the result.

VWAP strategy rules

A VWAP rule states each of these parts:

Our VWAP tests

Each study specifies the rule, the data, the execution assumptions and the trading costs. The results show what happened in the tested sample, and each study states what the test cannot establish.

Another intraday rule tested on 5-minute candles, on the same 149 stocks: the opening range breakout (ORB) studies.

Want to test a VWAP strategy?

  1. Add VWAP or Anchored VWAP with the anchor you use.
  2. Define the entry and the exit on the strategy canvas.
  3. Add a cost on each buy and sale, and run the backtest on 5-minute candles.

Common questions

What is VWAP?

VWAP, the volume-weighted average price, estimates the average price a stock has traded at during the session, giving more weight to prices where more shares traded. In its usual form it restarts at each market open.

How is VWAP calculated?

For each candle, take the typical price, (high + low + close) ÷ 3, and multiply it by the candle’s volume. Add those products from the start of the session and divide by the total volume over the same candles. The line is recalculated after every candle.

What is Anchored VWAP?

The same calculation started from a chosen moment, the anchor: the market open, the start of a week or a month, a time of day, or an event such as an earnings report or a high or low in the price.

What is the difference between VWAP and Anchored VWAP?

A session VWAP always starts at the market open and restarts every day. An Anchored VWAP starts wherever you place the anchor and keeps averaging from there, across as many days as you choose.

Does VWAP reset every day?

The session VWAP does: it restarts at each market open. An Anchored VWAP restarts only at its anchor. In GU Analyser the VWAP indicator runs from the first candle loaded; to create a VWAP that resets at each market open, use Anchored VWAP with a market-open anchor.

What does it mean when the price is above VWAP?

The latest price is above the session’s volume-weighted average traded price. Many intraday traders read that as a stronger-price or bullish condition. Being above VWAP does not by itself predict that the price will rise.

Is VWAP bullish or bearish?

Neither on its own. VWAP is a reference level. Price above it is commonly read as a bullish condition and price below it as a bearish one, and a strategy decides what to do with that reading.

What is the VWAP trading strategy?

There is no single VWAP strategy. A widely discussed version, tested in a 2023 study on QQQ, holds the stock long while a candle closes above VWAP and sells short while a candle closes below it, closing everything by the end of the day.

Does the VWAP trading strategy work?

The rule worked well in the original QQQ test period at near-zero trading cost and with idealised fills, but that advantage did not persist in the later QQQ period, appeared on only 46 of 149 tested stocks, and disappeared at 0.02% on each buy and sale.

Is the VWAP strategy a holy grail?

No. Our tests did not reproduce the published advantage in the later QQQ period, on most of the tested stocks, or after the tested trading costs.

Does VWAP work after trading costs?

A rule that switches at every cross of VWAP can trade several times a day, so each trade’s cost is paid many times. In Study 011 the long-only rule’s lead over buying and holding QQQ disappeared at 0.0008% per buy and per sale.

What timeframe is best for VWAP?

There is no universally best VWAP timeframe. VWAP is commonly used with intraday candles such as 1-, 5- or 15-minute charts; shorter candles can produce earlier signals and more trades. With one daily candle per session, the session calculation reduces to that candle’s typical price, so traders looking for a multi-day volume-weighted reference can use Anchored VWAP instead.

Can you backtest a VWAP strategy?

Yes. In GU Analyser you add Anchored VWAP with your anchor, build the entry and exit rules on a visual canvas, add an end-of-day exit and a cost on each buy and sale, and backtest on 5-minute candles with your own data key, with no code.

Want to test your own VWAP strategy?

Choose an Anchored VWAP anchor, define the entry and exit rules, add an end-of-day exit and a cost on each buy and sale, and backtest the strategy on 5-minute candles.

Create a free account and build your own strategies → or read how Anchored VWAP is calculated →

The method: how a backtest is built

These are historical analyses. They are neither advice nor forecasts. They describe what happened on past data under stated, simplified assumptions. Past results do not prove what will happen next, and nothing in the Test Bench is a recommendation to buy or sell an investment. GU Analyser is an analytical and educational tool — no money is ever traded here.