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

200-Day SMA Regime Filter on SOXX

iShares Semiconductor ETF: the semiconductor industry, a high-momentum sector. 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 SOXX turned $10,000 into $27,422 (174.2% total, 19.2% CAGR): it trailed buy-and-hold by 11.9% per year, with a maximum drawdown 5.9 points shallower than holding (39.2% vs 45.1%).
19.2%CAGR
31.1%buy & hold CAGR
−39.2%max drawdown
0.77Sharpe ratio
19round trips
26%win rate
■ 200-day regime filter   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Year200-day regime filterbuy & hold
202118.2%43.6%
2022−28.3%−34.5%
202343.0%65.3%
2024−1.5%12.8%
202518.6%40.1%
202693.6%95.0%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%3.6%11.1%2.7%
2022−16.3%−7.0%−5.4%0.6%0.0%0.0%0.0%0.0%0.0%0.0%0.0%−3.3%
20235.3%1.4%8.7%−7.2%15.2%6.5%5.3%−4.5%−6.7%−6.1%9.7%12.1%
20241.7%11.0%4.0%−5.2%9.3%5.4%−4.5%−10.4%−2.2%−5.1%−3.5%0.3%
2025−9.8%−3.2%0.0%0.0%−2.4%10.6%0.5%2.1%10.5%12.7%−3.1%1.6%
202614.6%1.7%−6.5%39.6%22.9%12.3%−21.0%1.3%11.1%3.6%––

Every trade

200-day regime filter on SOXX made 19 closed round trips and one position still open at the end of the test, an average hold of 42 days, an average winner of 9.95%, an average loser of −3.09%, a profit factor of 1.04, a longest losing streak of 7. It held a position at the close on 60.9% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-19$146.852022-01-26$153.014.2%99
2022-01-27$151.172022-01-28$143.61−5.0%1
2022-02-01$154.942022-02-14$149.85−3.3%13
2022-02-16$155.452022-02-22$148.82−4.3%6
2022-02-28$152.022022-03-02$148.50−2.3%2
2022-03-23$151.382022-03-24$150.99−0.3%1
2022-03-25$156.442022-04-01$153.03−2.2%7
2022-12-14$125.802022-12-15$121.56−3.4%1
2023-01-12$124.522023-10-26$145.5516.9%287
2023-11-03$153.232024-08-05$190.7224.5%276
2024-08-09$209.282024-09-04$208.44−0.4%26
2024-09-12$214.612024-09-19$222.903.9%7
2024-09-20$221.282024-11-01$217.75−1.6%42
2024-11-07$229.702024-11-13$219.60−4.4%6
2024-12-17$222.382024-12-18$223.100.3%1
2025-01-07$229.502025-01-08$223.31−2.7%1
2025-01-21$229.412025-01-28$211.75−7.7%7
2025-02-20$230.252025-02-24$222.60−3.3%4
2025-05-14$213.892025-05-20$208.58−2.5%6
2025-06-04$213.96open–175.2%–

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.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2024-07-102025-05-20−39.2%3142026-01-28253
2021-12-272023-01-19−31.5%3882023-12-26341
2026-06-222026-07-29−28.8%37not yet–

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

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)19.2%−39.2%$27,4220.77
5 basis points18.8%−39.6%$26,8560.76
10 basis points18.3%−40.2%$26,2530.74

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules19.2%−39.2%1926%$27,422
100-day SMA14.8%−45.6%3027%$22,121
150-day SMA14.8%−45.8%3027%$22,037
250-day SMA14.3%−37.1%1619%$21,504

How SOXX behaved

MeasureSOXX
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold388.4%
Annualized volatility38.1%
Deepest drawdown−45.8% (2021-12-27 to 2022-10-14)
Up days53.9%
Average daily range2.58%
Average overnight gap1.07%
Correlation to SPY0.79
Correlation to QQQ0.87
Correlation to TLT0.05
Sessions above the 200-day average70.7%
Crossings of the 200-day average38
Falls of 10% or more from a 20-day high43

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.

Run 200-day regime filter on SOXX 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 SOXX?

Over 2021-01-04 to 2026-10-02, 200-day regime filter on SOXX returned 19.2% annualized vs 31.1% for buy-and-hold: it trailed buy-and-hold by 11.9% per year, with a maximum drawdown 5.9 points shallower than holding (39.2% vs 45.1%).

How many trades did it make?

19 completed round trips over 5.7 years (39 fills), with 26% 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.

Related

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