Learn › Strategies › 20-Day Momentum + Trailing Stop › SOXX

20-Day Momentum + Trailing Stop 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: momentum breakout on SOXX turned $10,000 into $24,308 (143.1% total, 16.7% CAGR): it trailed buy-and-hold by 14.4% per year, with a maximum drawdown 14.8 points shallower than holding (30.2% vs 45.1%).
16.7%CAGR
31.1%buy & hold CAGR
−30.2%max drawdown
0.78Sharpe ratio
18round trips
61%win rate
■ momentum breakout   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmomentum breakoutbuy & hold
202114.0%43.6%
2022−14.3%−34.5%
202316.5%65.3%
2024−1.2%12.8%
202534.3%40.1%
202660.9%95.0%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%−5.1%−4.0%4.7%0.5%2.4%−4.4%6.3%11.2%2.7%
2022−7.1%0.0%0.0%−9.5%0.0%0.0%2.0%−6.1%0.0%0.0%14.7%−7.2%
20230.8%1.4%8.7%−9.7%1.6%6.4%5.2%−9.4%0.0%0.0%0.5%12.1%
20241.7%11.0%−0.7%0.0%1.5%5.3%−2.4%0.0%−9.7%−4.8%−1.6%0.0%
2025−8.3%0.0%0.0%0.0%8.5%16.5%0.5%2.1%10.7%12.8%−8.3%−1.5%
202614.6%−5.3%0.0%19.5%16.0%5.3%−8.9%−2.9%10.9%3.5%––

Every trade

momentum breakout on SOXX made 18 closed round trips and one position still open at the end of the test, an average hold of 58 days, an average winner of 13.72%, an average loser of −7.37%, a profit factor of 2.96, a longest losing streak of 3. It held a position at the close on 51.4% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-05$142.442021-05-04$129.43−9.1%29
2021-06-11$138.752022-01-19$161.7716.6%222
2022-04-05$150.322022-04-11$135.72−9.7%6
2022-07-22$128.742022-08-29$123.14−4.3%38
2022-11-09$109.542022-12-16$116.786.6%37
2023-01-24$130.262023-04-25$130.700.3%91
2023-05-26$152.822023-08-14$157.783.2%80
2023-11-17$167.462024-03-19$212.5226.9%123
2024-05-17$227.512024-07-18$237.474.4%62
2024-09-03$223.322024-09-06$200.99−10.0%3
2024-10-07$227.402024-11-15$212.36−6.6%39
2025-01-23$229.472025-01-27$210.08−8.4%4
2025-05-05$186.852025-11-14$279.7249.7%193
2025-12-22$305.282026-02-04$326.857.1%44
2026-04-10$383.092026-05-19$479.8325.3%39
2026-05-20$507.532026-06-05$556.339.6%16
2026-06-12$582.832026-06-24$589.971.2%12
2026-06-26$600.182026-07-02$580.07−3.4%6
2026-08-27$526.33open–11.9%–

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-06−30.2%3002025-09-22139
2021-12-272022-11-09−22.5%3172024-01-19436
2026-06-222026-09-14−17.3%84not 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)16.7%−30.2%$24,3080.78
5 basis points16.3%−30.4%$23,8280.76
10 basis points16.0%−30.8%$23,4140.75

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules16.7%−30.2%1861%$24,308
5% trailing stop14.3%−22.6%4854%$21,546
15% trailing stop14.0%−34.9%1258%$21,230
20% return entry6.0%−22.4%1030%$13,964

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

Buy after a +10% four-week burst and let a 10% trailing stop manage the exit.

  1. WHEN the market opens · IF not invested AND the 20-day return > +10% · THEN buy with 98% of the sleeve
  2. WHILE invested · a managed trailing stop follows 10% below the position's high-water mark

Momentum entry, trailing-stop exit. A +10% gain over 20 sessions marks a burst of momentum. The template buys the strength and exits on a 10% trailing stop that ratchets up beneath the highest close and never moves down. There is no profit target, so winners run until the trail is hit.

Good for: high-momentum assets where trends extend, such as semiconductor and leveraged tech ETFs.
Watch out: buying strength means buying high; when a burst immediately reverses, the trail exits about 10% below the entry.

Run momentum breakout 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 momentum breakout beat buy-and-hold on SOXX?

Over 2021-01-04 to 2026-10-02, momentum breakout on SOXX returned 16.7% annualized vs 31.1% for buy-and-hold: it trailed buy-and-hold by 14.4% per year, with a maximum drawdown 14.8 points shallower than holding (30.2% vs 45.1%).

How many trades did it make?

18 completed round trips over 5.7 years (37 fills), with 61% of round trips closing profitably.

How does the trailing stop work in the backtest?

The stop sits 10% below the highest price since entry and only ratchets up. When a bar trades through it, the position sells at the stop, or at the open if the price gaps below it. Trailing-stop exits can be backtested now; deploying them live is not available yet.

Related

20-Day Momentum + Trailing Stop 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.