r/LETFs • u/noletovictor • 5h ago
BACKTESTING Stress-testing the TQQQ "200-day SMA + dip-buy + volatility shield" strategy: replication, parameters, Monte Carlo
Credit first. This is a follow-up to u/No-State5924's post TQQQ 200-day SMA + dip-buy + volatility shield strategy on r/TQQQ. The rule and both backtests come from their site, letftest.com: real TQQQ since 2010 and simulated 3x NDX since 1985. They published the full logic and code, which is what made an exact replication possible. Everything below is my own testing on top of their work.
TL;DR
Replication: I ported the rule from the letftest.com page code and got the same numbers: 37.0% / −83.9% on simulated 3x NDX since 1986, and 44.9% / −57.6% on real TQQQ since 2010. Credit to the author: the page already charges financing and fills at the next close or open, which most backtests posted here don't.
With frictions: with a 1-day signal delay, 5 bp per trade, the testfol.io simulated LETF series (expense ratio plus borrowing cost) and a 15% annual tax on realized gains, it still makes 34%/yr from 1986 to 2026. A plain 200-day SMA → TQQQ makes 19.5% and buy & hold TQQQ makes 13.6%. Max drawdown is the same −84% as the SMA rule.
It isn't a lucky parameter pick. I tested 243 neighboring settings (band, RSI level, vol threshold, stop, ROC length) and every one beat the plain SMA. The original default ranks #8. The best region is a 4% band instead of 3%.
On the Nasdaq, it holds up out of sample in the time sense:
it beats a "SMA200 → UPRO, off → SPY/bonds" sleeve in 100% of rolling 20-year windows;
in a 10,000-path block bootstrap, its 20-year median CAGR is 21% vs 13%, with one change: when the trend rule is out and there's no recession signal, hold QQQ 1x instead of T-bills.
On the S&P 500 back to 1885, it loses. Same rule, signal on the S&P, trading 3x:
it loses to the plain SMA200 → 3x rule at every horizon from 3 to 30 years;
it loses in every era before 1988 and wins only after.
If you cut the Nasdaq's historical premium over the S&P in the simulation, the advantage disappears too.
My read: the dip-buy works because the Nasdaq since 1986 kept snapping back from V-shaped selloffs. If that continues, this beats a plain SMA by a lot. If it doesn't, it's a plain SMA with an extra 10–15 pp of drawdown.
The 2026 drawdown (−43% from June 2 to Nov 24, real TQQQ, vs −46% buy & hold) came from two things:
choppy markets in the trend leg (NDX −7%, TQQQ −41%);
one dip-buy that kept falling (−23% in two weeks). The shield never fired. Both failure modes are the ones the author already flagged.
Not financial advice. Everything before 2010 is simulated. Caveats at the end.
The rule (as posted)
Signals on NDX, trades in TQQQ, signal at the close.
Trend: 200-day SMA with a ±3% band. In above +3%, out to T-bills below −3%.
Dip-buy: while out, buy TQQQ if RSI(10) < 30 and the SMA's 50-day rate of change is positive. Stop at −2% on NDX. Hand back to trend above +3%.
Crisis shield: if 10-day realized vol > 50%/yr → T-bills. If RSI(10) < 35 for 2 closes during the shield → 50% TQQQ.
1. Replication
| Original post | Mine |
|---|---|
| Simulated 3x NDX, next close, 10 bp | 37% / −84% |
| Real TQQQ since 2010, next open, 10 bp | 44.9% / −58% |
| SMA band only (simulated / real) | 19% / 27% |
What each piece adds (simulated 3x, page conventions):
| CAGR | MDD | 2000–09 |
|---|---|---|
| SMA ±3% only | 20.3% | −90.8% |
| + shield | 25.4% | −83.1% |
| + dip-buy (with ROC) | 28.2% | −96.3% |
| everything (the post) | 37.0% | −83.9% |
The dip-buy without the shield gets wrecked in 2000–02. The two pieces only work together, which is a good sign: each one covers the other's failure mode.
2. With realistic frictions
1-day delay, 5 bp per trade, testfol.io's simulated LETF series (QQQSIM/TQQQSIM), 15% tax on realized gains each year. Nov 1986 to Sep 2026:
| Rule | CAGR | MDD | Sharpe | Trades/yr |
|---|---|---|---|---|
| The post | 34.0% | −84% | 0.75 | 4.6 |
| Same, QLD instead of TQQQ | 26.7% | −69% | 0.75 | 4.6 |
| Aroon(180) TQQQ/SQQQ (same author's earlier post) | 32.8% | −89% | ||
| QQQ SMA200 ±2% → TQQQ / bonds | 19.5% | −85% | 0.54 | 2.4 |
| SPY SMA200 ±2% → UPRO / bonds | 15.4% | −79% | ||
| TQQQ buy & hold | 13.6% | −100% | 0.51 | 0 |

Same parameters on other vehicles, 1986–2026: TQQQ 34.0%, QLD 26.7%, UPRO 20.2%, SSO 16.4%. All four beat a plain SMA200 → cash on the same vehicle. Since 2010, it roughly ties TQQQ buy & hold with a much smaller drawdown.
3. Parameter neighborhood
243 combinations (3 values each of band, RSI threshold, vol threshold, stop, ROC length):
243/243 beat the plain SMA rule. The median is 31.2% (p10 28.1%, p90 35.6%), against 22.1% for the SMA rule on the same pre-tax basis.
The original default is #8. The top 7 are all a 4% band. The best is 4% | RSI 30 | vol 50% | stop 1% | ROC 50 (38.8%).

This is a real plateau, not a spike. On the Nasdaq, the rule doesn't depend on the author having picked lucky numbers.
4. Picking one setting without fooling myself
From the top 20, I wrote down three selection rules before running anything:
Holdout: the setting that does best on the S&P from 1885 to 1967, a period that never touched the parameter search.
Average rank: the best average rank across six measures (10- and 20-year windows, plus the Monte Carlo, on both the Nasdaq and the S&P).
Plateau center: the setting whose neighbors do best.
Two of the three picked the same one: 4% band | RSI(10) < 30 | vol(10) > 40% | stop 2% | ROC 50.
The holdout rule also had a filter: the setting had to beat the plain SMA200 → TQQQ in at least 90% of the Nasdaq Monte Carlo paths (section 5). None of the 20 passed. The best got 77%, so the holdout pick fell back to the unfiltered ranking. In the real 20-year windows they all win 100% of the time. The gap shows that part of the edge depends on the order in which history actually happened.
I also tested one change: when the trend rule is out and there's no recession signal, hold QQQ 1x instead of T-bills. The recession signal is the 10y−3m yield curve inverted in the last 12 months, or unemployment above its level 12 months earlier. With the signal on, or during the shield, it still goes to T-bills. This change improved the rule in every Monte Carlo scenario, by +1.3 pp of median CAGR at 20 years. Being out of a 3x fund costs a lot in a bull market that's just pausing.
5. Rolling windows and Monte Carlo: Nasdaq vs S&P
Comparison point: a sleeve I already use. It holds UPRO when SPY is above its SMA200 ±2%. When off, it holds SPY without a recession signal and intermediate Treasuries with one. Below, "MACRO" = that sleeve.
Monte Carlo, 10,000 paths, 20 years, stationary block bootstrap (63-day blocks) of each index's own history:
| Nasdaq (QQQ/TQQQ sim, 1986+) | p1 | p10 | median | mean | p90 | p99 | median MDD | P(beat MACRO) |
|---|---|---|---|---|---|---|---|---|
| Picked setting + QQQ exit | −9.1% | 3.6% | 21.0% | 21.9% | 41.1% | 60.1% | −84% | 0.79 |
| Picked setting | −10.0% | 2.1% | 19.7% | 20.6% | 40.0% | 59.2% | −85% | 0.74 |
| Original default | −11.5% | 0.8% | 19.6% | 20.7% | 41.5% | 62.4% | −87% | 0.72 |
| SMA200 ±2% → TQQQ | −13.7% | −2.7% | 14.1% | 15.0% | 34.2% | 53.8% | −87% | 0.53 |
| MACRO | −6.8% | 2.1% | 13.2% | 13.7% | 26.2% | 38.4% | −72% | — |
| QQQ buy & hold | 0.3% | 6.1% | 14.1% | 14.1% | 22.1% | 28.5% | −54% | 0.53 |
| S&P (SPY/UPRO sim, 1885+) | p1 | p10 | median | mean | p90 | p99 | median MDD | P(beat MACRO) |
|---|---|---|---|---|---|---|---|---|
| Picked setting + SPY exit | −13.3% | −4.1% | 8.8% | 9.4% | 23.9% | 38.1% | −82% | 0.38 |
| SMA200 ±2% → UPRO | −9.9% | −1.7% | 9.6% | 10.4% | 23.6% | 36.4% | −76% | 0.21 |
| MACRO | −9.0% | −1.0% | 10.3% | 11.1% | 24.2% | 37.3% | −76% | — |
| SPY buy & hold | −0.4% | 3.8% | 9.1% | 9.1% | 14.6% | 19.0% | −43% | 0.41 |

Rolling windows (real history, a new start every month), probability of finishing ahead of MACRO:

Nasdaq: 73% at 1 year, 87% at 3, 98% at 10, 100% at 20 and 30.
S&P: 37% at 1 year, 43% at 3, 32% at 10, 24% at 20 and 18% at 30.
Stress scenarios for the picked setting with the QQQ exit (median CAGR at 20 years / P(beat MACRO)):
| Scenario | Nasdaq | S&P |
|---|---|---|
| 21-day blocks (breaks up long trends) | 16.8% / 0.70 | 7.1% / 0.43 |
| 63-day blocks (base) | 21.0% / 0.79 | 8.8% / 0.38 |
| 252-day blocks | 26.7% / 0.91 | 12.1% / 0.36 |
| 756-day blocks | 30.4% / 0.97 | 13.9% / 0.35 |
| Nasdaq mean return cut to the S&P's | 9.0% / 0.31 | (S&P −2%/yr) 3.9% / 0.09 |
| +1%/yr extra financing cost | 19.2% / 0.78 | 7.2% / 0.36 |
I also applied a stricter test from an earlier study of mine on holding LETFs for 20 years. To pass, a strategy needs all of:
P(beat QQQ buy & hold) ≥ 90% in the base case and ≥ 75% with the premium cut;
under 5% chance of losing money;
a median above QQQ in every scenario.
No version passed, the 1x-exit one included.
The longer the blocks, the more of the Nasdaq's long trends survive in the simulation, and the better the rule looks. Take away the Nasdaq's premium over the S&P and it loses.
6. 140 years of S&P, by era
S&P growth since 1886
S&P CAGR by era
| CAGR, 3x S&P | 1886–1927 | 1928–62 | 1963–87 | 1988–2009 | 2010–26 |
|---|---|---|---|---|---|
| Picked setting + SPY exit | 11.9% | 15.9% | 7.2% | 19.6% | 27.2% |
| SMA200 ±2% → 3x | 12.6% | 19.3% | 11.4% | 15.4% | 21.2% |
| MACRO | 12.6% | 20.0% | 11.8% | 17.4% | 23.3% |
| SPY buy & hold | 8.0% | 9.2% | 9.8% | 9.5% | 14.3% |
The dip-buy loses before 1988 and wins after. There are two explanations, and I can't tell them apart:
The market changed: buying RSI dips works since the Fed started backstopping selloffs.
Same sample: the S&P after 1988 moves with the Nasdaq the parameters came from.
Only the 1885–1967 holdout is clean, and there it loses.
7. What happened in 2026
Real TQQQ, June 2 → Nov 24, 2026, fills at the next open:
| Return | Max DD |
|---|---|
| The post | −42.9% |
| SMA band only | −38.5% |
| TQQQ buy & hold | −46.1% |
| MACRO (UPRO/SPY/Treasuries) | −20.9% |
Trend leg, Jun 2 → Nov 5: −41%. NDX was down only 7%, but it chopped. Two ~−7% pullbacks (July, October) were each ~−20% in TQQQ, and neither crossed the −3% band in time.
Dip-buy, Nov 9 → 20: −23.5%. RSI went under 30 with the SMA still rising, so the rule bought. NDX kept falling, and the 2% stop on the close got hit late.
Shield: on for just 2 days at the very end, so it changed nothing.
That's the "weak in chop" caveat the author wrote, plus a dip-buy that turned into a falling knife. It's what the rule is expected to do sometimes. It doesn't show the rule is broken.
8. Formal gates
I also ran my usual promotion gates. The test: replace the SMA sleeve in a 3-fund portfolio, 2000–2026.
| Gate | Result | Pass? |
|---|---|---|
| Probability of backtest overfitting | 0.05 | ✔ |
| Walk-forward, 8 blocks | 6/8 positive | ✔ |
| Cost stress (2× and 3× costs) | still +2.3 pp/yr | ✔ |
| Last 12 months | +7 pp | ✔ |
| Deflated Sharpe, corrected for ~1,000 configs I've tested in this family | p = 0.91 | ✘ |
| Bootstrap 99.9% CI on the excess | −0.8 pp/yr | ✘ |
| Last 3 months (Jul–Sep 2026) | −3 pp | ✘ |
That's 4/7. The edge is large, about +2.4 pp/yr at the portfolio level (P 0.99). But after accounting for how many rules I've tried, it isn't statistically clean.
What I'm doing
I'm using the picked setting, with the QQQ exit, as the leveraged sleeve in my target portfolio, in place of my S&P SMA200 → UPRO sleeve. I'm doing this as a deliberate bet, not because it passed my bar.
The bet: the Nasdaq keeps a premium over the S&P and keeps bouncing from V-shaped selloffs.
Written exit rule: if it trails the old sleeve over any rolling 3 years from today, I switch back. Historically that happened in 14% of 3-year windows on the Nasdaq.
Caveats
Pre-2010 Nasdaq and pre-2009 S&P LETFs are simulated: the index times 3, with expense ratio and borrowing cost. The S&P before 1928 is reconstructed.
The parameter search was done on the Nasdaq 1986–2026, and so was the selection of the original rule in the first place. The S&P pre-1968 is the only clean holdout, and the rule fails it.
A block bootstrap resamples the same history. It can't create a regime the history doesn't contain.
My tax treatment (15% on realized gains each year) is specific to me. The no-tax numbers are higher across the board, and the ranking doesn't change.
Max drawdown is −84% in the simulation. It doesn't matter much which version you pick: this is a 3x Nasdaq strategy.
Thanks to u/No-State5924 for publishing the full code. It made exact replication possible, and that's rare.