Learn › Strategies › 20-Day Momentum + Trailing Stop › QQQ

20-Day Momentum + Trailing Stop on QQQ

Invesco QQQ Trust: tracks the Nasdaq-100, a tech-heavy growth index. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.

Result: momentum breakout on QQQ turned $10,000 into $15,425 (54.3% total, 7.8% CAGR): it trailed buy-and-hold by 8.9% per year, with a maximum drawdown 7.7 points shallower than holding (26.5% vs 34.2%).

The momentum breakout rule made money on QQQ and still finished well behind simply holding the fund. From 2021-01-04 to 2026-10-02, $10,000 grew to $15,425.30, a total return of 54.25% and a CAGR of 7.84%. Buy-and-hold on QQQ ended at $24,264.64, a CAGR of 16.7%. The shortfall is 8.86 points of CAGR and $8,839.34 of ending equity.

The rule bought QQQ after it gained more than 10% in 20 sessions and sold when a 10% trailing stop was hit. Over the window it made 8 round trips, won 5 of them, and had a profit factor of 3.64. The average win was 14.31% and the average loss was -6.83%. Those are good trade statistics, and they sit next to a rule that was invested only 63% of the time while the fund spent most of the window rising.

The maximum drawdown of the rule was 26.54%, against 34.23% for buy-and-hold, and the Sharpe ratio was 0.62 against 0.83. The rule did better than holding in 2022 and 2025, and worse in the four other years. The 2022 gain came from avoiding part of the bear market. The shortfall in 2023 and 2026 came from being out of the fund during sharp rebounds.

The result shows the cost of a signal that waits for strength. The entry demands a gain of 10% in four weeks, which usually appears after a decline is over and a rebound is well underway. The exit gives back up to 10% from each peak. Both choices made the rule late in and late out.

7.8%CAGR
16.7%buy & hold CAGR
−26.5%max drawdown
0.61Sharpe ratio
8round trips
63%win rate
■ momentum breakout   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmomentum breakoutbuy & hold
202119.9%28.4%
2022−24.5%−31.7%
202325.6%53.0%
202410.0%25.1%
202527.2%20.4%
2026−3.1%22.1%

Year by year

The rule returned 19.9% in 2021, -24.5% in 2022, 25.6% in 2023, 10% in 2024, 27.2% in 2025 and -3.1% so far in 2026. Buy-and-hold returned 28.4%, -31.7%, 53%, 25.1%, 20.4% and 22.1%.

In 2021 the rule trailed by 8.5 points. It bought on 2021-04-07, three months into the window, at an adjusted price of 319.16, because the first 20-day gain above 10% did not arrive until then. That trade ran 287 days to 2022-01-19 and returned 11.66%, and most of the 2021 gain came from it.

The 2022 result of -24.5% beat the fund by 7.2 points, and it was still a bad year. Four round trips ended in 2022, one of them the 2021 position. The other three lost: -9.83% from 2022-04-05 to 2022-04-22, -4.08% from 2022-08-01 to 2022-08-30, and -6.57% from 2022-11-14 to 2022-12-22. Each began after a rally of more than 10% in a bear market, and each ended on the trailing stop as the rally faded. The monthly figures show it: -7.32% in January, -9.48% in April, -3.96% in August and -8.54% in December.

The 2023 gap of 27.4 points is the largest of the six years. The rule made 25.6% against the fund's 53%. It entered on 2023-01-27 at 286.32, well off the November 2022 low, and held to 2023-10-26 at 342.837 for 19.74%. The fund's rebound from its trough began before the entry condition could be met, and the rule had missed part of it.

In 2024 the rule made 10% against 25.1%. It held the 2023-11-24 entry at 382.65 until 2024-08-02, when the stop took it out at 445.75 for 16.49%. It then stayed out from August 2024 until May 2025, in a stretch in which the fund hit a new high and then dropped 22.38% in the spring of 2025. In 2025 the rule beat the fund by 6.8 points, because it avoided that spring decline and bought on 2025-05-06 at 476.16. That trade ran 325 days to 2026-03-27 at 569.58, a gain of 19.62%.

In 2026 the rule trails by 25.2 points. The stop sold the 2025 position in March 2026, the rule re-entered on 2026-04-21 at 646.17, and it exited on 2026-07-28 at 672.345 for 4.05%. The fund returned 22.1% in the same stretch of the year, and the rule's loss of 3.1% reflects an exit before most of that came.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%2.2%−1.2%6.0%2.7%4.1%−5.5%7.6%1.9%1.1%
2022−7.3%0.0%0.0%−9.5%0.0%0.0%0.0%−4.0%0.0%0.0%2.5%−8.5%
20230.7%−0.4%9.3%0.5%7.6%6.3%3.8%−1.5%−5.0%−2.6%−0.1%5.3%
20241.7%5.1%1.2%−4.2%6.2%6.0%−1.6%−4.1%0.0%0.0%0.0%0.0%
20250.0%0.0%0.0%0.0%7.9%6.1%2.3%0.9%5.2%4.6%−1.5%−0.6%
20261.2%−2.2%−5.7%3.0%10.1%−0.2%−8.2%0.0%0.0%0.0%––

Month by month

The monthly table has long stretches of 0.0% where the rule held cash: January to March 2021, February to March and May to July 2022, September and October 2022, and from September 2024 through April 2025. Those eight months from September 2024 to April 2025 are the longest idle stretch, and they include the April 2025 sell-off.

The best month was 2026-05 at 10.14%, the month after the rule re-entered on 2026-04-21. The worst was 2022-04 at -9.48%, in the 17-day trade that lost 9.83%. Buy-and-hold had a best month of 2026-04 at 15.44% and a worst of 2022-04 at -13.14%. The rule's best month came one month after the fund's best month, and that lag sums up the way the rule behaves: it participates in rebounds after they have started.

Winning months cluster in 2023 to mid-2024 and in mid-2025 to early 2026, which were the two stretches in which the rule held a long position through a trend. Losing months cluster in 2022, with entries and exits inside a falling market.

Every trade

momentum breakout on QQQ made 8 closed round trips, an average hold of 165 days, an average winner of 14.31%, an average loser of −6.83%, a profit factor of 3.64, a longest losing streak of 3. It held a position at the close on 63.0% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-07$319.162022-01-19$356.3611.7%287
2022-04-05$357.262022-04-22$322.15−9.8%17
2022-08-01$305.342022-08-30$292.89−4.1%29
2022-11-14$279.302022-12-22$260.94−6.6%38
2023-01-27$286.322023-10-26$342.8419.7%272
2023-11-24$382.652024-08-02$445.7516.5%252
2025-05-06$476.162026-03-27$569.5819.6%325
2026-04-21$646.172026-07-28$672.354.0%98

Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. An open position is marked at the last close.

Trades that mattered

There were 8 round trips and none open at the end. The trades were:

Five trades won and three lost, so the win rate was 63%. The winners lasted from 98 to 325 days and the losers from 17 to 38 days. The median return was 11.66% and the median hold was 252 days, and the longest win streak was 4 against a longest loss streak of 3. The average hold of 164.8 days is pulled down by the 2022 losers.

This is the pattern a trend-following exit is built for. It cuts the losers at about 10% or less and leaves the winners to run. The worst trade lost 9.83%, which fits the 10% stop. The best trade gained 19.74%. A profit factor of 3.64 reflects that asymmetry.

Exit prices with three decimals, such as 342.837 and 322.146, are the stop levels where the trailing order triggered. Prices are adjusted for splits and dividends. The list shows trades by their exit year: 4 round trips in 2022 with 1 win, 1 in 2023 with 1 win, 1 in 2024 with 1 win and 2 in 2026 with 2 wins.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-11-192023-03-10−26.5%4762024-03-01357
2025-10-292026-04-21−10.1%1742026-05-1423
2024-07-102024-08-02−10.0%232025-06-24326

Buy-and-hold's deepest drawdown ran from 2021-11-19 to 2022-11-03 and reached −34.2%.

Drawdowns

The rule's largest drawdown was 26.54%, from a peak on 2021-11-19 to a trough on 2023-03-10. It took 476 days to reach the low and 357 days to recover, with recovery on 2024-03-01. The peak date is the same as the fund's peak. The fund fell 35% by 2022-11-03 and the rule's trough came later because the rule was whipsawed in the first quarter of 2023 and the account kept falling after the fund's own low.

The second drawdown, 10.07% from 2025-10-29 to 2026-04-21, took 174 days to reach the low and 23 days to recover. The third, 10% from 2024-07-10 to 2024-08-02, took 326 days to recover, which reflects the long stretch in cash.

Buy-and-hold had drawdowns of 34.23%, 22.38% and 13.31%. The rule's 26.54% was shallower than the first, and its other two were shallower than the second. The cost of that protection was the return shown in the year-by-year table. The trailing stop is a way to cut a loss at a defined distance, and across the window it cut the deepest drawdown by 7.69 points. It did not prevent the 2022 whipsaws.

With trading costs

The headline run fills at the bar price. These runs charge slippage on every fill.

Slippage per fillCAGRMax drawdownFinal valueSharpe
None (headline)7.8%−26.5%$15,4250.61
5 basis points7.7%−26.8%$15,2820.60
10 basis points7.6%−27.2%$15,1950.59

What trading costs do

The rule made 16 fills. With 5 basis points per fill, CAGR is 7.67% against 7.84% in the headline run, and ending equity is $15,281.78. With 10 basis points, CAGR is 7.56% and ending equity $15,194.78. The maximum drawdown widens from 26.54% to 26.83% and 27.16%, and the Sharpe ratio goes from 0.62 to 0.603 and 0.594.

The effect is small because the rule trades rarely. With 8 round trips in 5.74 years, execution cost is a minor part of the result. The rule's shortfall against buy-and-hold comes from timing and time out of the market, and costs account for little of it. QQQ's liquidity also helps: average daily dollar volume was $18,772,024,579 and median minute volume was 77,976.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules7.8%−26.5%863%$15,425
5% trailing stop8.1%−15.4%1155%$15,618
15% trailing stop11.5%−38.6%450%$18,665
20% return entry1.6%−9.4%1100%$10,958

Parameter variants

Three variants were tested against the published 10% trail and 10% entry.

The trailing stop width drives the result. A 5% stop gave a higher CAGR than the published rule with a much shallower drawdown, and the best Sharpe ratio of the four. A 15% stop gave the highest CAGR and the deepest drawdown, 38.56%, which is deeper than buy-and-hold's 34.23%. The wider stop let positions ride through larger pullbacks, and in this window the fund recovered from them, so the extra room paid. A different window with a pullback that did not recover would have judged the 15% stop differently.

The 20% entry shows the other lever. Requiring a gain of 20% in 20 sessions produced one trade in the whole window and a CAGR of 1.61%. The entry threshold controls how many chances the rule gets.

Three variants are too few to say which setting is best. They show that the 10% stop was neither the best nor the worst of the choices, and that the published numbers are one point on a range. A reader who picks the best-looking row is choosing from an in-sample result.

How QQQ behaved

MeasureQQQ
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold151.1%
Annualized volatility22.4%
Deepest drawdown−35.0% (2021-11-19 to 2022-11-03)
Up days54.8%
Average daily range1.58%
Average overnight gap0.59%
Correlation to SPY0.94
Correlation to TLT0.09
Sessions above the 200-day average75.2%
Crossings of the 200-day average20
Falls of 10% or more from a 20-day high21

How QQQ behaved and what that did to the rule

QQQ follows the Nasdaq-100, a tech-heavy growth index, and belongs to the broad index category. The window gave it a 151.07% return, a 17.39% CAGR and 22.39% annualized volatility. Its calendar years were 29.18%, -32.39%, 54.81%, 25.59%, 20.77% and 22.44% so far in 2026. The deepest drawdown ran 35% from 2021-11-19 to 2022-11-03, and the fund took until 2023-12-12 to recover, which was 516 sessions.

On the daily record, 54.82% of sessions closed up. Up days averaged 1.01% and down days averaged -1.06%. Within a session the average range was 1.58%, and the average overnight gap was 0.59%, with overnight moves carrying 64.64% of the log return. QQQ had a beta of 1.29 to SPY and a correlation of 0.94. It sat above its 200-day average on 75.18% of sessions and crossed that line 20 times.

The best day was 2025-04-09 at 11.75%, and the worst was 2025-04-04 at -6.1%, so both landed in April 2025. A 10% gain inside 20 sessions takes several days near the best one, while a 10% trail can be hit by a single day near the worst. The strongest days of 2022 were 7.37% on 2022-11-10 and 4.59% on 2022-11-30. They fell inside the bear market where the rule was repeatedly stopped out.

Daily returns had a lag-1 autocorrelation of -0.04, so one day's move told almost nothing about the next. Persistence appeared across weeks and months instead, which the 2023 and 2025 trades of 272 and 325 days show.

RSI(14) closed under 30 on just 15 sessions. After those readings the median 5-day forward return was 3.69%, against a baseline of 0.56%. The sample is small, but it leaned toward a rebound. Across all sessions the median 20-day forward return was 1.74%, an upward drift, and any rule that sits out part of the window gives some of it up.

The rules

Buy after a +10% four-week burst and let a 10% trailing stop manage the exit.

  1. WHEN the market opens · IF not invested AND the 20-day return > +10% · THEN buy with 98% of the sleeve
  2. WHILE invested · a managed trailing stop follows 10% below the position's high-water mark

Momentum entry, trailing-stop exit. A +10% gain over 20 sessions marks a burst of momentum. The template buys the strength and exits on a 10% trailing stop that ratchets up beneath the highest close and never moves down. There is no profit target, so winners run until the trail is hit.

Good for: high-momentum assets where trends extend, such as semiconductor and leveraged tech ETFs.
Watch out: buying strength means buying high; when a burst immediately reverses, the trail exits about 10% below the entry.

How the entry and exit work on a fund like QQQ

The momentum breakout rule needs a 20-day return above +10% before it will buy, and it only checks while the account is flat. When the condition is true at the open, 98% of the sleeve goes into the fund. After that a managed trailing stop sits 10% under the highest level reached, rises with each new closing high and never falls. No profit target exists, so the position stays open until that stop triggers.

A 10% gain in 20 sessions is a big move for QQQ, whose average up day was 1.01% and whose annualized volatility was 22.39%. The test also found 21 events where the fund dropped 10% or more from a 20-day high, spread over 82 days. Those events set up the entry. A rise of the size the rule wants usually follows a sharp fall, so the signals bunch around the turning points of the large drawdowns.

The strategy notes describe the weak spot: a rule that buys strength pays a high price, and a burst that reverses at once is cut about 10% below the entry. All three losing trades in the window came in 2022, which matches that description.

How the other templates did on QQQ

The momentum breakout ranks 10th of 12 templates on QQQ, and QQQ ranks 14th of 59 funds for this rule. The median CAGR for the rule across all 59 funds was 0%, and the median across broad index funds was 7.35%. QQQ sits above both medians.

The ranking on QQQ runs from the weekly 7% target at 16.52% with a 19.41% drawdown, the monthly cycle at 14.73% with 36.07%, the RSI(2) snapback at 14.17% with 14.27% and the golden cross at 13.6% with 22.23%. The 200-day regime filter made 12.9% with 19.93%, the trend plus trailing stop rule 11.27% with 26.72%, and the SMA 10/50 trend 9.03% with 20.8%.

Below those sit the 3-month momentum rule at 8.21%, the EMA 12/26 trend at 7.85%, the momentum breakout at 7.84%, the RSI mean reversion rule at 6.4% and the dip buyer at 5.37%. The momentum breakout and the EMA rule are almost level.

The comparison with the trend rules is informative. The golden cross and the 200-day filter also sit out downtrends, and they made 13.6% and 12.9% with drawdowns near 20%. Their exits are slow and their entries come early in a recovery, which suited a fund that kept returning to highs. The momentum breakout's entry waits for a 10% burst, and that is the main reason it lagged them.

Peers in the broad index category

The same rule on other broad index funds gives a spread. SPY made 9.09% with a 13.14% drawdown on 3 round trips, VOO 9.19% with 13.22% and VV 9.34% with 13.6%. QQQM, which holds the same index as QQQ, made 7.92% with a 26.98% drawdown on 8 round trips, a close match to QQQ's 7.84% and 26.54%.

IOO made 7.35% and VOOV 6.38% with a drawdown of 11.84%. VOOG made 6.13% with 28.68%. The weaker results came from EEM at 2.36%, QQQE at 1.78%, IWM at 1.35% and VTV at -0.26% with a single round trip.

SPY, VOO and VV traded 3 times each and had drawdowns near 13%, which is a shallower profile than QQQ's. The less volatile large-cap funds produced fewer signals and lost less in 2022. QQQ's sharper swings produced more trades, higher gains on the winners and a deeper drawdown. QQQM, with the same holdings, made nearly the same result, which shows that the rule follows the index and not the ticker.

Limits of this result

This is one window of 5.74 years on one fund, with 8 round trips. The three losses all fall in 2022, and the five wins in the other years, so a sample of one bear market drives the loss side of the statistics. The headline run has no fees or slippage and fills on minute bars, and the cost runs add 5 and 10 basis points. Parameter variants were chosen by the library and are in-sample. Backtests are hypothetical and nothing here is investment advice.

Run momentum breakout on QQQ yourself, free →

Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.

Frequently asked questions

Did momentum breakout beat buy-and-hold on QQQ?

Over 2021-01-04 to 2026-10-02, momentum breakout on QQQ returned 7.8% annualized vs 16.7% for buy-and-hold: it trailed buy-and-hold by 8.9% per year, with a maximum drawdown 7.7 points shallower than holding (26.5% vs 34.2%).

How many trades did it make?

8 completed round trips over 5.7 years (16 fills), with 63% of round trips closing profitably.

How does the trailing stop work in the backtest?

The stop sits 10% below the highest price since entry and only ratchets up. When a bar trades through it, the position sells at the stop, or at the open if the price gaps below it. Trailing-stop exits can be backtested now; deploying them live is not available yet.

Did the momentum breakout beat buy-and-hold on QQQ?

No. It returned 7.84% a year and ended at $15,425.30, against 16.7% and $24,264.64 for buy-and-hold. It did beat holding in 2022 and 2025 and had a shallower maximum drawdown, 26.54% against 34.23%.

How many trades did the rule make on QQQ?

It made 8 round trips with 16 fills and won 5 of them, a win rate of 63%. The average win was 14.31% and the average loss was -6.83%. The profit factor was 3.64.

When was the rule invested?

Exposure was 63% of the window. The rule first bought on 2021-04-07 and was out of the fund from August 2024 until 2025-05-06. Its longest trade ran 325 days from 2025-05-06 to 2026-03-27.

Would a tighter or wider trailing stop have worked better?

In this window both did. A 5% stop gave 8.07% with a 15.37% drawdown, and a 15% stop gave 11.48% with a 38.56% drawdown. The 15% result carried a deeper drawdown than buy-and-hold, so the better CAGR came with more risk.

What did trading costs do to the result?

Very little. At 5 basis points per fill the CAGR was 7.67%, and at 10 basis points it was 7.56%. The rule made only 16 fills, and QQQ is heavily traded.

Why did the rule lose money in 2022?

It bought three rallies of more than 10% in a falling market, and each one faded into the trailing stop. The losses were -9.83%, -4.08% and -6.57%. The year ended at -24.5% against -31.7% for holding.

Which strategies did better on QQQ?

Nine templates did better, led by the [weekly 7% target](/learn/strategies/weekly-profit-target/qqq/) at 16.52% and the [monthly cycle](/learn/strategies/monthly-cycle/qqq/) at 14.73%. The [QQQ page](/learn/etf/qqq/) compares all 12 on one fund.

Related

20-Day Momentum + Trailing Stop on all 59 ETFsfull results table All strategies on QQQ12 templates compared RSI(14) Mean Reversion on QQQsame ETF, different rulesRSI(2) Dip Snapback on QQQsame ETF, different rules

Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.