Golden Cross (SMA 50/200) 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.
The golden cross rule held SOXX, the iShares Semiconductor ETF, for 60.3% of the sessions between 2021-01-04 and 2026-10-02 and returned 28.24% a year. A $10,000 account ended at $41,701.15, a total return of 317.01%, with a max drawdown of 28.82% and a Sharpe ratio of 1.02. Buy-and-hold on the same fund returned 31.11% a year and ended at $47,348, so the rule finished $5,646.85 behind on dollars and 2.87 points behind on CAGR. It took a much smaller drawdown to get there: buy-and-hold fell 45.06% at its worst.
The rule is simple. Buy with 98% of the sleeve at the open when the 50-day simple average is above the 200-day, and sell the whole position at the open when the 50-day drops below the 200-day. In 5.74 years the account made 7 fills across 3 completed round trips and one trade still open at the end. All 3 completed trips were winners, with an average win of 24.71%. The best was +70.09%, and the worst was +0.97%.
That result ranks 3rd of the 12 templates on SOXX, behind the weekly 7% target at 30.54% and the monthly cycle at 29.17%. Across all 59 funds, SOXX ranks 2nd for this rule. The template's median CAGR over the 59 funds was 2.05% and the median over sector funds was 11.2%, so a CAGR of 28.24% sits far above both. A fund as trending as SOXX suited a slow filter, and the figures that follow show where the rule helped and where it lagged.
Year by year
| Year | golden cross | buy & hold |
|---|---|---|
| 2021 | 18.2% | 43.6% |
| 2022 | −12.9% | −34.5% |
| 2023 | 43.6% | 65.3% |
| 2024 | 18.5% | 12.8% |
| 2025 | 22.8% | 40.1% |
| 2026 | 93.8% | 95.0% |
Year by year against buy-and-hold
The strategy's yearly returns were 18.2% in 2021, -12.9% in 2022, 43.6% in 2023, 18.5% in 2024, 22.8% in 2025 and 93.8% in 2026 through the end of the data. Buy-and-hold returned 43.6%, -34.5%, 65.3%, 12.8%, 40.1% and 95%.
The rule beat buy-and-hold in two years, 2022 and 2024. In 2022 it lost 12.9% while the fund lost 34.5%, which is the largest single edge in the table at 21.6 points. In 2024 it gained 18.5% against 12.8%, an edge of 5.7 points. In the other four years it trailed. The shortfalls were 25.4 points in 2021, 21.7 points in 2023, 17.3 points in 2025 and 1.2 points in 2026.
The 2021 gap comes from the start of the test. The 200-day average needs 200 sessions of data, and the first entry came on 2021-10-19, about 200 sessions after the window began. The account sat in cash through the first nine months while SOXX rose, and then bought in October. The strategy's 2021 return of 18.2% comes from only the last quarter of the year. October added 3.6%, November added 11.12% and December added 2.69%.
In 2022 the rule gave back most of the gains of its last entry before leaving. The account lost 11.26% in January 2022 and a further 1.16% and 0.67% in February and March, then sold on 2022-03-23. From April through the end of that year the strategy earned 0% in every month, while the fund went on to its trough on 2022-10-14. This is the pattern that the template's description promises: the first leg of a crash is given back, and the later legs are skipped.
The 2023 shortfall of 21.7 points is the cost of the same lag in the other direction. The fund rose 65.3% in 2023, and the strategy did not buy until 2023-01-30. January added 0.36% and February added 1.42%, and the account then caught the rest of the year, including a 15.27% month in May and a 15.86% month in November. The strategy's 43.6% in 2023 is a strong year, and it still lagged.
By 2026 the two lines nearly meet, at 93.8% and 95%, because the rule was fully invested through the whole year. The fund's 95.9% on its own series is the best calendar year in the window.
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% | 3.6% | 11.1% | 2.7% |
| 2022 | −11.3% | −1.2% | −0.7% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 0.4% | 1.4% | 8.7% | −7.2% | 15.3% | 6.5% | 5.3% | −4.5% | −6.7% | −6.6% | 15.9% | 12.1% |
| 2024 | 1.7% | 11.1% | 4.0% | −5.2% | 9.3% | 5.4% | −4.6% | −1.7% | −0.0% | −5.3% | 4.0% | 0.0% |
| 2025 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −1.9% | 2.1% | 10.6% | 12.7% | −3.1% | 1.6% |
| 2026 | 14.7% | 1.7% | −6.5% | 39.7% | 22.9% | 12.3% | −21.0% | 1.3% | 11.1% | 3.6% | – | – |
The monthly pattern
The month-by-month table shows long runs of zero: all of 2022 from April onward, and the stretch from 2024-12 through 2025-06, when the account was in cash. The strategy's best month was 2026-04 at 39.67%, and its worst was 2026-07 at -21%. Buy-and-hold had the same pair, 40.13% in 2026-04 and -21.13% in 2026-07. When the rule is invested its monthly returns track the fund closely, and the differences between the two come from the months it sat out.
The two extremes both fall in 2026, and both fall inside the last drawdown. The fund's 2026-07 loss followed a rally: April 2026 gained 39.67%, May 22.94% and June 12.35%. The strategy then gave up 21% in July. SOXX's own worst days in the window are clustered in this period as well, with a fall of 10.45% on 2026-06-05 and 7.87% on 2026-06-23, and a gain of 8.78% on 2026-07-30.
The calendar-month averages for the fund, across 5 or 6 observations each, show May at 11.44% and November at 8.44% as the strongest, with August at -1.61% as the weakest. These counts are small and describe this window only. The strategy's best individual months in 2023 were May and November, which matches the fund's own seasonal average, though six readings do not make a seasonal rule.
Every trade
golden cross on SOXX made 3 closed round trips and one position still open at the end of the test, an average hold of 270 days, an average winner of 24.71%. It held a position at the close on 60.3% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-10-19 | $146.85 | 2022-03-23 | $151.38 | 3.1% | 155 |
| 2023-01-30 | $130.84 | 2024-11-12 | $222.55 | 70.1% | 652 |
| 2024-11-19 | $211.19 | 2024-11-21 | $213.23 | 1.0% | 2 |
| 2025-07-09 | $243.51 | open | – | 141.8% | – |
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 four trades
The trade list is short enough to read in full.
- 2021-10-19 to 2022-03-23: entry at an adjusted price of 146.85, exit at 151.38, a gain of 3.08% over 155 days.
- 2023-01-30 to 2024-11-12: entry at 130.84, exit at 222.55, a gain of 70.09% over 652 days.
- 2024-11-19 to 2024-11-21: entry at 211.19, exit at 213.23, a gain of 0.97% over 2 days.
- 2025-07-09 to the end of the data: entry at 243.51, still open, with a gain of 141.84%.
Prices are adjusted for splits and dividends, so they are lower than the quotes printed at the time.
One trade carried the result. The 652-day hold from January 2023 to November 2024 returned 70.09%, which is the best trade and the longest hold. The median trade return among completed trips was 3.08% and the median hold was 155 days, so the median hides how uneven the three completed trips were. The average hold across completed trips was 269.7 days.
The third trade is a whipsaw. The 50-day average dropped below the 200-day on 2024-11-12, the rule sold, and a week later the cross reversed and the rule bought again on 2024-11-19. Two days later it sold again at a profit of 0.97%. Both orders executed at the open on a daily signal, and the net result was close to flat. After that exit the account stayed in cash until 2025-07-09, a stretch that included the April 2025 selloff. The same fund fell 40.93% in the buy-and-hold run from 2024-07-10 to 2025-04-08.
The last entry is still open and shows a gain of 141.84% since 2025-07-09. That figure is unrealized and the headline win count of 3 of 3 excludes it. The open trade is where most of the 2026 return came from, and a sell signal at any point would turn some of that into a realized figure that could be smaller.
The win rate is 100% and the profit factor is empty, because there was no losing trade to divide by. With 3 completed trips, those figures describe the sample and do not say how often the rule wins.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2026-06-22 | 2026-07-29 | −28.8% | 37 | not yet | – |
| 2024-07-10 | 2024-08-07 | −24.7% | 28 | 2025-10-06 | 425 |
| 2021-12-27 | 2022-03-14 | −23.6% | 77 | 2023-05-26 | 438 |
Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-10-14 and reached −45.1%.
Drawdowns
The strategy had three drawdowns of note. The deepest was the current one, 28.82%, from a peak on 2026-06-22 to a trough on 2026-07-29 after 37 days, with no recovery by the end of the data. The second was 24.69% from 2024-07-10 to 2024-08-07, which took 425 days to recover. The third was 23.6% from 2021-12-27 to 2022-03-14, recovered on 2023-05-26 after 438 days.
Buy-and-hold had a larger set: 45.06% from 2021-12-27 to 2022-10-14, 40.93% from 2024-07-10 to 2025-04-08 and 28.99% from 2026-06-22 to 2026-07-29. The strategy's max drawdown was 16.24 points shallower. Two of the three drawdowns in each list share a peak date, 2021-12-27 and 2024-07-10, so the strategy was invested into both falls and exited partway down. The exits came after a lag. The 2022 exit took place on 2022-03-23, nine days after the trough of the strategy's own drawdown on 2022-03-14, and the fund went on to a lower low in October.
The 2026 drawdown is the clearest case of what a 50/200 filter cannot do. The fall from 2026-06-22 to 2026-07-29 was 28.82% for the strategy and 28.99% for buy-and-hold. The two figures are almost the same, because the 50-day average was far above the 200-day after a long rally and a fall of this speed does not cross it. A slow filter protects against long bear markets, as the 2022 year shows. It offers little against a sharp decline inside a strong trend.
The fund itself fell 45.81% from 2021-12-27 to 2022-10-14, and the recovery came on 2023-12-13. The longest underwater stretch was 493 sessions.
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) | 28.2% | −28.8% | $41,701 | 1.02 |
| 5 basis points | 28.2% | −28.9% | $41,652 | 1.02 |
| 10 basis points | 27.9% | −28.8% | $41,165 | 1.02 |
Cost runs
Adding 5 basis points per trade lowered CAGR from 28.24% to 28.21% and ended at $41,652.20. Adding 10 basis points gave a CAGR of 27.95% and $41,165.14. The max drawdown moved between 28.78% and 28.85% across the three runs, and the Sharpe ratio stayed near 1.02.
The costs are small because the rule trades rarely. With 7 fills in 5.74 years, every charge is applied to a position of the full account but only a handful of times. A rule that trades every few days pays the same basis-point charge many more times. The fund is also liquid. Its average daily dollar volume was $1,048,392,630, and the median minute volume was 5,853 shares, so an account of $10,000 is a tiny order.
The cost runs add a flat charge and do not model a wider spread on a fast day. Several of the entries and exits here fell near sharp moves, such as the sell on 2024-11-12, and a live fill on such a day could differ from the backtest.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 28.2% | −28.8% | 3 | 100% | $41,701 |
| SMA 40/200 | 26.0% | −28.7% | 2 | 50% | $37,633 |
| SMA 50/150 | 24.9% | −28.7% | 3 | 67% | $35,847 |
| SMA 60/250 | 22.1% | −28.8% | 2 | 50% | $31,538 |
Parameter variants
Three changes to the moving averages were tested against the default of 50 and 200.
- SMA 40/200: 25.97% CAGR, 28.74% max drawdown, $37,633.15, 2 trades with 1 win.
- SMA 50/150: 24.9% CAGR, 28.74% max drawdown, $35,846.53, 3 trades with 2 wins.
- SMA 60/250: 22.15% CAGR, 28.84% max drawdown, $31,537.81, 2 trades with 1 win.
All three finished behind the default 50/200 pair, which made 28.24% and $41,701.15. They also finished behind buy-and-hold at 31.11%. The max drawdown barely changed across the four settings, staying between 28.74% and 28.84%, since each setting was invested in the 2026 fall and drew down by about the same amount.
The spread in CAGR is wide for such similar rules, from 22.15% to 28.24%. With 2 or 3 trades in each run, small shifts in the cross dates changed which entry and exit prices the account got. The 60/250 pair is slower and lost the most, in part because its entry came later in the 2023 rally. The 50/150 pair has a shorter slow average and produced 3 trades with 2 wins, so it took a losing trade the default avoided. The variants show that the default result is one point in a sample of four and not a stable optimum. A 28.24% CAGR from a rule with three completed trades depends on the dates of those crosses.
How SOXX behaved
| Measure | SOXX |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 388.4% |
| Annualized volatility | 38.1% |
| Deepest drawdown | −45.8% (2021-12-27 to 2022-10-14) |
| Up days | 53.9% |
| Average daily range | 2.58% |
| Average overnight gap | 1.07% |
| Correlation to SPY | 0.79 |
| Correlation to QQQ | 0.87 |
| Correlation to TLT | 0.05 |
| Sessions above the 200-day average | 70.7% |
| Crossings of the 200-day average | 38 |
| Falls of 10% or more from a 20-day high | 43 |
How SOXX behaved
SOXX returned 388.35% over the window on its own series, a CAGR of 31.81%, with annualized volatility of 38.08%. It rose on 53.92% of sessions, with an average up day of 1.78% and an average down day of -1.78%. The beta to SPY was 1.84 and to QQQ was 1.49, and its correlation to QQQ was 0.87. The average intraday range was 2.58%.
A fund with those numbers spends a lot of time in long trends. It sat above its 200-day average on 70.68% of sessions and crossed it 38 times. For a trend filter, a high share above the line means the rule is invested most of the time, and the 60.3% exposure the rule recorded is close to the level the fund's own regime would suggest. The overnight component was 86.53% of the log return, so most of the gain arrived in gaps between sessions, and a rule that buys at the open takes the gap on entry.
Mean reversion signals were rare. RSI(14) fell below 30 on only 7 sessions, and RSI(14) was above 70 on 121. After the 7 oversold readings the median forward return was 6.1% over 5 days and 11.58% over 20, against baselines of 0.63% and 2.11%. The sample is small. The point for this rule is that SOXX rarely got weak enough to threaten a long-term trend, and when it did, it recovered quickly.
The fund's biggest days were violent. The best was 18.84% on 2025-04-09, and the worst was -10.45% on 2026-06-05. A fall of 10.11% on 2025-04-03 and a rise of 18.84% six days later bracket the April 2025 turn. The strategy was in cash through that period, which spared it the fall and also left it out of the bounce.
The fund's correlations point to its group. SOXL is 1, XLK and TECL are 0.9, and ROM is 0.9. Among sector funds, the same rule returned 15.33% on XLK, 11.2% on VOX, 3.6% on XLF, 2.05% on XLP and 1.35% on XLY. SOXX is the strongest of the six by a wide margin. The SOXX page has the full profile.
The rules
Hold while the 50-day average is above the 200-day; step aside when it crosses below (the death cross).
- WHEN the market opens · IF not invested AND SMA(50) > SMA(200) · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND SMA(50) < SMA(200) · THEN sell the whole position
A widely used trend filter. When the 50-day simple moving average is above the 200-day, the asset is in a long-term uptrend and the strategy holds. When it crosses below, the strategy moves to cash. It trades rarely, with a handful of signals per decade on an index. Its use is skipping the deepest bear markets, and it will lag some rallies.
Good for: long-horizon investors who want to hold trends but sidestep multi-year bear markets.
Watch out: crosses lag at turning points: the strategy gives back the first leg of a crash and misses the first leg of a recovery, and choppy sideways markets whipsaw it.
How the cross interacts with this fund
The rule's two conditions are checked at the open on a daily average, so a crossing that occurs during a session is acted on the next morning. On a fund with an average daily range of 2.58% and gaps averaging 1.07%, an entry or exit at the open can be a long way from the close that triggered it.
The rule earned its place on SOXX in two ways. It stepped aside for most of 2022, which is the year with the largest edge over buy-and-hold at 21.6 points. It also held through the 652-day trend from January 2023 to November 2024, which is where the 70.09% trade came from. It paid for those with the lag at turning points: the late 2021 start, the late 2023 start and the exit after the crash had begun.
Against the other templates on SOXX, the weekly 7% target made 30.54% with a 22.76% drawdown, and the monthly cycle made 29.17% with a 44.51% drawdown. The golden cross made 28.24% with 28.82%. The dip buyer made 27.48% with 39.25%, and the trend plus trailing stop made 19.81%. The 200-day regime filter made 19.21% with 39.17%. The SMA 10/50 trend rule came last at 7.65%, with a drawdown of 40.32%, so a faster pair of averages did much worse than the slow one on this fund. Among those templates the golden cross had one of the shallower drawdowns relative to its return, with only the weekly target and the RSI(2) snapback at 23.81% shallower.
The test has limits. It covers one window of 5.74 years, with a single deep bear market in 2022, and 3 completed trades. The headline run has no fees or slippage, the cost runs add only 5 and 10 basis points, and the open trade's 141.84% gain is unrealized. The result describes how the rule behaved on this fund in this window. It makes no claim about another fund or another period.
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 golden cross beat buy-and-hold on SOXX?
Over 2021-01-04 to 2026-10-02, golden cross on SOXX returned 28.2% annualized vs 31.1% for buy-and-hold: it trailed buy-and-hold by 2.9% per year, with a maximum drawdown 16.2 points shallower than holding (28.8% vs 45.1%).
How many trades did it make?
3 completed round trips over 5.7 years (7 fills), with 100% of round trips closing profitably.
How often does a golden cross happen?
On a broad index, roughly every couple of years. The backtest pages show the exact trade count for each ETF over the 2021 to 2026 window.
Golden cross vs buy and hold: which does better?
It depends on the asset and the window. Every backtest page here shows the same-window buy-and-hold comparison.
How did the golden cross perform on SOXX?
It returned 28.24% a year from 2021-01-04 to 2026-10-02, and a $10,000 account ended at $41,701.15. The max drawdown was 28.82% and the Sharpe ratio was 1.02. Buy-and-hold made 31.11% a year with a drawdown of 45.06%.
Did the golden cross beat buy-and-hold on SOXX?
Not on return. It finished 2.87 points behind on CAGR and $5,646.85 behind on dollars. It beat buy-and-hold in 2022 and 2024, and it had a shallower max drawdown.
How many trades did the golden cross make on SOXX?
It made 3 completed round trips and one open trade, with 7 fills in total. All 3 completed trips were winners. The open trade, entered on 2025-07-09, was up 141.84% at the end of the data.
Why did the golden cross enter so late in 2021?
The first entry was on 2021-10-19. The 200-day average needs 200 sessions of data, and the window began on 2021-01-04, so the rule had no signal for about the first nine months.
What happens to the result with different moving averages?
The SMA 40/200, 50/150 and 60/250 variants returned 25.97%, 24.9% and 22.15% a year. All three ended behind the default pair at 28.24%. Each variant had only 2 or 3 trades, so the spread depends on a few cross dates.
Do trading costs matter for the golden cross on SOXX?
Very little. Adding 5 basis points per trade gave 28.21% a year, and adding 10 basis points gave 27.95%. The rule made 7 fills in the whole window.
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.