Learn › Strategies › First-to-Last Day of Month › SOXX

First-to-Last Day of Month 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: monthly cycle on SOXX turned $10,000 into $43,478 (334.8% total, 29.2% CAGR): it trailed buy-and-hold by 1.9% per year, with a maximum drawdown 0.6 points shallower than holding (44.5% vs 45.1%).

The monthly cycle bought the iShares Semiconductor ETF (SOXX) at the first open of each month and sold at the last session's open, and it turned $10,000 into $43,478 between 2021-01-04 and 2026-10-02. That is a 29.17% CAGR with a 44.51% maximum drawdown and a Sharpe ratio of 0.9. Buy-and-hold SOXX ended at $47,348 with a 31.11% CAGR, a 45.06% drawdown and a Sharpe of 0.92. The calendar rule trailed the fund by 1.94% a year.

The template uses no indicators. It exists to measure how much of an asset's return accrues inside the month, and the result is close to the fund's own: the rule was invested for 95.2% of sessions, so most of what SOXX did, it did. The 69 completed round trips held for between 25 and 30 days each. 43 of them won, a win rate of 62%, with an average win of 8.35% and an average loss of 6.86%. A 70th trade opened on 2026-10-01 at an adjusted price of 569.2 and was up 3.46% at the end of the data.

The rule adds almost no decisions of its own, so the year-by-year, month-by-month and drawdown tables describe a high-momentum semiconductor fund from the inside. The ranking is worth stating at the start: the monthly cycle was second of 12 templates on SOXX by CAGR and third of 59 funds for this template, which says more about SOXX than about the calendar rule.

The test is one window of 5.74 years with daily-decision rules, no margin and no fees or slippage in the headline run. The rule's results on other funds are on the monthly cycle strategy page, and the other 11 templates on this fund are on the SOXX hub.

29.2%CAGR
31.1%buy & hold CAGR
−44.5%max drawdown
0.90Sharpe ratio
69round trips
62%win rate
■ monthly cycle   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmonthly cyclebuy & hold
202129.7%43.6%
2022−38.8%−34.5%
202355.3%65.3%
202416.2%12.8%
202546.6%40.1%
2026109.5%95.0%

Year by year against buy-and-hold

The rule trailed buy-and-hold in 2021, 2022 and 2023, and led in 2024, 2025 and 2026.

2021 returned 29.7% for the rule and 43.6% for the fund. The rule made 12 round trips in the year and 8 won. The first trade ran from 2021-01-04 at 122.05 to 2021-01-29 at 127.15 for 4.18%. The strongest months were November at 12.52%, January at 5.31% and October at 4.33%. The fund returned more over the year because the rule gives up the boundary days between each month's last open and the next first open.

2022 was the weak year for both. The rule lost 38.8% and the fund lost 34.5%. The rule made 12 round trips and only 5 won. Three of its five worst trades of the whole test fall in 2022: June at -18.29%, January at -16.22% and April at -12.98%. The monthly record reads -15.82% in January, -12.66% in April, -17.91% in June, -7.4% in August, -10.25% in September and -11.26% in December, against gains of 14.91% in July and 10.1% in November. A calendar rule has no way of staying out of a falling month.

2023 returned 55.3% for the rule and 65.3% for the fund, with 8 winners from 12 trips. May returned 15.95%, November 16.25% and December 13.69%.

2024 was one of three years where the rule beat the fund, with 16.2% against 12.8%. The monthly gains of 12.02% in May and 9.32% in February carried the year. July returned -6.33% for the rule.

2025 returned 46.6% against 40.1%. March lost 12.1% and April lost 4.68%, then May returned 11.63%, June 16.79%, September 12.73% and October 13.92%. The fund's recovery from the April 2025 low drove it.

2026 returned 109.5% against 95.0% so far, with 7 winners from 9 trips. The year includes the best trade of the test and the worst month in the buy-and-hold run, which is covered below. In a run of strong months, the rule's exits and re-entries landed at prices that gave it more than a simple hold in this stretch.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20215.3%3.2%−1.5%−0.9%1.1%4.1%−0.5%1.7%−3.6%4.3%12.5%1.6%
2022−15.8%−1.8%2.3%−12.7%5.6%−17.9%14.9%−7.4%−10.3%2.5%10.1%−11.3%
202311.8%0.2%6.9%−7.4%15.9%5.3%4.8%−4.4%−6.3%−7.5%16.3%13.7%
20243.3%9.3%2.6%−3.9%12.0%3.5%−6.3%−0.5%1.8%−3.0%−2.6%0.4%
20251.0%−3.2%−12.1%−4.7%11.6%16.8%3.3%5.6%12.7%13.9%−5.9%4.1%
202614.7%1.3%−7.7%35.5%25.1%9.7%−14.4%4.6%13.5%3.4%––

The month table

The monthly table makes two points about SOXX, one about size and one about timing.

On size, the best month for the rule was April 2026 at 35.47% and the worst was June 2022 at -17.91%. Buy-and-hold's best month was also April 2026 at 40.13%, and its worst was July 2026 at -21.13%. The rule's July 2026 was -14.37%. The calendar rule made the same shape of month the fund made, and a bit less in each direction. The rule's best month came in the most recent year, and so did the fund's worst. A fund this volatile has big months at both ends: the annualized volatility was 38.08%.

On timing, the fund's own calendar says which months were strong across the window. The average return by month of the year was highest in May at 11.44% and November at 8.44%, then June at 4.84%, January at 4.46%, February at 2.52%, October at 2.0% and April at 1.64%. The weakest were August at -1.61%, July at -0.5%, September at -0.44% and March at -0.26%. With 5 or 6 observations per month, these averages are a description of this window, and they are heavily influenced by single years. May 2023 at 15.95% and May 2024 at 12.02% sit in that average, as does May 2026 at 25.05%. The rule's own table has no way to use that pattern, because it buys every month.

Several runs of red months show the downside. January to June 2022 had four losing months out of six. February to April 2025 had three losing months in a row: -3.2%, -12.1% and -4.68%. July 2026 gave back -14.37% right after the 2026-06-22 peak.

The rule held an average of 28.4 days per trade and a median of 29, with the shortest at 25 days and the longest at 30. That is the signature of a calendar rule: it cannot hold longer than a month.

Every trade

monthly cycle on SOXX made 69 closed round trips and one position still open at the end of the test, an average hold of 28 days, an average winner of 8.35%, an average loser of −6.86%, a profit factor of 2.26, a longest losing streak of 3. It held a position at the close on 95.2% of trading days.

Best 10 round trips

EntryEntry priceExitExit priceReturnDays held
2026-04-01$332.842026-04-30$454.3036.5%29
2026-05-01$455.032026-05-29$573.0525.9%28
2025-06-02$203.372025-06-30$238.4317.2%28
2023-11-01$145.602023-11-30$169.7516.6%29
2023-05-01$135.002023-05-31$157.0316.3%30
2022-07-01$111.422022-07-29$128.4115.3%28
2026-01-02$310.222026-01-30$357.1315.1%28
2025-10-01$268.262025-10-31$306.9114.4%30
2023-12-01$166.942023-12-29$190.6014.2%28
2026-09-01$500.932026-09-30$570.3913.9%29

Worst 10 round trips

EntryEntry priceExitExit priceReturnDays held
2022-06-01$137.892022-06-30$112.67−18.3%29
2022-01-03$176.132022-01-31$147.56−16.2%28
2026-07-01$619.412026-07-31$527.97−14.8%30
2022-04-01$153.032022-04-29$133.16−13.0%28
2025-03-03$209.352025-03-31$183.18−12.5%28
2022-12-01$126.272022-12-30$111.63−11.6%29
2022-09-01$116.402022-09-30$104.14−10.5%29
2026-03-02$343.372026-03-31$316.23−7.9%29
2023-10-02$155.442023-10-31$143.32−7.8%29
2023-04-03$144.082023-04-28$132.98−7.7%25

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 trades that decided the result

69 round trips gave a median return of 2.34% per trade. The best trade was April 2026, from 2026-04-01 at 332.84 to 2026-04-30 at 454.3, a gain of 36.49% in 29 days. The next was May 2026, from 455.03 to 573.05 for 25.94%. The others in the top five were June 2025 at 17.24%, November 2023 at 16.59% and May 2023 at 16.32%.

The worst trade was June 2022, from 137.89 to 112.67 for -18.29%. January 2022 returned -16.22%, July 2026 returned -14.76%, April 2022 returned -12.98% and March 2025 returned -12.5%.

The two best trades are consecutive and both are in 2026, inside the year's 109.5%. The monthly cycle held both because it is invested nearly all the time.

The longest win streak was 6 trades and the longest loss streak was 3. The profit factor was 2.26. The win rate of 62% is high for a rule with no entry signal. It reflects the fund's own tendency to rise: SOXX was up on 53.92% of days, and a month is long enough for that tilt to compound. Average win and average loss were close in size, 8.35% and 6.86%, so the profit factor comes mostly from the win rate.

Trades per exit year were 12 in each of 2021 through 2025 and 9 in 2026. Wins by year were 8, 5, 8, 7 and 8, then 7. The weakest year by win count was 2022, with 5 of 12.

The open position, entered on 2026-10-01 at 569.2, is up 3.46%. It would exit at the last session's open in October if the test continued.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-12-272022-10-14−44.5%2912024-01-24467
2024-07-102025-04-08−40.1%2722025-09-05150
2026-06-222026-07-29−28.6%37not yet–

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

Drawdowns

The deepest drawdown for the rule was 44.51%. It began at a peak on 2021-12-27, reached a trough on 2022-10-14 after 291 days, and recovered on 2024-01-24 after another 467 days. Buy-and-hold fell 45.06% over the same peak and trough, and recovered on 2023-12-13. The rule recovered later, since it lagged in 2023.

The second was 40.09% from 2024-07-10 to a trough on 2025-04-08 after 272 days, with recovery on 2025-09-05 after 150 days. The fund fell 40.93% on the same dates and recovered on 2025-09-18. Here the rule got back to its high a little sooner than the fund, through the May and June 2025 gains.

The third is unfinished. From a peak on 2026-06-22, the rule fell 28.57% to a trough on 2026-07-29, 37 days later, and had not recovered by 2026-10-02. The fund fell 28.99% over the same stretch. The 2026 gains are large enough that the account is far above its starting level, so the drawdown sits at the top of a steep climb.

The calendar rule's drawdowns match the fund's within a point or two in each case. The 0.55 point gap on the largest drawdown is the whole difference. A rule that is invested 95.2% of the time gets almost none of the protection a trend filter gives. The two drawdowns that ran longer than a year, in 2022 and 2024 to 2025, are the realistic downside of a fund that fell more than 40% twice.

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)29.2%−44.5%$43,4780.90
5 basis points27.6%−44.9%$40,5650.86
10 basis points26.1%−45.5%$37,9280.83

Costs

The calendar rule trades twice a month, which is 139 fills over 5.74 years. At 5 basis points the CAGR fell to 27.62%, the max drawdown rose to 44.87%, the end equity was $40,565.48 and the Sharpe was 0.863. At 10 basis points the CAGR was 26.14%, the max drawdown 45.53%, the end equity $37,927.69 and the Sharpe 0.831.

The headline CAGR of 29.17% and end equity of $43,478.10 give up a visible amount at each step. The 10 basis point run ends below buy-and-hold's 47,348 by a larger margin than the headline does. Each added cost level lowers the CAGR and raises the drawdown a little.

SOXX trades heavily. Its average daily dollar volume was $1,048,392,630 and its median minute volume was 5,853 shares. Orders for a $10,000 account are small against that.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules29.2%−44.5%6962%$43,478
Only after a positive month11.2%−47.0%4360%$18,384
Only above the 200-day SMA26.9%−28.6%4068%$39,339
With a 5% profit target16.7%−32.9%6971%$24,311

Variants and what they changed

Three variants were tested, and all three changed the shape of the result.

Trading only after a positive month cut the rule to 43 trades, with 26 wins, a CAGR of 11.19%, a max drawdown of 47% and an end equity of $18,384.21. The Sharpe fell to 0.521. This is the worst of the three. Waiting for a positive month before buying kept the rule out of the market in some months, and the result fell well behind.

Trading only when the fund was above its 200-day average gave 40 trades with 27 wins, a CAGR of 26.94%, a max drawdown of 28.63% and an end equity of $39,338.69. The Sharpe rose to 1.021, the highest of any variant or run on this page. It gave up a little return against the base 29.17% and cut the drawdown from 44.51% to 28.63%. The filter stays out of the fund when it is below the long average, and SOXX spent 70.68% of sessions above its 200-day average with 38 crossings.

A 5% profit target gave 69 trades with 49 wins, a CAGR of 16.73%, a max drawdown of 32.91% and an end equity of $24,311.2. The win rate rose, with 49 of 69 winning, and the return fell. Taking profit at 5% cut off the big months. The winners in the base run averaged 8.35%, and the best months were far above 5%.

The trend gate is the variant that changes the risk profile most. It keeps most of the return and trims the drawdown. The profit target also cut the drawdown, to 32.91%, at a larger cost in return, and the positive-month gate left the drawdown at 47%. Three variants over one window cannot say how the gate would do elsewhere.

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

Why SOXX suited a calendar rule

SOXX is a semiconductor fund and a high-momentum sector. Over the window it returned 388.35% for a 31.81% CAGR, with calendar returns of 44.66% in 2021, -35.07% in 2022, 66.96% in 2023, 13.0% in 2024, 40.68% in 2025 and 95.9% so far in 2026. Its beta to SPY was 1.84 and to QQQ 1.49, with correlations of 0.79 and 0.87.

Its biggest days came in clusters. The best was +18.84% on 2025-04-09, followed by +10.49% on 2022-11-10, +8.78% on 2026-07-30, +8.3% on 2026-06-11 and +7.25% on 2025-05-12. The worst were -10.45% on 2026-06-05, -10.11% on 2025-04-03, -8.34% on 2025-04-10, -7.87% on 2026-06-23 and -7.79% on 2025-01-27. The rule holds the fund for about 95% of sessions, so it carried most of these days, and its drawdowns match the fund's.

The average intraday range was 2.58% and the average overnight gap was 1.07%. 86.53% of the fund's log return came overnight and 13.47% intraday. That matters for this rule, which buys the first session's open and sells the last session's open. It misses the last session's intraday move and the overnight gap into the next month's first open.

The fund's average up day and average down day were both 1.78%, and it rose on 53.92% of days. RSI(14) fell below 30 on only 7 sessions and went above 70 on 121.

Oscillator and trend statistics for SOXX

The fund's own statistics show why a rule that never looks at an indicator held up. SOXX closed above its 200-day average on 70.68% of sessions and crossed that line 38 times. A fund that spends most of its time above the long average rewards a rule that is simply invested, and the monthly cycle was invested on 95.2% of sessions.

Oversold readings were rare and paid well. The 14-day RSI closed below 30 on 7 sessions only, and the median forward return was 6.1% over 5 days and 11.58% over 20 days, against baselines of 0.63% and 2.11% for all sessions. The 2-day RSI closed below 10 on 133 sessions, with a median of 0.89% over 5 days and 3.58% over 20. Seven observations is a small sample, so the 14-day figures describe a few episodes. The 133-session sample is larger and still leans the same way, with 20-day returns above the baseline.

Daily returns had a lag-1 autocorrelation of -0.09, a slight tendency for an up day to be followed by a down one. The weekday averages were Monday 0.32%, Wednesday 0.23%, Thursday 0.13%, Tuesday 0.03% and Friday 0%. The fund fell 10% or more from a 20-day high 43 times, spread over 197 sessions, which is a small share of the 1,444 sessions in the window.

The rules

Buy the first session of each month and sell the last, as a calendar-seasonality test.

  1. WHEN the first session of the month opens · IF not invested · THEN buy with 98% of the sleeve (once per month)
  2. WHEN the last session of the month opens · IF invested · THEN sell the whole position

This template uses no indicators. It tests the turn-of-the-month effect by holding from each month's first open to its last. Whatever it earns or loses comes from calendar seasonality alone, so it is a useful comparison against buy-and-hold on the same page.

Good for: measuring how much of an asset's return accrues inside the month versus across month boundaries.
Watch out: this is a research template. It holds ~95% of all sessions, so results usually track buy-and-hold minus the boundary days.

How the calendar rule compares with the other templates

On SOXX the monthly cycle ranked 2nd by CAGR. The weekly 7% target earned 30.54% with a 22.76% drawdown, ahead on both counts. The golden cross earned 28.24% with 28.82%. The dip buyer earned 27.48% with 39.25%. The trend plus trailing stop earned 19.81% and the 200-day regime filter 19.21%.

The weaker end included the RSI(2) snapback at 17.01%, the momentum breakout at 16.73% and the SMA 10/50 trend at 7.65%. The templates that sit out part of the time gave up return in a fund that mostly rose.

Among sector funds, the monthly cycle earned 20.86% on XLK, 11.63% on XLF, 5.97% on VOX, 5.46% on XLP and 3.67% on XLY. All of those funds show 69 round trips, since the rule trades on the calendar and not on the fund. The template's median CAGR across all 59 funds was 5.46%, and across sector funds 11.63%. SOXX at 29.17% sits far above both medians. The rule is the same on every fund, and on SOXX the fund's momentum produced the result.

The test stops at one window. The 2022 drawdown and the 2026 surge are both inside it, and a start date a year later or earlier would change the totals and the ranking.

The same calendar rule on other sector funds

The monthly cycle made 69 round trips on every sector fund in the category, so the difference between funds comes from the funds and not from the trading. SOXX returned 29.17% a year with a 44.51% drawdown. XLK returned 20.86% with a 32.05% drawdown, XLF returned 11.63% with 23.47%, VOX returned 5.97% with 46.22%, XLP returned 5.46% with 13.42% and XLY returned 3.67% with 43.81%.

The median CAGR for this rule across the category was 11.63%, and across all 59 funds it was 5.46%. SOXX sat well above both. XLP shows the other end of the risk range, with the shallowest drawdown and a return near the all-fund median. VOX and XLY took drawdowns close to SOXX's with far smaller returns. The rule gave no protection in any of them, and the ranking tracks how much each fund rose.

Of the three variants, the 200-day filter is the one that changed risk most. It made 40 trades against 69, cut the drawdown to 28.63% and lifted the Sharpe ratio to 1.021, while the CAGR slipped to 26.94%. The 5% profit target made 69 trades with 49 wins, a 16.73% CAGR and a 32.91% drawdown. Cutting winners at 5% gave up return on a fund where the best months, April 2026 at 35.47% and May 2026 at 25.05%, were large.

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

Over 2021-01-04 to 2026-10-02, monthly cycle on SOXX returned 29.2% annualized vs 31.1% for buy-and-hold: it trailed buy-and-hold by 1.9% per year, with a maximum drawdown 0.6 points shallower than holding (44.5% vs 45.1%).

How many trades did it make?

69 completed round trips over 5.7 years (139 fills), with 62% of round trips closing profitably.

Is the turn-of-the-month effect real?

It has appeared in long historical studies, but it depends on the market regime and is small. These pages show the recent five and a half years per ETF.

How did the monthly cycle do on SOXX?

It turned $10,000 into $43,478 from 2021-01-04 to 2026-10-02, a 29.17% CAGR with a 44.51% max drawdown. Buy-and-hold SOXX made 31.11% a year with a 45.06% drawdown. The figures are hypothetical and have no fees or slippage.

Did the monthly cycle beat buy-and-hold on SOXX?

No on the whole window, where it trailed by 1.94% a year. It led in 2024, 2025 and 2026 and trailed in 2021, 2022 and 2023. Its drawdown was within a point of the fund's.

What is the win rate and how long are trades held?

43 of 69 round trips won, a win rate of 62%. Trades held between 25 and 30 days, with an average of 28.4 and a median of 29. The profit factor was 2.26.

What was the best and worst trade?

The best was April 2026, from 332.84 to 454.3 for 36.49%. The worst was June 2022, from 137.89 to 112.67 for -18.29%. Prices are adjusted for splits and dividends.

What happens with trading costs?

At 5 basis points the CAGR was 27.62% and at 10 basis points it was 26.14%, against 29.17% with none. The rule made 139 fills.

Did any variant improve the result?

Trading only above the 200-day average gave a 26.94% CAGR, a 28.63% max drawdown and a Sharpe of 1.021, against 29.17%, 44.51% and 0.9 for the base. Trading only after a positive month returned 11.19%, and a 5% profit target returned 16.73%.

Related

First-to-Last Day of Month 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.