SMA-200 Trend + 15% Trailing Stop on SOXL
Direxion Daily Semiconductor Bull 3X Shares: 3x daily leveraged semiconductors, one of the more volatile ETFs listed. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
SOXL is Direxion's 3x daily semiconductor fund, and its annualized volatility over the window was 113.25%. The trend rule with a 15% trailing stop bought it when the prior close was above the 200-day average and sold when the price fell 15% from the highest level since entry. From 2021-01-04 to 2026-10-02 that rule grew $10,000 to $25,636, a CAGR of 17.82%, with a maximum drawdown of 81.96% and a Sharpe ratio of 0.59.
Buy-and-hold on SOXL did far better on return and worse on risk: $52,126 at the end, a CAGR of 33.32%, a drawdown of 89.62% and a Sharpe ratio of 0.82. The rule trailed on return by a wide margin and was shallower on the worst drawdown by only a little. It beat holding in three calendar years, 2022, 2024 and 2025, and lost to it in the three years of strongest gains.
The rule's most visible trait is how often it traded. It made 97 closed round trips plus one position still open at the end, with 195 fills and an average hold of 10.1 days. The strategy page describes the 15% trail as wide enough to survive normal corrections. That width is generous in percent terms, but SOXL's average daily range was 7.77%, and the trade list shows how often it was reached. The rule is described on the trend with a trailing stop page, and the fund on its SOXL page. The window is 5.74 years, with no fees in the headline run.
Year by year
| Year | trend + trailing stop | buy & hold |
|---|---|---|
| 2021 | 25.2% | 119.0% |
| 2022 | −46.5% | −84.8% |
| 2023 | 47.7% | 211.2% |
| 2024 | 5.4% | −12.1% |
| 2025 | 66.9% | 53.6% |
| 2026 | 47.3% | 285.2% |
Year by year against holding SOXL
The rule returned 25.2% in 2021, -46.5% in 2022, 47.7% in 2023, 5.4% in 2024, 66.9% in 2025 and 47.3% in 2026 to date. Holding returned 119%, -84.8%, 211.2%, -12.1%, 53.6% and 285.2%. The rule trailed in 2021, 2023 and 2026 by margins of 93.8, 163.5 and 237.9 points, and led in 2022, 2024 and 2025.
2021 started late. The rule needs the prior close above the 200-day average, and the months from January to September are all zeros. Its first trade was the entry on 2021-10-19 at an adjusted $41.54, sold on 2021-11-23 at $59.738 for 43.81% over 35 days. October returned 10.83% and November 32.82%. December lost 14.97%. The year had 5 round trips and 1 win, so after the first trade the rule lost on the other four. Holding returned 119% while the rule, out of the fund for nine months, returned 25.2%.
2022 is where the rule's design worked as intended, though not cleanly. SOXL lost 84.8% as a holding and 85.64% on the profile. The rule lost 46.5%. All of that came in January and February: January 2022 returned -35.8% and February -16.62%. The first loser was the entry on 2022-01-07 at $63.81, sold on 2022-01-10 at $54.451 for -14.67% in 3 days. After February the rule made no further entries in 2022, and March through December are zeros. There were 7 round trips in 2022 and 1 win. The 200-day entry filter did the work of avoiding the rest of the fall, and the rule lost less than the fund did.
2023 returned 47.7% against 211.2% for holding, the second-widest gap in the table. The rule made 17 round trips and won 7. February returned -1.4% and March 12.09%. April lost 20.54%, May gained 44.84%, June 10.54% and July 11.14%. Then three losing months ran in a row, August at -15.22%, September at -16.74% and October at -14.27%, before November returned 13.56% and December 37.5%. The best trade of the year was the entry on 2023-05-01 at $14.18, sold on 2023-06-01 at $20.6465 for 45.6% over 31 days. The rule was invested through the recovery but was shaken out by every 15% setback along the way, and each re-entry came after a rise.
2024 returned 5.4% against -12.1%. The rule had 17 round trips and 9 wins, the best win count of any year. January returned 4.11%, February 32.43%, March 9.62%, April -16.57%, May 19.32%, June 9.54%, July -23.63% and August -16.26%. From September 2024 to May 2025 every month is zero, nine months in cash. Holding lost 12.1% over 2024 while the rule gained 5.4%.
2025 returned 66.9% against 53.6%, so the rule beat holding in a year of strong gains. It entered the market in June, and June 2025 returned -1.12%, July -3.14% and August 11.11%. September returned 34.16%, anchored by the entry on 2025-09-02 at $23.89, sold on 2025-10-10 at $36.839 for 54.2% over 38 days. October returned 26.46%, November -0.87% and December -6.76%. The year had 12 round trips and 4 wins. The fund's best day of the window was 55.98% on 2025-04-09 and its worst days of 2025 included -29.79% on 2025-04-03 and -25.07% on 2025-04-10. The rule was in cash for those days, since its monthly returns for April and May 2025 are zero.
2026 is a partial year with 39 round trips, 12 of them wins, more trades than any other year. The rule returned 47.3% against 285.2% for holding. January returned 44.65%, February -4.25% and March -29.43%. April returned 153.35%, the best month in the run, on the entry of 2026-04-01 at $49.94 sold on 2026-04-28 at $108.68 for 117.62% over 27 days, the best trade, and a second entry on 2026-04-28 at $107.34 sold on 2026-05-12 at $162.486 for 51.38%. May returned 65.22%. Then June returned -31.44% and July -62.3%, the worst month of the run. August returned -3.83%, September 30.85% and October so far 10.71%. The last entry, on 2026-09-14 at $100.82, was still open when the data ends, marked at a gain of 62.42%.
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% | 10.8% | 32.8% | −15.0% |
| 2022 | −35.8% | −16.6% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 0.0% | −1.4% | 12.1% | −20.5% | 44.8% | 10.5% | 11.1% | −15.2% | −16.7% | −14.3% | 13.6% | 37.5% |
| 2024 | 4.1% | 32.4% | 9.6% | −16.6% | 19.3% | 9.5% | −23.6% | −16.3% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2025 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −1.1% | −3.1% | 11.1% | 34.2% | 26.5% | −0.9% | −6.8% |
| 2026 | 44.6% | −4.3% | −29.4% | 153.3% | 65.2% | −31.4% | −62.3% | −3.8% | 30.9% | 10.7% | – | – |
What the monthly table shows
The table is a series of extremes. Of the months with a position, the rule's best were April 2026 at 153.35%, May 2026 at 65.22%, May 2023 at 44.84%, January 2026 at 44.65% and December 2023 at 37.5%. The worst were July 2026 at -62.3%, January 2022 at -35.8%, June 2026 at -31.44%, March 2026 at -29.43% and July 2024 at -23.63%. A holder's best month was April 2026 (162.61%) and the worst was July 2026 (-56.9%).
July 2026 is a month to look at. The rule lost 62.3% against 56.9% for holding, so it did worse than the fund it was meant to protect. The trade list explains why. Two of the five worst trades fall in that month: the entry on 2026-07-06 at $194.74 was sold on 2026-07-07 at $165.29 for -15.12% in 1 day, and the entry on 2026-07-16 at $152.28 was sold on 2026-07-17 at $124.61 for -18.17% in 1 day, the worst trade of the run. Each time the price had closed above the 200-day average, so the rule bought, and each time the fund dropped through the stop within a day. The caveat on the strategy page says exactly this: on choppy assets the rule re-enters above the 200-day repeatedly after each stop-out.
The monthly calendar of the fund averages May at 33.67%, November at 24.84%, January at 12.81% and June at 12.41%, with August at -8.44% and March at -4.43%. Those come from five or six readings a month, in a fund that moved by hundreds of percent in a year, and they say little about the future. The rule's own months follow some of the pattern: May 2023 at 44.84% and May 2026 at 65.22% were two of its best.
Zeros mark the rule's cash periods: January to September 2021, March to December 2022, January 2023, September 2024 to May 2025. Those stretches explain why exposure was 47.1%.
Every trade
trend + trailing stop on SOXL made 97 closed round trips and one position still open at the end of the test, an average hold of 10 days, an average winner of 22.00%, an average loser of −8.65%, a profit factor of 1.05, a longest losing streak of 7. It held a position at the close on 47.1% of trading days.
Best 10 round trips
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2026-04-01 | $49.94 | 2026-04-28 | $108.68 | 117.6% | 27 |
| 2025-09-02 | $23.89 | 2025-10-10 | $36.84 | 54.2% | 38 |
| 2025-12-18 | $39.98 | 2026-01-30 | $61.14 | 52.9% | 43 |
| 2026-04-28 | $107.34 | 2026-05-12 | $162.49 | 51.4% | 14 |
| 2023-05-01 | $14.18 | 2023-06-01 | $20.65 | 45.6% | 31 |
| 2026-05-19 | $142.54 | 2026-05-27 | $206.13 | 44.6% | 8 |
| 2021-10-19 | $41.54 | 2021-11-23 | $59.74 | 43.8% | 35 |
| 2023-11-13 | $19.65 | 2024-01-02 | $27.44 | 39.6% | 50 |
| 2025-11-21 | $31.01 | 2025-12-12 | $42.55 | 37.2% | 21 |
| 2024-02-21 | $34.68 | 2024-03-11 | $46.22 | 33.3% | 19 |
Worst 10 round trips
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2026-07-16 | $152.28 | 2026-07-17 | $124.61 | −18.2% | 1 |
| 2026-07-06 | $194.74 | 2026-07-07 | $165.29 | −15.1% | 1 |
| 2022-01-07 | $63.81 | 2022-01-10 | $54.45 | −14.7% | 3 |
| 2025-12-15 | $42.92 | 2025-12-17 | $36.88 | −14.1% | 2 |
| 2026-06-25 | $265.13 | 2026-06-25 | $227.93 | −14.0% | 0 |
| 2026-07-27 | $139.92 | 2026-07-27 | $120.78 | −13.7% | 0 |
| 2026-08-19 | $131.47 | 2026-08-24 | $113.60 | −13.6% | 5 |
| 2026-03-27 | $48.42 | 2026-03-30 | $41.95 | −13.4% | 3 |
| 2024-07-17 | $57.43 | 2024-07-18 | $49.82 | −13.3% | 1 |
| 2022-01-20 | $50.54 | 2022-01-21 | $43.85 | −13.2% | 1 |
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 97 closed trades and the open one
Of 97 closed round trips, 34 won, a win rate of 35%. The average winner returned 22% and the average loser returned -8.65%, which gives a profit factor of 1.05. The median trade lost 4.48% over a median hold of 7 days. The average hold was 10.1 days, the longest was 50 days and the shortest was zero, a same-day exit. The best run of wins was 4 trades and the worst run of losses was 7.
A profit factor of 1.05 means that gross wins barely exceeded gross losses. Roughly a third of the trades paid for the other two-thirds, and the margin was thin. The five best trades were 117.62%, 54.2%, 52.93%, 51.38% and 45.6%. The five worst were -18.17%, -15.12%, -14.67%, -14.07% and -14.03%.
Losses larger than 15% are visible, since the stop sits 15% below the high-water mark and the fund can drop through a stop level within a session. The 18.17% loss over 1 day and the 15.12% loss over 1 day are both gaps beyond the nominal stop. The entry on 2026-06-25 at $265.13 was sold the same day at $227.9275 for -14.03% with a hold of 0 days.
Counting trades by the year they closed gives 5 trades with 1 win (2021), 7 with 1 (2022), 17 with 7 (2023), 17 with 9 (2024), 12 with 4 (2025) and 39 with 12 (2026). Trading was bunched in 2026, which had 39 round trips against 5, 7 and 12 in 2021, 2022 and 2025.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2026-06-03 | 2026-09-14 | −82.0% | 103 | not yet | – |
| 2021-11-19 | 2023-05-04 | −65.2% | 531 | 2024-03-06 | 307 |
| 2024-07-10 | 2025-07-31 | −50.4% | 386 | 2025-12-03 | 125 |
Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-10-14 and reached −89.6%.
The drawdowns
The deepest drawdown on the rule was 81.96%. The peak was on 2026-06-03, the low came 103 days later on 2026-09-14, and no recovery had occurred by the end of the data. The second was 65.15%, from 2021-11-19 to a low on 2023-05-04 after 531 days, recovered on 2024-03-06 after 307 more. The third was 50.42%, from 2024-07-10 to a low on 2025-07-31, recovered on 2025-12-03.
The first drawdown is very recent and very large. It fell from the June 2026 high through the losing months of June (-31.44%) and July (-62.3%). Its low on 2026-09-14 is the day of the last entry, the position still open at the end. The account is up since then, with September at 30.85% and October at 10.71% so far, and the open trade was marked at 62.42%.
Buy-and-hold had its own, larger events. The first, 89.62%, ran from 2021-12-27 to 2022-10-14 and was not recovered until 2026-02-25, 1,230 days after the low. A second was 69.27%, from 2026-06-22 to a low on 2026-07-29, still open at the end. A third was 43.04%, from 2026-02-25 to 2026-03-30, recovered in 10 days. The rule's worst drawdown of 81.96% was shallower than the holder's 89.62% by a modest margin. A rule with a 15% trailing stop is supposed to limit damage, and on SOXL it limited very little of the worst case. The reason is the same as in the trade list: the stop is wide relative to a fund that can move a third in a day, but narrow relative to its weekly swings, so it is hit often and protects little.
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) | 17.8% | −82.0% | $25,636 | 0.59 |
| 5 basis points | 15.9% | −82.5% | $23,286 | 0.56 |
| 10 basis points | 14.1% | −82.8% | $21,287 | 0.54 |
Cost runs
Charging 5 basis points per fill takes the CAGR to 15.86% and the end value to $23,286. At 10 basis points the CAGR was 14.06% and the end value was $21,287. The drawdown widened from 81.96% to 82.46% and 82.8%. The Sharpe ratio went from 0.59 to 0.565 and 0.543.
Costs matter far more here than on the slow rules, because the rule made 195 fills. Each basis point is paid 195 times. SOXL is heavily traded, at $2,243,524,454 on an average day and 101,544 shares in the median minute, which makes 5 and 10 basis points a fair assumption. The cost runs show the effect of trading often: the CAGR drops from 17.82% to 15.86% and then 14.06%. A trailing stop exits in a fast market, and real fills at those moments can be worse than the average assumption.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 17.8% | −82.0% | 97 | 35% | $25,636 |
| 10% trailing stop | 20.7% | −78.7% | 173 | 33% | $29,499 |
| 20% trailing stop | 13.4% | −85.6% | 56 | 39% | $20,593 |
| 25% trailing stop | 21.7% | −77.1% | 33 | 36% | $30,824 |
What the parameter variants show
Three trail widths were tested alongside the published 15%. A 10% trail returned 20.73% with a 78.74% drawdown over 173 trades, 57 wins, ending at $29,499 and a Sharpe of 0.617. A 20% trail returned 13.41% with an 85.6% drawdown over 56 trades, 22 wins, ending at $20,593. A 25% trail returned 21.66% with a 77.11% drawdown over 33 trades, 12 wins, ending at $30,824 and a Sharpe of 0.641.
The results do not line up in order. The tightest trail, 10%, and the widest, 25%, both beat the published 15%, which returned 17.82%, and the 20% trail returned the least. A smooth pattern would show that wider or narrower is better. A zigzag shows that the outcome depends on which specific rallies and drops each stop level happened to catch, and that is the usual sign of a result that rests on a few trades. The 25% trail made only 33 trades and still earned the highest Sharpe ratio of the group, and a single big winner such as the April 2026 run may account for much of it.
All four variants earned less than buy-and-hold's 33.32%, and all four had a drawdown near 80%. No trail width solved the problem of a very volatile fund. The published 15% was not the best on return, and a reader should treat the choice among these four as unsettled by this test.
How SOXL behaved
| Measure | SOXL |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 451.0% |
| Annualized volatility | 113.3% |
| Deepest drawdown | −90.5% (2021-12-27 to 2022-10-14) |
| Up days | 53.4% |
| Average daily range | 7.77% |
| Average overnight gap | 3.17% |
| Correlation to SPY | 0.80 |
| Correlation to QQQ | 0.87 |
| Correlation to TLT | 0.05 |
| Sessions above the 200-day average | 58.5% |
| Crossings of the 200-day average | 44 |
| Falls of 10% or more from a 20-day high | 102 |
How SOXL behaved
SOXL is a 3x daily leveraged fund on semiconductors, described in the data as one of the more volatile ETFs listed. Over the window it returned 450.98% in total, a CAGR of 34.61% on the profile numbers, with a maximum drawdown of 90.49%. Up days were 53.36% of sessions, averaging 5.31%, and down days averaged -5.29%. The average daily range was 7.77% and the average overnight gap was 3.17%.
The leverage table compares it with SOXX. SOXX returned 388.35% in total. Triple that is 1,165.05% as a plain multiple, and a daily-rebalanced ideal for the window would have been 854.1%. SOXL actually returned 450.98%, which is 714.07 percentage points below the simple multiple. The realized beta to SOXX was 2.97. The decay was uneven by year: in 2024 SOXX gained 13% while SOXL lost 12.33%, and in 2025 SOXX gained 40.68% against 54.98% for SOXL, a decay gap of -67.06 points. In a year like 2022, when SOXX fell 35.07%, SOXL fell 85.64%.
The fund's beta was 5.49 against SPY and 4.42 against QQQ, with correlations of 0.8 and 0.87. Price held above its 200-day average on 58.55% of sessions, and crossed it 44 times. That is a lot of crossings for a rule that buys on the first close above it. Falls of 10% or more from a 20-day high occurred 102 times and covered 769 days. Oversold RSI(14) readings were rare, 7 sessions, with a median 20-day return of 16.81% afterwards against 2.96% for all sessions.
Overnight log return was 261.62% and intraday log return was -94.21%, so every bit of the gain arrived in the gaps between a close and the next open. The rule buys at the open, so it takes the intraday leg of every day it holds, and that leg lost money for the fund as a whole in this window.
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 rule fits a 3x semiconductor fund
Entry buys 98% of the sleeve at the open when the previous close sat above the 200-day average. Once in, a managed stop trails 15% under the position's high-water mark, with no profit target. The strategy page lists the good case as long trends with moderate pullbacks. SOXL had long trends, and its pullbacks were rarely moderate.
The rule ranks 9th of 12 templates on SOXL and 4th of 59 funds for this strategy. The golden cross topped the list at 45.93% (drawdown 69.3%). Next came the RSI(2) snapback with 39.24%, the monthly cycle with 32.86%, the weekly 7% target with 29.47%, the EMA 12/26 trend with 26.2% and the 200-day regime filter with 23.44%. Ahead of this rule too were the momentum breakout at 19.06% and the SMA 10/50 trend at 18.19%. Only three finished lower: the 3-month momentum (16.43%), the dip buyer (16.42%) and the RSI mean reversion (14.43%).
The golden cross led the field on SOXL. This rule, with its 97 closed trades, sold into every correction and often bought back at a higher price.
Across leveraged funds the rule did best on TQQQ at 25.03% with a 43.94% drawdown. SOXL at 17.82% was second, ahead of QLD at 17.16%, ROM at 16.46%, TECL at 14.4%, SSO at 11.43% and SPUU at 11.01%. Three leveraged funds lost money: UST at -8.66%, FAS at -11.05% and TMF at -12.92%. SOXL had the deepest drawdown among the leveraged funds that made money, 81.96%. The median across all 59 funds was 2.61% and across leveraged funds 14.4%.
The test rests on one 5.74-year window, daily decisions filled on minute bars, no margin, and no fees in the headline run. The window had several very large moves in a short span, and the 97 trades show how a single month such as April 2026 or July 2026 can decide a year. The figures describe this window and do not forecast later 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 SOXL?
Over 2021-01-04 to 2026-10-02, trend + trailing stop on SOXL returned 17.8% annualized vs 33.3% for buy-and-hold: it trailed buy-and-hold by 15.5% per year, with a maximum drawdown 7.7 points shallower than holding (82.0% vs 89.6%).
How many trades did it make?
97 completed round trips over 5.7 years (195 fills), with 35% 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.
Did the trend plus trailing stop rule beat buy-and-hold on SOXL?
No. Over 2021-01-04 to 2026-10-02 the rule returned a CAGR of 17.82% and ended at $25,636, while buy-and-hold returned 33.32% and ended at $52,126. The rule's drawdown was 81.96% against 89.62%. It beat holding in 2022, 2024 and 2025.
How many trades did the rule make on SOXL?
Ninety-seven closed round trips and one open position at the end, with 195 fills. Thirty-four won, a 35% win rate. The average winner was 22% and the average loser was -8.65%.
Why did the 15% trailing stop not limit the drawdown?
SOXL's average daily range was 7.77%, so a 15% stop is hit within a couple of normal sessions, and the fund can gap through the level. The rule's drawdown of 81.96% was close to the fund's 89.62%. The 200-day filter kept it out of the market through most of 2022.
What was the best trade?
The entry on 2026-04-01 at an adjusted $49.94, sold on 2026-04-28 at $108.68 for 117.62% after 27 days. The worst was the entry on 2026-07-16 at $152.28, sold the next day at $124.61 for -18.17%.
Would a different trailing stop have worked better?
In this test a 10% trail returned 20.73% and a 25% trail returned 21.66%, while a 20% trail returned 13.41%. All were below buy-and-hold's 33.32%. The results are not ordered by width, which suggests they depend on a few trades.
How much do trading costs matter?
With 195 fills they matter a lot. At 5 basis points the CAGR is 15.86% and at 10 basis points it is 14.06%, against 17.82% with no costs. SOXL trades heavily, so the assumptions are reasonable, though real fills at stop-outs could be worse.
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.