The Test Bench › VWAP › Study 010

VWAP Trading Strategy Backtest: Does the QQQ Result Generalise?

A 2023 study reported a strong result from a simple VWAP rule on QQQ and called it a “holy grail” day-trading system. We rebuilt the long side of the rule and tested it on QQQ, in the years after the study and on 149 other US stocks, and measured how trading costs change the result.

STUDY 010

The short answer

A 2023 paper called a simple VWAP rule a “holy grail” for day trading after testing it on QQQ. We rebuilt the long side of the rule and put it to three checks.

Does the QQQ pattern appear in our rebuild? In direction, yes. The effect was smaller than the paper reported. At near-zero trading cost the long-only rule returned +141.9% over the paper's years. Buying and holding QQQ returned +122.9%. The daily comparison fixed in advance found no clear difference from holding QQQ during market hours: +0.030% a day.

Does it hold after 2023 and on other stocks? Not in these tests. From September 2023 the rule returned +9.7%; holding QQQ returned +105.9%. In one six-month 2026 window it beat buying and holding on only 46 of 149 large US stocks, a descriptive result from a short period and a selected list.

Does it survive trading costs? No. At 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.

Test, at the study’s near-zero costThe VWAP ruleBuying and holding
QQQ, May 2018 to September 2023 (the study’s years)+141.9%+122.9%
QQQ, September 2023 to September 2026+9.7%+105.9%
149 US stocks, April 2026 to September 2026 (median stock)+0.0%+11.2%

How this rebuild differs from the paper. It tests the long side only, on 5-minute candles where the paper used 1-minute, with VWAP weighted by one exchange's volume (IEX) where the paper used all US trading. The largest difference is execution: it fills each order at the close of the candle that produced the signal, while the paper entered at the start of the next candle; a trader only knows a candle's close once it has ended. Re-run with orders at the next candle's open, a check added after the results, the rule returned +111.2% on QQQ over the paper's years, behind buying and holding (section 3). These figures test only the long side under the conditions above. The paper's +671% comes from long and short trades together.

A “holy grail” label rests on one testA 2023 study called a simple VWAP rule a “holy grail” for day trading after reporting +671% on QQQ from 2018 to 2023, with long and short trades and almost-free trading.Our rebuild of the long side found the same pattern, at a smaller size, and no clear daily advantage over holding QQQ during market hours (+0.030% a day).A strategy promoted as a sure thing needs testing on other years and other stocks.
After the study, buying and holding QQQ did far betterWe ran the same rule, unchanged, on QQQ in the three years after the study.From September 2023 to September 2026 it returned +9.7%. Buying and holding QQQ returned +105.9%.Only the time period changed.
One fund’s result did not hold across 149 stocksThe original result came from QQQ alone, so we ran the same rule on 149 other large US stocks over six months of 2026.It beat buying and holding on only 46 of 149. The median stock returned +0.0% with the rule and +11.2% held throughout.One fund is one sample. Across many stocks, the rule lost to buying and holding more often than it won.

These are historical analyses. They are neither advice nor forecasts. A backtest describes what a rule would have done over a past window. It does not say what the rule will do next.

Read the full study ↓

Full research: method, results and limitations

Every table and assumption behind the summary above

1. What the original VWAP study tested

Volume Weighted Average Price (VWAP): The Holy Grail for Day Trading Systems (Carlo Zarattini and Andrew Aziz, SSRN 4631351, 13 November 2023) tests a rule on QQQ using 1-minute candles from 2 January 2018 to 28 September 2023: long while QQQ trades above VWAP, short while below, flat overnight. It reports +671% against +126% for buying and holding QQQ, with a largest fall of 9% against 36%, and describes the work as exploratory.

We rebuilt the long side of that strategy and asked three questions: does the paper's pattern appear in our rebuild on QQQ over the paper's years; does the advantage persist in the years after and on other stocks; and does it survive trading costs. How VWAP and Anchored VWAP work explains the indicator and the rule with diagrams.

2. The VWAP rule we rebuilt

PartSetting
VWAPFrom 09:30 New York time each day: the sum of each candle’s typical price (high + low + close, divided by three) times its volume, divided by the volume so far. The candle itself is included.
Candles5-minute candles, 09:30 to 16:00.
BuyA candle closes above VWAP and the rule holds no position: buy at that candle’s close. No buy on the 15:55 candle.
SellA candle closes below VWAP: sell at that close. Otherwise sell at the 16:00 close. No position is held overnight.
SizeThe whole account on every trade, in fractional shares. $25,000 at the start, as in the paper.
CostA share of each trade’s value, charged on every buy and every sale (“per side”): none for the main comparison, as in the paper; 0.02% and 0.04% per side as checks.

Two references are used. Buying and holding buys at the close of the window's first candle and sells at its last close. Holding each session buys at 09:35 and sells at 16:00 every day. The second is the like-for-like comparison for an intraday rule: much of QQQ's rise in these years happened overnight, between one day's close and the next day's open, which a rule that is flat every night cannot earn.

This is a test of one VWAP rule. A different candle length, signal, execution, anchor or exit makes a different strategy, which needs its own test. The rule is built in GU Analyser from Anchored VWAP anchored at the market open and run through the app's own backtester.

3. Important differences from the original test

The paperThis rebuild
MarketsQQQQQQ; 149 US stocks and SPY
Period2 January 2018 to 28 September 2023QQQ: 1 May 2018 to 25 September 2026; stocks: April 2026 to September 2026
TradesLong above VWAP, short belowLong above VWAP only
Candles1-minute5-minute
Volume behind VWAPAll US trading (consolidated)One exchange (IEX)
EntryStart of the next candleClose of the signal candle (idealised)
Trading cost$0.0005 a share, about 0.0002% per sideNone, 0.02% and 0.04% per side
Headline result+671% (long and short)+141.9% (long only, May 2018 to September 2023)

Execution is the most important difference. The signal is known only once the candle has closed, but the backtest fills the order at that same closing price. A live order would fill later, at a price such as the next candle's open. Because the rule's gross advantage is small relative to how often it trades, this difference could change the result. The original paper entered at the start of the following candle, so the reconstruction approximates its test.

Exploratory: the rule with orders at the next candle’s open

We added this check after the results were known, at the founder's request, to measure the effect of the same-close fill. It is exploratory: it was not part of the test fixed in advance. Both orders fill at the open of the candle after the signal; the last exit signal is the 15:50 candle, filled at 15:55's open, so nothing is held overnight. The rule and the references are otherwise unchanged, and every trade was checked to fill at a candle's open on the same day.

Exploratory · at the paper’s near-zero costFill at the signal closeFill at the next openHolding each sessionBuying and holding
QQQ, May 2018 to September 2023+141.9%+111.2%+54.7%+122.9%
QQQ, September 2023 to September 2026+9.7%+14.7%+12.0%+105.9%
149 stocks, median+0.0%+0.3%-0.2%+11.2%

With next-candle fills, QQQ over the paper's years returned +111.2%, against +141.9% with same-close fills, behind buying and holding at +122.9%; its daily comparison with holding each session was +0.019% a day, no clear difference. On QQQ in the paper's years, the same-close fill flattered the rule. In the later QQQ years, SPY and the median stock, next-candle fills did slightly better than same-close fills, and the rule stayed far behind buying and holding. On the stocks it beat buying and holding on 48 of 149. At 0.02% per side the account fell below its starting value on QQQ in both periods with either fill, and on 130 of the stocks with next-candle fills. The rest of this study reports the same-close version, which is the specification fixed in advance.

4. QQQ during the original study period

Our QQQ prices match the paper's opening and closing prices to within $0.02. Over May 2018 to September 2023, QQQ rose $238 a share across the candles that followed a close above VWAP and fell $137 across those that followed a close below it. The direction matches the paper's +$320 and −$280; the size is about 74% and 49% of theirs. The lower figures are consistent with the shorter window (QQQ moved +$4 a share in the four missing months), 5-minute candles where the paper used 1-minute, and a different volume source; this test does not isolate how much each contributes.

MeasureThe study (1-minute)GU Analyser (5-minute)
QQQ opening price, 2 January 2018$156.50$156.52
QQQ closing price, 28 September 2023$358.01$358.02
Price move above VWAP, per share+$320+$238
Price move below VWAP, per share−$280−$137
Long above and short below, per share+$600+$375
Buy and hold, largest fall from a high36%36%

At the paper's near-zero cost, the long side's compounded return was higher than buying and holding over these years, +141.9% against +122.9%, with a largest fall of 11% against 36%. The pre-specified daily comparison did not find a clear difference from holding during market hours: the estimated advantage was +0.030% a day, and its interval includes zero. A higher final balance does not by itself show a reliable edge; the daily comparison asks whether the difference is larger than ordinary variation in the sample. The paper reports 36% for buying and holding QQQ's largest fall, the same figure as ours.

QQQ, the study’s near-zero costMay 2018 to September 2023September 2023 to September 2026
The VWAP rule (long only)+141.9% · $60,475+9.7% · $27,416
Holding each session, 09:35 to 16:00+54.7% · $38,664+12.0% · $27,995
Buying and holding+122.9% · $55,714+105.9% · $51,477
The VWAP rule, largest fall from a high11%8%
Buying and holding, largest fall from a high36%23%

5. QQQ after the study

From 29 September 2023 to 25 September 2026, with the rule unchanged, it returned +9.7%; holding each session returned +12.0% and buying and holding +105.9%. Its falls stayed smaller (8% against 23%), and it did not keep its lead over buying and holding.

6. The strategy on 149 stocks

Important limitation of this sample. The list is the 100 stocks of the product's S&P 100 set and the next 50 large US stocks by trading value in the 60 days to the end of the window, less BK, which had no 5-minute data. It was drawn up for Study 005, before any VWAP result existed, but it uses information from the end of the period (look-ahead in stock selection) and today's large companies (survivorship bias). It covers six months of one rising market. The results describe this sample only.

At the paper's near-zero cost, the rule beat buying and holding on 46 of 149 stocks and beat holding each session on 69. The median stock returned +0.0% with the rule, -0.2% holding each session and +11.2% held throughout. On SPY, the S&P 500 fund and the closest relative of QQQ here, the rule returned +0.9% against +6.1% and +19.2%. SPY gained +19.2% over the window, and a rule that is out of the market for part of each day gives up part of such a rise.

7. The pre-specified comparison

The comparison fixed in advance sets the rule against holding the same stock during the same trading hours, day by day, and asks whether the difference is large enough to separate from ordinary day-to-day variation.

TestStudy’s cost: average daily difference0.02% per side: average daily difference95% interval at 0.02%
QQQ, May 2018 to September 2023+0.030% a day · no clear difference-0.087% a day · behind holding the session-0.127% to -0.047%
QQQ, September 2023 to September 2026-0.005% a day · no clear difference-0.125% a day · behind holding the session-0.171% to -0.075%
149 stocks, April 2026 to September 2026-0.029% a day · no clear difference-0.148% a day · behind holding the session-0.194% to -0.104%
SPY, April 2026 to September 2026-0.042% a day · no clear difference-0.165% a day · behind holding the session-0.240% to -0.085%

At the paper's cost there was no clear difference from holding each session in any of the four tests. At 0.02% per side the rule was clearly behind holding each session in all four.

Method. The 95% intervals come from a block bootstrap of consecutive trading days, 2,000 resamples, at three block lengths (20, 5, 60 days for QQQ; 5, 2, 10 for the stocks, resampled together). We treated a difference as clear only when all three 95% bootstrap intervals stayed on the same side of zero.

8. What happens after trading costs?

The rule made about 3.9 round trips a day on QQQ, each a buy and a sale, so each assumed cost is paid about 8 times a day. At 0.02% per side it finished every calendar year from 2018 to 2026 below where the year started on QQQ. At 0.02% per side the account fell below its starting value on 127 of the 149 stocks.

Cost per sideQQQ, May 2018 to September 2023QQQ, September 2023 to September 2026149 stocks (median)SPY
None (the study: about 0.0002%)+141.9%+9.7%+0.0%+0.9%
0.02% (assumed)-70.8%-66.5%-17.8%-17.4%
0.04%-96.5%-89.8%-32.4%-32.4%
QQQ, the study’s yearsThe study (long and short, 1-minute)GU Analyser (long only, 5-minute)
Trades a day (one trade = an entry and its exit)15.23.9
Winning trades17%22%
Average winner ÷ average loser5.673.04

A market pattern and a profitable trading strategy are different things: a signal can carry information about future prices and still fail to make money after execution, timing and the cost of repeated trades. What happens when trading costs are added? Study 011 measures the cost at which the rule's lead disappears.

9. What this backtest cannot tell you

These results describe past trading under stated assumptions. They leave these questions open:

10. Conclusion

The rebuild finds the same direction as the 2023 QQQ study: QQQ gained more on the candles following closes above VWAP than it lost on those following closes below it, but the effect was smaller. The 5-minute long-only rule also finished ahead of buying and holding QQQ over the study's period at near-zero cost, though the daily comparison fixed in advance found no clear difference from holding during market hours.

The advantage was not reproduced in the later QQQ period: +9.7% against +105.9% from September 2023 to September 2026. In the six-month stock test the rule beat buying and holding on 46 of 149 stocks. At 0.02% per side the account fell below its starting value on QQQ in both periods and on 127 of the stocks.

In the check added after the results, filling each order at the next candle's open put the rule behind buying and holding QQQ in the paper's own years (+111.2% against +122.9%).

The rebuild supports the existence of the historical QQQ pattern. A robust trading edge would have to hold in later years, on other stocks and after trading costs, and in these tests the rule met none of the three.

Sources

The paper's figures are as its authors reported them.

Using this research. The analysis, tables and figures on this page are GU Analyser Ltd’s own work, published under a Creative Commons BY-NC 4.0 licence. You are welcome to quote it, cite it and build on it, with credit and a link. Suggested credit: GU Analyser, The Test Bench, Study 010, linking to guanalyser.com/test-bench/vwap-trading-strategy/. For commercial use, ask us at hello@guanalyser.com.

Rebuild the test

Build the rule on the strategy canvas with Anchored VWAP from the market open, a close-above buy, a close-below sale and a 16:00 exit, and backtest it on 5-minute candles at your own cost assumption.

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.