Learn › Strategies › 200-Day SMA Regime Filter › SOXL

200-Day SMA Regime Filter 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.

Result: 200-day regime filter on SOXL turned $10,000 into $33,501 (235.0% total, 23.4% CAGR): it trailed buy-and-hold by 9.9% per year, with a maximum drawdown 12.9 points shallower than holding (76.7% vs 89.6%).

The 200-day regime filter on SOXL turned $10,000 into $33,501 between 2021-01-04 and 2026-10-02, a CAGR of 23.44% with a maximum drawdown of 76.74% and a Sharpe ratio of 0.66. Holding SOXL ended at $52,126, a CAGR of 33.32% with a drawdown of 89.62% and a Sharpe of 0.82. The rule earned less and drew down less, and both figures sit at levels that few investors would sit through.

SOXL is the Direxion Daily Semiconductor Bull 3X Shares fund, three times daily leveraged semiconductors and one of the more volatile funds in the library. Its annualized volatility was 113.25% over the window. The filter buys when yesterday's close is above the 200-day average and sells when it is below, and it held a position on 50.4% of trading days.

The record has 22 closed round trips, 8 of them winners, for a win rate of 36%. Winners averaged 40.89% and losers -9.5%, and the profit factor was 1.62. A few long holds made the whole result, and a handful of one-day whipsaws cost a lot. The test is one window with charges no fees in the headline run, and none of it is a forecast.

23.4%CAGR
33.3%buy & hold CAGR
−76.7%max drawdown
0.66Sharpe ratio
22round trips
36%win rate
■ 200-day regime filter   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Year200-day regime filterbuy & hold
202157.2%119.0%
2022−38.7%−84.8%
202325.2%211.2%
2024−9.8%−12.1%
202552.5%53.6%
2026101.8%285.2%

Year-by-year returns against the fund

The strategy returned 57.2% in 2021, -38.7% in 2022, 25.2% in 2023, -9.8% in 2024, 52.5% in 2025 and 101.8% so far in 2026. Buy-and-hold returned 119%, -84.8%, 211.2%, -12.1%, 53.6% and 285.2%. The rule was ahead in 2022 and 2024 and behind in the other four years.

2021 shows the cost of waiting. The rule did not buy until 2021-10-19, at $41.54, so nine months of the year were in cash. It still made 57.2%, from a position held for 94 days that closed at $43.79 on 2022-01-21 for 5.42%, plus the strong November. Buy-and-hold made 119%.

2022 is where it earned its margin. The fund lost 84.8% in the run and the strategy 38.7%, a gap of 46.1 points. The loss came from the first weeks of the year, when January lost 33.04% and February 8.45%, and from two one-day trades on 2022-02-03 and 2022-02-10. From March to December 2022 the account held cash and recorded 0% for ten months. The filter's use is easiest to see there: it had sold at the start of the long fall.

2023 is the year it fell furthest behind, 25.2% against 211.2%. The rule re-entered only in late January 2023 and then made 10 round trips in the year, 3 of them wins. February to May were whipsaws, with trades of -19.07%, 4.5%, -6.45%, -7.03% and -5.64%, and the long winner that started on 2023-05-08 at $14.24 and ended on 2023-09-22 at $17.55 made 23.24%. The 2023-11-13 entry at $19.65 started the trade that carried the next year.

2024 was a small win, -9.8% against -12.1%. The 261-day trade from 2023-11-13 closed on 2024-07-31 at $41.73 for 112.37%, and the next day the rule bought again at $41.84 and sold on 2024-08-02 at $29.78 for -28.82%, the worst trade in the record. The 2025 result of 52.5% against 53.6% was close to the fund's, with the 271-day trade from 2025-07-03 at $26.55 to 2026-03-31 at $43.22 making 62.79%.

2026 is partial and extreme. The strategy returned 101.8% and the fund 285.2%. April 2026 gave 151.02% for the strategy and 162.61% for the fund, the best month in both. The strategy then lost 64.31% in July 2026.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%10.8%34.9%5.2%
2022−33.0%−8.4%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
2023−1.0%−13.8%14.4%−24.9%36.3%17.7%14.2%−16.0%−27.0%−2.6%13.5%37.4%
20242.1%33.0%8.7%−17.9%27.1%14.2%−23.5%−32.9%0.0%0.0%0.0%0.0%
20250.0%0.0%0.0%0.0%0.0%−1.1%−7.6%4.2%33.2%36.3%−13.3%1.7%
202646.4%1.6%−30.8%151.0%75.8%19.0%−64.3%−1.5%−4.0%10.7%––

The monthly record

The monthly table has long zero runs. The strategy had no position from January to September 2021, from March to December 2022 and from September 2024 to May 2025. The table is a record of a rule that sits out falling markets entirely, and for most of those stretches the fund fell.

The best month was April 2026 at 151.02%, followed by May 2026 at 75.78% and January 2026 at 46.37%. The worst was July 2026 at -64.31%, then January 2022 at -33.04%, August 2024 at -32.93% and March 2026 at -30.81%. Buy-and-hold had its best month in April 2026 at 162.61% and its worst in July 2026 at -56.9%.

July 2026 is the hardest month to read. The strategy was holding the trade from 2026-04-01 at $49.94 and sold on 2026-07-30 at $107.71 for 115.68%, so the trade ended as the best in the record. The month itself lost 64.31%, because the account had grown so much during April, May and June that the July fall took a large dollar amount. The fund's worst day, 2026-06-05, lost 30.71%, and one of its best days, 25.07%, came on 2026-07-30.

Six months across 2023 and 2024 show losses of more than 15%: April 2023 at -24.92%, August 2023 at -16.01%, September 2023 at -27.01%, April 2024 at -17.91%, July 2024 at -23.52% and August 2024 at -32.93%. A 3x fund under a trend filter can lose a quarter of its value in a month while still above its 200-day average, because the filter only reacts to the close against a slow average.

SOXL's calendar-month averages were highest in May at 33.67% and November at 24.84%, and lowest in August at -8.44%. Each figure rests on only five or six years.

Every trade

200-day regime filter on SOXL made 22 closed round trips and one position still open at the end of the test, an average hold of 48 days, an average winner of 40.89%, an average loser of −9.50%, a profit factor of 1.62, a longest losing streak of 4. It held a position at the close on 50.4% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-19$41.542022-01-21$43.795.4%94
2022-02-03$44.242022-02-04$40.81−7.8%1
2022-02-10$46.172022-02-11$45.73−0.9%1
2023-01-27$14.232023-01-30$14.09−1.0%3
2023-02-02$16.992023-02-22$13.75−19.1%20
2023-02-24$14.012023-02-27$14.644.5%3
2023-02-28$14.112023-03-13$13.20−6.5%13
2023-03-15$14.372023-04-26$13.36−7.0%42
2023-05-01$14.182023-05-05$13.38−5.6%4
2023-05-08$14.242023-09-22$17.5523.2%137
2023-09-26$17.492023-09-27$17.41−0.5%1
2023-09-29$19.082023-10-04$17.89−6.2%5
2023-10-05$18.422023-10-19$18.590.9%14
2023-11-13$19.652024-07-31$41.73112.4%261
2024-08-01$41.842024-08-02$29.78−28.8%1
2024-08-16$37.662024-08-23$38.492.2%7
2024-08-26$39.282024-08-27$35.85−8.7%1
2025-06-27$25.292025-07-02$24.55−2.9%5
2025-07-03$26.552026-03-31$43.2262.8%271
2026-04-01$49.942026-07-30$107.71115.7%120
2026-07-31$130.812026-09-02$104.10−20.4%33
2026-09-08$126.112026-09-15$104.05−17.5%7
2026-09-18$117.38open–39.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 22 round trips

The rule made 22 closed round trips plus one open position, with 45 fills. It won 8 and lost 14. The longest win streak was 2 and the longest loss streak 4. The median return was -0.98%, the median hold 7 days and the longest hold 271 days. The average hold was 47.5 days, which hides a split between many short trades and a few very long ones.

Four trades made the result. The 2026-04-01 entry at $49.94 sold on 2026-07-30 at $107.71 for 115.68% over 120 days. The 2023-11-13 entry at $19.65 sold on 2024-07-31 at $41.73 for 112.37% over 261 days. The 2025-07-03 entry at $26.55 sold on 2026-03-31 at $43.22 for 62.79% over 271 days, and the 2023-05-08 entry at $14.24 sold on 2023-09-22 at $17.55 for 23.24% over 137 days. The fifth best, 5.42%, is a long way behind.

The losers were fast. The worst five were -28.82% on 2024-08-01, -20.42% from 2026-07-31 to 2026-09-02, -19.07% from 2023-02-02 to 2023-02-22, -17.49% from 2026-09-08 to 2026-09-15 and -8.73% on 2024-08-26. Two of them lasted a single day. A filter that tests the close against a slow average on a fund that moves 7.77% on an average day, and 30% on a bad one, can buy at a close above the line and be below it a day later.

That is the profit-factor story. A win rate of 36% and an average loser of -9.5% would lose money without winners that average 40.89%. The record needs the long trends. Take away the four big winners and the result would be negative, and the test cannot say whether four trends in 5.74 years is typical.

An open position was bought on 2026-09-18 at $117.38 and was marked at 39.5% on the last close. Trade prices are adjusted, so they read lower than the original quotes. By exit year the round trips were 3 in 2022 with 1 win, 10 in 2023 with 3, 4 in 2024 with 2, 1 in 2025 with 0 and 4 in 2026 with 2.

August 2024 and the one-day trades

The longest winner and the worst loser sit one day apart. The 261-day position from 2023-11-13 sold on 2024-07-31 at 41.73 after the close slipped under the average. On 2024-08-01 the rule bought at 41.84, and on 2024-08-02 it sold at 29.78, a loss of 28.82% in a single session. A 7-day trade from 2024-08-16 made 2.2%, then the rule bought on 2024-08-26 at 39.28 and sold the next day at 35.85 for -8.73%. August 2024 closed at -32.93% for the sleeve, and after the 2024-08-27 exit the rule stayed in cash until 2025-06-27.

The fast reversal happened because yesterday's close above the line is the whole entry test. After a long run the fund can close back over the average on a bounce day and fall through it again at the next close. A 3x fund with a 7.77% average daily range makes that kind of round trip cost a quarter of the position. The two single-day trades of February 2022 lost 7.75% and 0.95%.

The cash that followed is also part of the result. From September 2024 to May 2025 the sleeve earned 0%, and the short trade from 2025-06-27 to 2025-07-02 lost 2.93%. The fund itself lost 12.33% in calendar 2024 and gained 54.98% in 2025, while the sleeve returned -9.8% and 52.5%. The 2025-07-03 entry at 26.55 then held through to 2026-03-31, which is where most of the 2025 and early 2026 gain came from.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2026-06-222026-09-14−76.7%84not yet–
2024-07-102025-08-06−63.6%3922026-01-28175
2021-12-272023-05-09−62.1%4982024-03-01297

Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-10-14 and reached −89.6%.

Drawdowns

The strategy's deepest drawdown ran from 2026-06-22 to 2026-09-14 and reached 76.74%, taking 84 days. The account was still below that peak when the data ended. The second ran from 2024-07-10 to 2025-08-06 for 63.65% and recovered on 2026-01-28. The third ran from 2021-12-27 to 2023-05-09 for 62.06% and recovered on 2024-03-01.

Buy-and-hold had an 89.62% drawdown from 2021-12-27 to 2022-10-14, which took 1,230 days to recover, on 2026-02-25. It then had a 69.27% fall from 2026-06-22 to 2026-07-29 with no recovery, and a 43.04% fall in early 2026.

The strategy's largest drawdown is the newest one, and it came after the strongest run. The account peaked on 2026-06-22 after a strong first half of 2026 and then gave back 76.74% in 84 days. The sell on 2026-07-30 was followed by two re-entries, on 2026-07-31 and 2026-09-08, that lost 20.42% and 17.49%.

The earlier drawdowns of 62.06% and 63.65% also came while the rule was in the fund. The rule stood aside from March 2022, and the drawdown of 62.06% still included the weeks of January 2022 and the whipsaws of 2023. A trend filter on a leveraged fund reduces the depth of the worst bear market and still leaves drawdowns that most accounts could not carry.

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)23.4%−76.7%$33,5010.66
5 basis points22.9%−76.8%$32,7380.66
10 basis points22.4%−76.9%$31,9890.65

Trading costs

With 45 fills, the cost runs have a small effect. At 5 basis points of slippage per fill the CAGR was 22.94%, the maximum drawdown 76.8% and the final value $32,738. At 10 basis points the CAGR was 22.45%, the drawdown 76.86% and the final value $31,989. The Sharpe ratio moved from 0.66 to 0.655 and 0.65.

The charge is small against moves of 40% on a winner. SOXL is liquid, with an average daily dollar volume of 2,243,524,454 and a median minute volume of 101,543.5 shares, so a small account would fill with little impact. The cost model does not capture the cost of a one-day whipsaw that fills at the open after a gap, though, and the fund's average overnight gap was 3.17%. A one-day loser such as -28.82% on 2024-08-02 is far larger than any slippage setting.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules23.4%−76.7%2236%$33,501
100-day SMA29.2%−60.9%3030%$43,590
150-day SMA34.7%−68.4%1450%$55,276
250-day SMA4.0%−83.8%1828%$12,493

Other averages

Three variants change the window. A 100-day average gave a CAGR of 29.23%, a maximum drawdown of 60.88%, a final value of $43,590 and 30 trades with 9 wins. A 150-day average gave 34.69%, a drawdown of 68.38%, $55,276 and 14 trades with 7 wins, and a Sharpe ratio of 0.779. A 250-day average gave 3.95%, a drawdown of 83.82%, $12,493 and 18 trades with 5 wins.

The result swings with the window. The 150-day version returned more than the published 200-day rule and more than buy-and-hold's 33.32%, with a smaller drawdown than buy-and-hold. The 250-day version barely made money. A change from 200 to 250 days took the CAGR from 23.44% to 3.95%, which shows how much the outcome depends on a few trade dates when only a few long trends exist.

This is the main sensitivity on the page. A reader should treat the 150-day figure as one draw from a noisy set, and not as a better rule. Choosing a window by its backtest on one fund would be fitting to the past.

How SOXL behaved

MeasureSOXL
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold451.0%
Annualized volatility113.3%
Deepest drawdown−90.5% (2021-12-27 to 2022-10-14)
Up days53.4%
Average daily range7.77%
Average overnight gap3.17%
Correlation to SPY0.80
Correlation to QQQ0.87
Correlation to TLT0.05
Sessions above the 200-day average58.5%
Crossings of the 200-day average44
Falls of 10% or more from a 20-day high102

How SOXL behaved

SOXL returned 450.98% in total as a price series, a CAGR of 34.61%, with an annualized volatility of 113.25% and a maximum drawdown of -90.49% from 2021-12-27 to 2022-10-14, recovered on 2026-02-25. The longest drawdown lasted 1,043 sessions. Calendar returns were 121.74% in 2021, -85.64% in 2022, 226.54% in 2023, -12.33% in 2024, 54.98% in 2025 and 289.88% so far in 2026.

The average up day was 5.31% and the average down day -5.29%, with an average daily range of 7.77%. The best day was 2025-04-09 at 55.98% and the worst 2026-06-05 at -30.71%. Its correlation to SPY was 0.8 and to QQQ 0.87, with a beta to SPY of 5.49 and to QQQ of 4.42. It fell 10% from a 20-day high 102 times, over 769 days.

The fund is a 3x leveraged fund on SOXX. Its realized beta to SOXX was 2.97 with an R-squared of 1. Over the window SOXX returned 388.35%, and three times that would be 1,165.05%, against the fund's 450.98%. The gap between those numbers is the decay from daily resetting in a volatile fund, and the by-year table shows it with the largest shortfalls in 2025 and 2024, at -67.06 and -51.32 points.

The fund closed above its 200-day average on 58.55% of sessions and crossed it 44 times. That is a lot of crossings for a filter, and each one is a trade. The 14-day RSI fell below 30 on only 7 sessions, with a median 20-day forward return of 16.81%, and the 2-day RSI fell below 10 on 140 sessions with a median 5-day return of 1.7%. Overnight moves were 156.28% of the log return and the session -56.28%.

Calendar averages, weekdays and the leveraged category

SOXL's average return by calendar month ranged widely. May averaged 33.67% over 6 observations and November 24.84% over 5. January averaged 12.81%, June 12.41% and April 9.18%. August was the weakest at -8.44%, followed by March at -4.43% and September at -2.13%. The sleeve's own record has August 2023 at -16.01%, August 2024 at -32.93% and September 2023 at -27.01%, in line with those weak averages. Each month rests on 5 or 6 years, and one outlier such as May 2026's 75.78% for the sleeve can lift an average a long way.

Monday averaged 0.92% and Wednesday 0.68%. Thursday gave 0.33%, Tuesday 0.06% and Friday -0.07%. Over six years these gaps do not show a stable weekday edge.

Among the 10 leveraged funds, SOXL's 23.44% was second to TQQQ at 24.95%, which had a 36.54% drawdown over 14 round trips. QLD made 21.57% with 28.75%, ROM 17.99% with 42.2%, SSO 12.4%, TECL 11.53% and SPUU 10.54%. FAS made -2.74%, UST -6.68% and TMF -10.5%. SOXL's 76.74% drawdown was the deepest of the top four, and it took 22 round trips where TQQQ took 14. The category median CAGR was 12.4% against 23.44% here.

The RSI(14) closed under 30 on only 7 sessions, and the median 5-day return after those was 11.92%. That sample is too small to carry a rule, but it shows the fund's rebounds were sharp when they came.

The rules

Own the asset when price closes above its 200-day average; hold cash when it closes below.

  1. WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
  2. 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.

How the rules fit this fund

The rule is two checks at the open. With nothing held and yesterday's close over the 200-day average, it buys using 98% of the sleeve. With a position held and yesterday's close under the average, it sells all of it. The 200 is the only number.

The filter suits a fund with long trends and punishes a fund with sharp reversals. SOXL had both. The long trends of 2023 to 2024, 2025 to 2026 and spring 2026 produced the four big winners. The reversals of August 2024 and July to September 2026 produced the worst losses. A 3x fund moves fast enough to cross the average and come back within a day or two.

Other templates on SOXL did better. The golden cross returned 45.93% with a drawdown of 69.3%, RSI(2) snapback 39.24% with 58.51%, the monthly cycle 32.86% with 90.24% and the weekly 7% target 29.47%. The EMA 12/26 trend returned 26.2%. The 200-day filter ranked sixth of 12 at 23.44%, and the dip buyer returned 16.42% with a drawdown of 88.53%.

The template's median CAGR was 1.84% over all 59 funds and 12.4% over leveraged funds, and SOXL placed second of 59, behind only one other fund. Among leveraged peers, TQQQ returned 24.95% with a drawdown of 36.54%, QLD 21.57% with 28.75% and TECL 11.53%. FAS lost 2.74%. See the strategy hub and the SOXL page.

The test stops at one window, with 4 trades making the result and a drawdown of 76.74% that would be hard to hold. It says nothing about a different period.

Run 200-day regime filter on SOXL 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 200-day regime filter beat buy-and-hold on SOXL?

Over 2021-01-04 to 2026-10-02, 200-day regime filter on SOXL returned 23.4% annualized vs 33.3% for buy-and-hold: it trailed buy-and-hold by 9.9% per year, with a maximum drawdown 12.9 points shallower than holding (76.7% vs 89.6%).

How many trades did it make?

22 completed round trips over 5.7 years (45 fills), with 36% 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 regime filter beat buy-and-hold on SOXL?

It trailed on return and led on drawdown. It earned a CAGR of 23.44% against 33.32% for holding and ended at $33,501 against $52,126. Its maximum drawdown was 76.74% against 89.62%. It was ahead in 2022 and 2024.

Why is the win rate only 36%?

Eight of 22 round trips made money. The 3x fund moved fast enough to cross the 200-day line and reverse within days, and the rule lost on 14 trades, two of them lasting one day. The average loser was -9.5%, against an average winner of 40.89%.

What made the money?

Four long trades. They returned 115.68%, 112.37%, 62.79% and 23.24%, and the next best was 5.42%. The profit factor was 1.62, and the rule needs a sustained trend to work.

Does a different moving-average length help?

It changed the result a lot. A 150-day average gave 34.69% and a 250-day average gave 3.95%, against 23.44% for 200 days. That sensitivity is one reason to treat one fund's numbers with caution.

Did the filter protect the account in 2022?

Largely. The fund lost 84.8% in the run and the strategy 38.7%, with ten months in cash from March to December. The rule still lost 33.04% in January 2022 and 8.45% in February.

What is the open position at the end?

The rule bought on 2026-09-18 at $117.38 and the position was marked at 39.5% on the last close. The 22 closed trades do not include it, and it is one more case where the outcome is not known.

Related

200-Day SMA Regime Filter on all 59 ETFsfull results table All strategies on SOXL12 templates compared RSI(14) Mean Reversion on SOXLsame ETF, different rulesRSI(2) Dip Snapback on SOXLsame 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.