SMA-200 Trend + 15% 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.
The SMA-200 Trend + 15% Trailing Stop buys when yesterday's close is above the 200-day average and sells only when a stop 15% below the position's high-water mark is hit. Applied to QQQ, the Invesco fund that tracks the Nasdaq-100, from 2021-01-04 to 2026-10-02 with $10,000, it ended at $18,463.03. The CAGR was 11.27%, the total return 84.63%, the Sharpe 0.75 and the maximum drawdown 26.72%.
Buy-and-hold on QQQ over the same window ended at $24,264.64, with a CAGR of 16.7%, a Sharpe of 0.83 and a drawdown of 34.23%. The rule gave up a lot of return and cut the worst drawdown by a smaller amount. It beat holding in 2022 and trailed it in the other five calendar years.
There were 4 closed round trips and one position still open at the end. Two of the closed trades won and two lost, a 50% win rate. The average win was 27.61% and the average loss was -10.75%, which gives a profit factor of 2.31. The account was invested for 70.5% of the window.
The strategy ranks 6th of the 12 templates on QQQ, and QQQ ranks 12th of 59 funds for this strategy. The median CAGR for the strategy across all 59 funds is 2.61%, so QQQ is well above the middle. The test is one window of 5.74 years, with daily-decision rules, orders filled on minute bars and no fees in the headline run.
Year by year
| Year | trend + trailing stop | buy & hold |
|---|---|---|
| 2021 | 6.4% | 28.4% |
| 2022 | −24.7% | −31.7% |
| 2023 | 39.5% | 53.0% |
| 2024 | 25.0% | 25.1% |
| 2025 | 8.5% | 20.4% |
| 2026 | 21.7% | 22.1% |
Calendar years against buy-and-hold
2021 returned 6.4% against 28.4% for holding. The strategy bought on 2021-10-19, close to the end of the year, so it caught only the last quarter. Before that the account was in cash, and the numbers for the first nine months of the year are all 0.
2022 is the one year the rule won. It returned -24.7% while buy-and-hold returned -31.7%. The strategy took two losing trades in the first four months and then sat in cash from late April for the rest of the year. QQQ itself fell 32.39% in the calendar year and hit its low on 2022-11-03. The account missed the later part of that fall and also the sharp rally days that came with it, such as 2022-11-10 at 7.37%.
2023 returned 39.5% against 53%. The entry on 2023-01-27 came after the low, so the rule gave up the first weeks of the recovery. 2024 returned 25%, against 25.1% for holding, an almost exact tie. The one long trade covered nearly all of it.
2025 returned 8.5% against 20.4%. The position opened in 2024-08 was stopped out on 2025-03-31, and the account did not buy back until 2025-05-13. In that gap QQQ rallied. 2026 shows 21.7% against 22.1%, with the year running to 2026-10-02.
The gaps by year are -22, 7, -13.5, -0.1, -11.9 and -0.4 percentage points. Two years show close ties and two show large shortfalls. The shortfalls come from the same cause each time: the strategy was in cash, or entered late, during a sharp rise.
For comparison on the same fund, the 200-day regime filter finished with a CAGR of 12.9% and a drawdown of 19.93%, and the golden cross at 13.6% with 22.23%.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 3.3% | 1.9% | 1.1% |
| 2022 | −12.7% | −5.7% | 4.2% | −12.2% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 0.7% | −0.4% | 9.2% | 0.5% | 7.5% | 6.2% | 3.8% | −1.5% | −4.9% | −2.0% | 10.5% | 5.4% |
| 2024 | 1.8% | 5.2% | 1.2% | −4.3% | 6.3% | 6.1% | −1.6% | 1.1% | 2.5% | −0.8% | 5.2% | 0.5% |
| 2025 | 2.1% | −2.6% | −9.3% | 0.0% | 2.0% | 6.2% | 2.3% | 0.9% | 5.2% | 4.7% | −1.5% | −0.6% |
| 2026 | 1.2% | −2.2% | −4.7% | 15.2% | 10.3% | −0.2% | −6.3% | 4.1% | 3.2% | 1.3% | – | – |
Monthly returns
The first nine months of the table are 0, then the entry month, 2021-10, shows 3.29%, followed by 1.92% in November and 1.1% in December. The first hard hit comes in 2022-01 at -12.72%, which is the worst month of the run. February was -5.67%, March 4.23% and April -12.21%. After the exit on 2022-04-27 the account is flat from May through December 2022, and the monthly cells show 0.
Buy-and-hold had its worst month in April 2022 at -13.14%, so both lines lost heavily in April. The strategy lost a similar amount that month because it held the fund until the 27th.
The recovery year shows the benefit of being in the trade. From 2023-03 through 2023-07 the monthly returns were 9.17%, 0.52%, 7.51%, 6.24% and 3.77%. November 2023 added 10.48% and December 5.42%. The loss months were August at -1.51%, September at -4.9% and October at -2.01%, none large enough to trigger the 15% stop.
The best month was 2026-04 at 15.15%, against 15.44% for buy-and-hold. May 2026 added 10.28%. The worst months after 2022 were 2025-03 at -9.35% and 2026-07 at -6.33%. March 2025 is the month that ended the 2024 trade, as the exit came on 2025-03-31.
April 2025 shows 0 because the account was in cash after the stop. QQQ rebounded sharply in that month, with a best day of 11.75% on 2025-04-09, and the strategy did not hold it. Over the full window the fund averaged 5.19% in May and 4.42% in November, with weaker averages in September at -1.65%. Those figures rest on five or six observations per calendar month, so they describe this sample and nothing the rule uses.
The 2024 to 2026 stretch month by month
The monthly record from 2024 onward shows how the long trades behaved. The position bought on 2023-01-27 returned 1.77% in January 2024, 5.19% in February and 1.22% in March, then lost 4.28% in April and made 6.25% in May and 6.06% in June. July lost 1.62%, and the stop sold the position on 2024-08-05 in the middle of the August 2024 selloff. The new entry on the same day at 419.79 then made 1.13% in August, 2.53% in September, 5.22% in November and 0.45% in December, with a 0.83% loss in October.
The 2025 months show the damage of March. January made 2.12%, February lost 2.64% and March lost 9.35%, which is the month the stop triggered. April is 0. The account bought back on 2025-05-13 and made 1.99% in May, 6.15% in June, 2.34% in July, 0.91% in August, 5.2% in September and 4.65% in October. November lost 1.54% and December 0.64%.
In 2026 January made 1.19%, February lost 2.24% and March lost 4.72%, with no stop triggered. April made 15.15%, the best month of the whole window, and May made 10.28%. June lost 0.22%, July lost 6.33%, August made 4.08% and September 3.23%. The position bought on 2025-05-13 at 505.08 was still open at the end of the data with a 48.4% gain, so none of those 2026 pullbacks came near a 15% fall from the high-water mark. The 6.33% loss in July 2026 is the largest decline the open position took in a single month since the stop triggered in March 2025.
Every trade
trend + trailing stop on QQQ made 4 closed round trips and one position still open at the end of the test, an average hold of 244 days, an average winner of 27.61%, an average loser of −10.75%, a profit factor of 2.31, a longest losing streak of 2. It held a position at the close on 70.5% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-10-19 | $361.85 | 2022-01-24 | $335.52 | −7.3% | 97 |
| 2022-02-02 | $357.83 | 2022-04-27 | $306.97 | −14.2% | 84 |
| 2023-01-27 | $286.32 | 2024-08-05 | $419.86 | 46.6% | 556 |
| 2024-08-05 | $419.79 | 2025-03-31 | $455.81 | 8.6% | 238 |
| 2025-05-13 | $505.08 | open | – | 48.4% | – |
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.
The five trades
The full list shows 5 entries, 4 exits and one position still open.
- 2021-10-19 to 2022-01-24: bought at 361.85, sold at 335.52, a loss of 7.28% over 97 days.
- 2022-02-02 to 2022-04-27: bought at 357.83, sold at 306.969, a loss of 14.21% over 84 days. This is the worst trade and sits just inside the 15% trail.
- 2023-01-27 to 2024-08-05: bought at 286.32, sold at 419.86, a gain of 46.64% over 556 days. This is the best closed trade and the longest hold.
- 2024-08-05 to 2025-03-31: bought at 419.79, sold at 455.8125, a gain of 8.58% over 238 days. This is the median return.
- 2025-05-13 onward: bought at 505.08, still open, marked at 48.4%.
All prices are adjusted for splits and dividends, so they are lower than quotes printed at the time. The average hold of closed trades was 243.8 days.
One trade shows an exit and a new entry on the same date. The position sold on 2024-08-05 at 419.86 and the next one bought at 419.79 on that day. The stop exited the position and the rule bought again at the same open. The strategy's description names this as a caveat: on choppy assets it re-enters above the 200-day repeatedly after each stop-out. Here it did so once and at almost the same price, so the stop cost the account very little.
The open trade is the largest by return at 48.4%, which is higher than the best closed trade at 46.64%. It also means the ending equity of $18,463.03 includes an unrealized gain. If the stop were hit, the final number would change.
Two trades lost in 2022, one won in 2024 and one won in 2025. Four closed trades is a small sample. A single trade, the 46.64% winner, drives most of the result.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-11-19 | 2023-03-10 | −26.7% | 476 | 2023-12-12 | 277 |
| 2025-02-19 | 2025-03-31 | −14.5% | 40 | 2025-09-19 | 172 |
| 2024-07-10 | 2024-08-07 | −13.3% | 28 | 2024-11-06 | 91 |
Buy-and-hold's deepest drawdown ran from 2021-11-19 to 2022-11-03 and reached −34.2%.
Drawdowns
The largest drawdown peaked on 2021-11-19 and troughed on 2023-03-10, a depth of 26.72% after 476 days. It recovered on 2023-12-12, 277 days later. The shape is odd for a strategy that sat in cash for most of 2022, and the reason is the entry date of 2023-01-27. The account was flat during the second half of 2022, bought in January 2023, and its equity bottomed on 2023-03-10.
Buy-and-hold had the same peak date and the same recovery date, with a trough on 2022-11-03 at 34.23% after 349 days. Its recovery took 404 days. The rule reduced the depth and the recovery time at the cost of a different path.
The second drawdown is 14.51%, from a peak on 2025-02-19 to a trough on 2025-03-31, after 40 days. It recovered on 2025-09-19, 172 days later. Buy-and-hold had a 22.38% drawdown in the same episode with its trough on 2025-04-08, and it recovered on 2025-06-24. The strategy's exit on 2025-03-31 limited the loss and then kept the account out through the rebound, which is why the recovery took longer than the one for holding.
The third drawdown is 13.25%, from 2024-07-10 to 2024-08-07, after 28 days, with recovery on 2024-11-06. Buy-and-hold shows 13.31% for the same stretch. The stop did not take effect here and both lines suffered the same drop.
The rule can only exit after the price has fallen 15% from its peak. The largest drawdown of 26.72% shows what two stop-outs in a row do to the account.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 11.3% | −26.7% | $18,463 | 0.75 |
| 5 basis points | 11.2% | −26.9% | $18,418 | 0.75 |
| 10 basis points | 11.2% | −27.1% | $18,373 | 0.74 |
Cost runs
At 5 basis points the CAGR is 11.22%, the maximum drawdown is 26.88% and the ending equity is $18,417.90. At 10 basis points the CAGR is 11.18%, the drawdown is 27.05% and the ending equity is $18,372.77. The Sharpe moves from 0.75 to 0.748 and then to 0.744.
The headline run has 9 fills and no fees. The cost runs lower the result by a small amount because a strategy that holds for months trades rarely. QQQ's average daily dollar volume is $18,772,024,579 and its median minute volume is 77,976 shares, so a $10,000 sleeve is a tiny order against that. The test does not model market impact or taxes. The cost runs are flat per-trade charges, applied to every fill.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 11.3% | −26.7% | 4 | 50% | $18,463 |
| 10% trailing stop | 7.5% | −32.3% | 10 | 50% | $15,176 |
| 20% trailing stop | 7.2% | −36.4% | 3 | 33% | $14,879 |
| 25% trailing stop | 9.5% | −24.6% | 2 | 50% | $16,871 |
Trailing stop width
Three variants change only the trail. The base run uses 15%.
A 10% stop produced a CAGR of 7.54%, a drawdown of 32.33%, ending equity of $15,176.17 and a Sharpe of 0.556 over 10 trades, with 5 wins. The tighter trail got shaken out more often. The result was more exits and more re-entries.
A 20% stop produced 7.17%, a drawdown of 36.43%, ending equity of $14,879.46 and a Sharpe of 0.512 over 3 trades, with 1 win. The wider trail let the position fall further before exiting, and the drawdown is the deepest of the group.
A 25% stop produced 9.54%, a drawdown of 24.62%, ending equity of $16,870.87 and a Sharpe of 0.623 over 2 trades, with 1 win. Its drawdown is lower than the base run's 26.72%, and its CAGR is below it.
The base run at 15% beat all three on CAGR and Sharpe, but the pattern from 10% to 25% does not form a smooth curve. The CAGR falls, then rises. With between 2 and 10 trades, each variant is a different handful of exits placed against a single price path. The 15% setting here is a good fit to this window and gives no basis to expect it to be the best width in another period.
The strategy hub shows the stop-width variants on other funds.
How QQQ behaved
| Measure | QQQ |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 151.1% |
| Annualized volatility | 22.4% |
| Deepest drawdown | −35.0% (2021-11-19 to 2022-11-03) |
| Up days | 54.8% |
| Average daily range | 1.58% |
| Average overnight gap | 0.59% |
| Correlation to SPY | 0.94 |
| Correlation to TLT | 0.09 |
| Sessions above the 200-day average | 75.2% |
| Crossings of the 200-day average | 20 |
| Falls of 10% or more from a 20-day high | 21 |
How QQQ behaved
QQQ returned 151.07% over the window, a CAGR of 17.39% with annualized volatility of 22.39%. The maximum drawdown was -35%, from 2021-11-19 to 2022-11-03, and it recovered on 2023-12-12. The longest drawdown ran 516 sessions.
The fund was above its 200-day average on 75.18% of sessions and crossed it 20 times. That is the property the entry rule needs. A fund that spends most of its time above the 200-day gives the filter few false starts, and 20 crossings in 1,444 sessions limits how often the stop can be followed by a re-entry.
QQQ rose on 54.82% of sessions, with an average up day of 1.01% and an average down day of -1.06%. The lag-one autocorrelation is -0.04, so a day's return says little about the next. The correlation to SPY is 0.94 and the beta 1.29.
Of the fund's return, 64.64% came overnight and 35.36% intraday. A strategy that trades at the open, as this one does, takes the overnight gap on entry and exit.
Calendar returns were 29.18% in 2021, -32.39% in 2022, 54.81% in 2023, 25.59% in 2024, 20.77% in 2025 and 22.44% in 2026 so far. Its worst days were 2025-04-04 at -6.1% and 2022-09-13 at -5.52%. Its best were 2025-04-09 at 11.75% and 2022-11-10 at 7.37%. Both of the largest up days came when the trend filter had the account in cash.
Oversold readings were rare. RSI(14) fell below 30 on 15 sessions, with a median 20-day forward return of 1.42%, against a baseline of 1.74%. RSI(2) fell below 10 on 144 sessions, with a median 20-day return of 2.18%. The RSI(2) snapback is the rule that trades on those readings, and it finished at 14.17% with a drawdown of 14.27% on this fund.
Among broad index funds, the same rule earned 11.38% on QQQM, 10.63% on IOO and 5.45% on SPY. The category median is 6.77%. The QQQ fund page has the full profile tables.
The extreme days all fell while the account was in cash
The account was out of the fund on every one of QQQ's five best days. Those were 2025-04-09 at 11.75%, 2022-11-10 at 7.37%, 2022-11-30 at 4.59%, 2022-07-27 at 4.21% and 2025-05-12 at 4.05%. The last one is the closest call. The stop sold the position on 2025-03-31, and the next entry came on 2025-05-13 at 505.08, the session after the 4.05% gain. The rule missed the 2025-04-09 rally and the follow-through day by waiting for yesterday's close to climb back above the 200-day average.
The five worst days were also spent in cash. They were 2025-04-04 at -6.1%, 2022-09-13 at -5.52%, 2025-04-03 at -5.35%, 2022-05-05 at -4.96% and 2022-05-18 at -4.95%. The two April 2025 losses came after the 2025-03-31 exit, and the three 2022 losses came after the 2022-04-27 exit. The stop did its job on the downside in both episodes. The same cash position produced the missed rebounds, and the best days of 2022 and 2025 are the cost of that protection, listed by date.
Over the whole window the fund's average weekday returns were 0.19% on Monday, 0.03% on Tuesday, 0.1% on Wednesday, 0.03% on Thursday and 0.04% on Friday. The average intraday range was 1.58% and the average overnight gap 0.59%. The funds that tracked QQQ most closely were TQQQ, QLD and QQQM at a correlation of 1, followed by VOOG at 0.98 and ROM at 0.97. The inverse funds SQQQ, QID and PSQ sat at -1.
The rules
Enter when price is above the 200-day average; exit only when a 15% trailing stop is hit.
- WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
- WHILE invested · a managed trailing stop follows 15% below the position's high-water mark
A hybrid of the regime filter and the trailing stop. The 200-day average decides when to get in, and a 15% trail from the position's high-water mark decides when to get out. Winners can run well past the point where a crossover would have exited, and the position gives back 15% from every peak.
Good for: long trends with moderate pullbacks; the 15% trail is wide enough to survive normal corrections.
Watch out: every exit gives back 15% from the peak, and on choppy assets it re-enters above the 200-day repeatedly after each stop-out.
How the rules interact with QQQ
The two rules split the work. The 200-day average decides entry, and the 15% trail decides exit. On a fund that mostly stays above its 200-day, the entry rule keeps the account in the market and the stop only matters in a real decline.
In 2022 the stop worked as designed. It limited the loss to -7.28% and -14.21% on the two trades, and then the account sat out the decline through its low on 2022-11-03. In 2023 and 2024 the stop stayed out of the way for 556 days and let a 46.64% gain run. In March 2025 the stop exited near the low and the account missed the early recovery.
Compared with other rules on QQQ, this one ranks 6th. The weekly 7% target came first at 16.52% with a 19.41% drawdown. The monthly cycle returned 14.73%, with a 36.07% drawdown. Several rules with a more active exit beat this one on CAGR. Its maximum drawdown of 26.72% is higher than the drawdown of most of the other templates.
The result is one window with one long bull phase. The strategy's profit rests on a 556-day trade and a position that is still open. The test does not forecast how QQQ will behave, and it does not cover a market that is choppy for years.
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 trend + trailing stop beat buy-and-hold on QQQ?
Over 2021-01-04 to 2026-10-02, trend + trailing stop on QQQ returned 11.3% annualized vs 16.7% for buy-and-hold: it trailed buy-and-hold by 5.4% per year, with a maximum drawdown 7.5 points shallower than holding (26.7% vs 34.2%).
How many trades did it make?
4 completed round trips over 5.7 years (9 fills), with 50% of round trips closing profitably.
Why 15% rather than 10%?
A wider trail survives routine corrections and gives back more at the end. Both numbers are one-field edits in DeployQuant, so you can backtest both and compare.
How did the trend plus trailing stop do on QQQ?
It ended at $18,463.03 from $10,000, a CAGR of 11.27% with a maximum drawdown of 26.72% and a Sharpe of 0.75. Buy-and-hold on QQQ ended at $24,264.64.
Did the strategy beat buy-and-hold on QQQ?
Only in 2022, when it returned -24.7% against -31.7%. It lagged in the other five years and finished with a lower CAGR, 11.27% against 16.7%, though with a smaller drawdown.
How many trades did it make?
Four closed round trips and one open position. Two closed trades won and two lost, with an average win of 27.61% and an average loss of -10.75%.
What was the best trade?
The entry on 2023-01-27 at 286.32, sold on 2024-08-05 at 419.86, gained 46.64% over 556 days. The open position bought on 2025-05-13 at 505.08 is marked at 48.4%.
Would a tighter or wider stop have done better?
Not in this window. A 10% stop returned 7.54%, a 20% stop 7.17% and a 25% stop 9.54%, all below the 15% base run at 11.27%.
Do trading costs change the result?
Slightly. At 5 basis points the ending equity is $18,417.90 and at 10 basis points it is $18,372.77, compared with $18,463.03 with no costs.
Why was the strategy in cash for most of 2022?
The second losing trade ended on 2022-04-27 and the next entry came on 2023-01-27. The rule only buys after a close above the 200-day average, and that condition did not lead to an entry in between, so the account stayed in cash.
Related
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.