200-Day SMA Regime Filter on QLD
ProShares Ultra QQQ: 2x daily leveraged Nasdaq-100, between QQQ and TQQQ in leverage. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The 200-day regime filter on QLD turned $10,000 into $30,694 between 2021-01-04 and 2026-10-02, a total return of 206.94% and a CAGR of 21.57%. ProShares Ultra QQQ, ticker QLD, targets twice the daily move of the Nasdaq-100, which puts its leverage between QQQ and TQQQ. Holding it with 98% of the account invested at the first open compounded at 23.55% and ended at $33,676. The filter gave up 1.98 points of CAGR a year and $2,981 of final value, and it cut the maximum drawdown from 62.82% to 28.75%.
The Sharpe ratio was 0.84 for the filter and 0.72 for holding, which makes this a case where the rule improved risk-adjusted return and lost on the raw number. The filter was invested on 62.3% of trading days. It won in one calendar year, 2022, when the fund lost 59.7% and the rule lost 13.3%, a gap of 46.4 points in its favour. In the other five years it trailed, by 45.7 points in 2021, 59.2 in 2023, 11.3 in 2024, 10.2 in 2025 and 8.1 in 2026.
Only 12 trades closed in the window, and 5 of them won, a win rate of 42%. The average winner returned 24.98% and the average loser returned -4.36%, which gives a profit factor of 3.59. A position entered on 2026-04-09 at $67.00 was still open at the end with a mark of 46.46%. The pattern of few wins, large wins and small losses is how a trend filter normally looks on a fund that trends.
In the library's ranking the filter is fourth of 12 on QLD, and QLD is the third best of 59 funds for it. The template's median CAGR across all funds is 1.84% and the median among leveraged funds is 12.4%, so QLD is well above both.
Year by year
| Year | 200-day regime filter | buy & hold |
|---|---|---|
| 2021 | 12.1% | 57.8% |
| 2022 | −13.3% | −59.7% |
| 2023 | 54.0% | 113.2% |
| 2024 | 30.8% | 42.1% |
| 2025 | 19.7% | 29.9% |
| 2026 | 31.1% | 39.2% |
Six calendar years against holding
2021: 12.1% against 57.8%. One position, entered on 2021-10-19 at $39.20, was open into the next year. Monthly returns were 6.6% in October, 3.55% in November and 1.58% in December.
2022: -13.3% against -59.7%. The position closed on 2022-01-20 at $38.06, a loss of 2.91% over 93 days, and the rule stayed in cash through the rest of 2022 and into 2023. January alone cost 13.35%, because the account gave back gains from the fund's slide in the weeks before the exit. After that, every month in 2022 reads 0. This is where the filter earned its keep. QLD fell 60.54% as a fund that year.
2023: 54.0% against 113.2%, and the largest gap of the test against the rule at 59.2 points. The filter lost on the first two entries. The entry of 2023-02-02 at $23.08 closed on 2023-02-22 at $20.94 for -9.27%, and a 2-day trade from 2023-03-06 lost 2.66%. Then the entry of 2023-03-16 at $21.24 held for 225 days to 2023-10-27 at $27.36, a gain of 28.81%. A second position entered on 2023-10-31 at $27.68 started the best trade of the test. The year's months were mixed: +12.5% in March, +14.97% in May, +12.16% in June, then -10.27% in September and -5.99% in October, before +21.37% in November.
2024: 30.8% against 42.1%. The 2023-10-31 position was held 280 days and closed on 2024-08-06 at $41.02, a gain of 48.19%, the best trade of the test. The exit came one day before the account's low on 2024-08-07, and the rule bought back on 2024-08-07, sold on 2024-08-08 for -2.72%, bought again on 2024-08-09 and held to 2024-09-09 for 1.48%. A new entry on 2024-09-10 at $44.00 ran 171 days to 2025-02-28 at $50.64 for 15.09%.
2025: 19.7% against 29.9%. The rule was flat in April 2025, the month of two of the fund's three worst days, -10.71% on 2025-04-03 and -12.19% on 2025-04-04. The fund's best day, +23.52% on 2025-04-09, also fell in that flat stretch, so the rule missed it. Two 1-day trades in March, -6.52% from 2025-03-03 and -2.05% from 2025-03-06, are the clusters the template notes warn about. The entry of 2025-05-13 at $50.34 started a 304-day hold.
2026: 31.1% against 39.2%, a partial year to 2026-10-02. The 304-day hold closed on 2026-03-13 at $66.12 for 31.35%. A 1-day trade on 2026-03-18 lost 4.37%. The entry on 2026-04-09 at $67.00 was open at the end, up 46.46%. April and May returned 20.39% and 21.1%, and July lost 13.3%.
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% | 6.6% | 3.5% | 1.6% |
| 2022 | −13.3% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 0.0% | −9.1% | 12.5% | 0.3% | 15.0% | 12.2% | 7.0% | −3.9% | −10.3% | −6.0% | 21.4% | 10.6% |
| 2024 | 2.8% | 9.9% | 1.8% | −9.3% | 12.2% | 11.9% | −4.3% | −5.3% | 2.5% | −2.4% | 9.9% | 0.1% |
| 2025 | 3.4% | −9.2% | −8.3% | 0.0% | 3.6% | 12.3% | 4.2% | 1.1% | 10.3% | 8.8% | −3.9% | −1.9% |
| 2026 | 1.9% | −5.2% | −6.7% | 20.4% | 21.1% | −1.6% | −13.3% | 7.7% | 5.9% | 2.5% | – | – |
The monthly pattern
The months show how often the rule is positioned for a big move and how rarely it is out for one. The five best months were 2023-11 at 21.37%, 2026-05 at 21.1%, 2026-04 at 20.39%, 2023-05 at 14.97% and 2023-03 at 12.5%. The worst were 2022-01 at -13.35%, 2026-07 at -13.3%, 2023-09 at -10.27%, 2024-04 at -9.25%, 2025-02 at -9.15% and 2023-02 at -9.07%.
For holding, the best month of the test was 2026-04 at 32.53% and the worst was 2022-04 at -25.58%. The rule's worst month is milder than that, since it was in cash in April 2022 and every month after January. Its worst months came in the years it was invested: a long position takes each pullback until the exit signal arrives. The close below the 200-day average is slow to appear, and the pullbacks of -10.27% in September 2023 and -13.3% in July 2026 were absorbed before it did.
The fund's calendar averages show May at 9.97%, November at 8.28% and October at 4.87% as the strong months, with September at -3.65% and February at -2.2% weak. With five or six observations per month these describe the window only. The rule's own table is consistent with them: the largest gains fall in May, April and November, and the largest losses in September, February and January.
Every trade
200-day regime filter on QLD made 12 closed round trips and one position still open at the end of the test, an average hold of 94 days, an average winner of 24.98%, an average loser of −4.36%, a profit factor of 3.59, a longest losing streak of 3. It held a position at the close on 62.3% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-10-19 | $39.20 | 2022-01-20 | $38.06 | −2.9% | 93 |
| 2023-02-02 | $23.08 | 2023-02-22 | $20.94 | −9.3% | 20 |
| 2023-03-06 | $21.79 | 2023-03-08 | $21.21 | −2.7% | 2 |
| 2023-03-16 | $21.24 | 2023-10-27 | $27.36 | 28.8% | 225 |
| 2023-10-31 | $27.68 | 2024-08-06 | $41.02 | 48.2% | 280 |
| 2024-08-07 | $42.71 | 2024-08-08 | $41.55 | −2.7% | 1 |
| 2024-08-09 | $42.60 | 2024-09-09 | $43.23 | 1.5% | 31 |
| 2024-09-10 | $44.00 | 2025-02-28 | $50.64 | 15.1% | 171 |
| 2025-03-03 | $53.03 | 2025-03-04 | $49.57 | −6.5% | 1 |
| 2025-03-06 | $49.29 | 2025-03-07 | $48.28 | −2.0% | 1 |
| 2025-05-13 | $50.34 | 2026-03-13 | $66.12 | 31.4% | 304 |
| 2026-03-18 | $66.33 | 2026-03-19 | $63.43 | −4.4% | 1 |
| 2026-04-09 | $67.00 | open | – | 46.5% | – |
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 trade list
Of 12 closed trades, 5 won. The average winner returned 24.98% and the average loser returned -4.36%. The median trade returned -2.05%, which tells the story of the list: seven of the twelve lost small amounts, and a few long holds carried the result. The average hold was 94.2 days and the median was 31, with a longest hold of 304 days and a shortest of 1. Streaks topped out at 2 wins in a row and 3 losses in a row.
The five best trades were 48.19% over 280 days, 31.35% over 304 days, 28.81% over 225 days, 15.09% over 171 days and 1.48% over 31 days. The five worst were -9.27% over 20 days, -6.52% in 1 day, -4.37% in 1 day, -2.91% over 93 days and -2.72% in 1 day. Three of the five worst lasted a single day. They are whipsaws, entries made after a close above the line and exited after a close below it on the next session.
Grouped by exit year, the winners out of trades were 0 of 1 (2022), 1 of 3 (2023), 2 of 3 (2024), 1 of 3 (2025) and 1 of 2 (2026). In every year the winners were bigger than the losers by a wide margin, which is why a 42% win rate returned 21.57% a year. The profit factor of 3.59 says gross gains were 3.59 times gross losses.
The sample is small. Four trades produced almost the whole gain, and the outcome would change a lot if any one of them had been missed by a few days. Entry and exit both wait for a close on the far side of the line, so the rule is late at each end of a trend, and the long holds are what pay for that delay. The results show how the rule behaved on this fund in this window and make no claim about the next.
The five losing trades of two days or less
Five of the 12 closed trades lasted two days or fewer, and all five lost: -2.66% from 2023-03-06, -2.72% from 2024-08-07, -6.52% from 2025-03-03, -2.05% from 2025-03-06 and -4.37% from 2026-03-18. Four of them started in March. Each followed the pattern the template notes describe: a close back above the 200-day line, a buy at the next open, and a close back under the line a day later.
The prices show how little the exit and the re-entry differ. The rule sold on 2025-02-28 at 50.64, bought on 2025-03-03 at 53.03 and sold on 2025-03-04 at 49.57. It bought again on 2025-03-06 at 49.29 and sold on 2025-03-07 at 48.28. The account then held nothing until 2025-05-13, when it bought at 50.34. February 2025 lost 9.15% and March lost 8.26% for the rule, and the two months together hold most of the damage from that cluster.
The cluster of March 2026 was smaller. The 304-day trade sold on 2026-03-13 at 66.12, the rule bought on 2026-03-18 at 66.33 and sold on 2026-03-19 at 63.43, and the entry that stuck came on 2026-04-09 at 67.00. April 2026 returned 20.39% and May 21.1% on that position. The long hold that followed stood at 46.46% on 2026-10-02.
The same shape shows in August 2024. After the 280-day trade sold on 2024-08-06 at 41.02, the rule bought on 2024-08-07 at 42.71 and sold on 2024-08-08 at 41.55. The re-entry on 2024-08-09 at 42.60 held for 31 days and made 1.48%.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2024-07-10 | 2024-08-07 | −28.8% | 28 | 2024-12-16 | 131 |
| 2021-11-19 | 2023-03-07 | −26.4% | 473 | 2023-06-01 | 86 |
| 2026-06-02 | 2026-07-29 | −22.4% | 57 | not yet | – |
Buy-and-hold's deepest drawdown ran from 2021-11-19 to 2022-12-28 and reached −62.8%.
Where the account dropped
The rule's worst drawdown, 28.75%, came in 28 days between a 2024-07-10 peak and a 2024-08-07 low. Equity regained the peak on 2024-12-16, 131 days after. This was the fastest decline of the test, and the filter had no time to react to it. The exit signal came on 2024-08-06, and the drop ended the day after.
The second, 26.44%, ran from 2021-11-19 to 2023-03-07, 473 days, and recovered on 2023-06-01. The peak came a month into the first position. After the exit in January 2022 the account sat in cash for more than a year, then lost on the two early-2023 entries before the 225-day winner began. A third drawdown of 22.45% opened on 2026-06-02, bottomed on 2026-07-29 and was still unrecovered at the last bar.
Holding the fund had a 62.82% drawdown from 2021-11-19 to 2022-12-28, recovered on 2024-05-28, a 41.85% one from 2024-12-16 to 2025-04-08, and a 25.87% one from 2024-07-10 to 2024-08-07. The filter's three drawdowns are all shallower than the fund's biggest. Its largest, 28.75%, is roughly the same size as the fund's smallest recorded drawdown of 25.87%. The drawdown cut is the reason for the better Sharpe ratio.
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) | 21.6% | −28.8% | $30,694 | 0.84 |
| 5 basis points | 21.3% | −28.8% | $30,346 | 0.84 |
| 10 basis points | 21.1% | −28.9% | $29,988 | 0.83 |
Slippage runs
Headline fills happen at the bar price, free of slippage. At 5 basis points the CAGR was 21.33%, the final value $30,346, the drawdown 28.81% and the Sharpe ratio 0.837. At 10 basis points the CAGR was 21.08%, the final value $29,988, the drawdown 28.9% and the Sharpe ratio 0.829. The rule made 25 fills in total, so slippage barely matters: the account kept nearly all of its return at both levels.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 21.6% | −28.8% | 12 | 42% | $30,694 |
| 100-day SMA | 17.4% | −35.0% | 26 | 46% | $25,169 |
| 150-day SMA | 15.6% | −34.4% | 19 | 42% | $23,023 |
| 250-day SMA | 17.5% | −36.9% | 9 | 33% | $25,208 |
How QLD behaved
| Measure | QLD |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 254.3% |
| Annualized volatility | 44.8% |
| Deepest drawdown | −63.7% (2021-11-19 to 2022-12-28) |
| Up days | 54.3% |
| Average daily range | 3.14% |
| Average overnight gap | 1.19% |
| Correlation to SPY | 0.94 |
| Correlation to QQQ | 1.00 |
| Correlation to TLT | 0.09 |
| Sessions above the 200-day average | 72.3% |
| Crossings of the 200-day average | 24 |
| Falls of 10% or more from a 20-day high | 50 |
How QLD behaved
QLD returned 254.26% as a fund with annualized volatility of 44.77% and a CAGR of 24.65%. The deepest drawdown was 63.68% from 2021-11-19 to 2022-12-28, recovered on 2024-05-28, and the longest was 630 sessions. QLD finished higher on 54.26% of days. Gains on those days averaged 2.02%, losses on the others averaged -2.15%, and the typical daily range was 3.14%.
Beta to SPY was 2.57 and to QQQ was 2.0, with correlations of 0.94 and 1.0. Over the window QQQ returned 151.07% in total. Twice that would be 302.14%, a daily-rebalanced ideal would be 373.18%, and QLD returned 254.26%. Falls of 10% from a 20-day high showed up 50 times, covering 309 days, while the fund held above the 200-day line for 72.29% of sessions.
Applied to other leveraged funds the filter gave 24.95% on TQQQ, 23.44% on SOXL, 17.99% on ROM, 12.4% on SSO, 11.53% on TECL and 10.54% on SPUU. It lost money on FAS at -2.74%, UST at -6.68% and TMF at -10.5%. On TQQQ the drawdown was 36.54%, and on SOXL it was 76.74%.
Within QLD, the RSI(2) snapback returned 26.17% with a 29.52% drawdown and the weekly 7% target 25.62%. The momentum breakout returned 22.49% with the shallowest drawdown at 20.1%. Lower down, the monthly cycle earned 20.58% but suffered a 65.05% drawdown, and the EMA 12/26 trend earned 10.85%. The page of all strategies on QLD ranks the twelve and the 200-day regime hub lists the other funds.
Everything here comes from a 5.7-year window, with daily decisions, no margin and no fees in the headline run. Trade-list prices are adjusted for splits and dividends. The results are hypothetical.
Overbought readings, overnight returns and the 2x ratio
RSI(14) closed above 70 on 130 sessions and below 30 on 18. The filter has no overbought exit, so it stayed long through every one of those 130 readings, and it exits only when the close slips under the average. After the 18 oversold readings the median 5-day return was 6.11%, against a baseline of 0.94%, and the median 20-day return was 3.83%, against 2.81%. RSI(2) below 10 appeared on 151 sessions with medians of 1.18% and 3.48%. The filter was flat for all of 2022 after January, so it collected none of the rebounds that followed, such as +14.69% on 2022-11-10 and +9.15% on 2022-11-30.
The overnight gap carried 64.09% of QLD's log return and the session carried 35.91%. The rule buys at the open, after the overnight move that follows a signal close.
The 2x ratio changed across years. QQQ returned 54.81% in 2023 and QLD 117.25%, above twice the underlying at 109.61%. In 2024 QQQ returned 25.59% and QLD 42.83%, below twice at 51.18%. In 2025 QQQ returned 20.77% and QLD 30.28%, against 41.54% for the simple multiple. The decay gap was -8.36 points in 2024 and -11.26 points in 2025, which shows the compounding drag of a leveraged fund in choppy years. In a window that included both trending and choppy stretches, the rule held the fund for 62.3% of sessions and took the trending part of each.
The rules
Own the asset when price closes above its 200-day average; hold cash when it closes below.
- WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND yesterday's close < SMA(200) · THEN sell the whole position
One rule and one number. Price above the 200-day moving average has historically coincided with better returns and lower volatility than price below it. This template uses no crossovers and no oscillators, only which side of the long-term average the price is on.
Good for: a first systematic strategy, simple enough to audit every trade.
Watch out: price whips around the 200-day line during volatile bottoms, generating clusters of buy-sell pairs. Some traders add a small buffer band to reduce churn.
The rule, and what the first nine months looked like
The rule has two lines. Entry: with no position, and the prior close above the 200-day simple average, the rule buys at the open using 98% of the sleeve. Exit: while holding, a prior close under that average triggers a sale of the entire position at the open. There is no stop, no target and no buffer around the line. The template notes call it a first systematic strategy, simple enough to audit every trade, and they warn that price whips around the line during volatile bottoms and generates clusters of buy and sell pairs.
The monthly table starts with nine months of zeros. The rule made no entry until 2021-10-19, at $39.20. That timing fits a 200-day average that needs 200 sessions of history, with the window beginning on 2021-01-04, so the average only exists from around October. If so, 2021's 12.1% return comes from a position held for about the last two and a half months of the year, while holding earned 57.8% over the full year. Part of the 45.7-point gap in 2021 would then be warm-up and not a judgement by the rule.
The signal then ran for about five years. QLD sat over its 200-day line on 72.29% of sessions and crossed it 24 times. Because the rule needs a close on the other side to act, each crossing can lead to a trade, and 13 positions were opened over the window, 12 of them closed.
Moving average length
Three other averages were tested. A 100-day average returned 17.44% with a 34.98% drawdown, 26 trades and 12 wins, ending at $25,169. A 150-day average returned 15.63% with a 34.38% drawdown, 19 trades and 8 wins, ending at $23,023. A 250-day average returned 17.47% with a 36.91% drawdown, 9 trades and 3 wins, ending at $25,208.
The published 200-day length returned the highest CAGR and the shallowest drawdown of the four, 21.57% and 28.75%. The alternatives clustered at 15.63% to 17.47%. That makes 200 days a good choice on this fund in this window, and it also means the choice carries some luck, since neighbouring lengths did several points worse. The 250-day average made the fewest trades, 9, and won only 3 of them. A longer average reacts later and waits for more evidence, and its drawdown was the deepest of the four. All four versions finished below holding's $33,676.
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 200-day regime filter beat buy-and-hold on QLD?
Over 2021-01-04 to 2026-10-02, 200-day regime filter on QLD returned 21.6% annualized vs 23.6% for buy-and-hold: it trailed buy-and-hold by 2.0% per year, with a maximum drawdown 34.1 points shallower than holding (28.8% vs 62.8%).
How many trades did it make?
12 completed round trips over 5.7 years (25 fills), with 42% of round trips closing profitably.
Why the 200-day average specifically?
It approximates a year of trading days and has been studied across decades of data. It is not the best window for every asset. The per-ETF backtests here show where it helped and where it didn't.
Did the 200-day filter beat buy-and-hold on QLD?
On return it did not. The filter compounded at 21.57% a year against 23.55% for holding and ended at $30,694 against $33,676. Its maximum drawdown was 28.75% against 62.82%, and its Sharpe ratio was 0.84 against 0.72.
How many trades did the 200-day filter make on QLD?
It closed 12 trades and had one open at the end. Five won, a win rate of 42%. The average winner returned 24.98% and the average loser returned -4.36%.
Why does 2021 look so weak for the rule?
The rule made no trade until 2021-10-19, which fits a 200-day average needing 200 sessions of data after the window starts on 2021-01-04. It returned 12.1% for the year against 57.8% for holding.
What was the best trade?
The entry on 2023-10-31 at $27.68, sold on 2024-08-06 at $41.02, a gain of 48.19% over 280 days. The second best was 31.35% from 2025-05-13 to 2026-03-13.
Is a different moving average length better on QLD?
Not in this window. A 100-day average returned 17.44%, 150-day 15.63% and 250-day 17.47%, all below the 200-day figure of 21.57%. Each is a single test.
What happened in 2022?
The rule lost 13.3% against 59.7% for holding. It exited on 2022-01-20 and stayed in cash through the rest of the year, so it avoided most of the fund's 60.54% fall.
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.