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

First-to-Last Day of Month on XLK

Technology Select Sector SPDR Fund: S&P 500 technology stocks, the sector behind most recent bull runs. 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 XLK turned $10,000 into $29,671 (196.7% total, 20.9% CAGR): it trailed buy-and-hold by 1.2% per year, with a maximum drawdown 0.9 points shallower than holding (32.0% vs 33.0%).
20.9%CAGR
22.1%buy & hold CAGR
−32.0%max drawdown
0.93Sharpe ratio
69round trips
64%win rate
■ monthly cycle   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmonthly cyclebuy & hold
202130.7%36.1%
2022−28.9%−27.2%
202349.3%54.6%
202426.5%21.3%
202526.9%24.3%
202635.7%38.9%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20212.8%0.5%−0.7%4.3%−1.3%6.2%3.5%3.3%−4.7%6.3%4.8%2.7%
2022−9.1%−5.1%5.1%−8.1%−0.7%−9.9%11.9%−4.1%−9.3%7.1%0.0%−8.6%
20236.8%0.4%9.1%−0.4%8.9%5.6%2.5%−1.1%−6.3%−0.7%12.5%4.9%
20245.2%3.8%0.4%−4.0%7.4%7.1%−4.4%0.7%3.1%0.5%4.1%0.5%
20250.0%−2.0%−10.1%−0.4%7.5%9.5%5.6%2.4%9.2%8.0%−6.3%2.8%
20260.3%−3.9%−5.3%18.4%17.4%−2.8%−5.1%7.1%6.6%1.6%––

Every trade

monthly cycle on XLK 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 5.47%, an average loser of −4.68%, a profit factor of 2.14, 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$133.702026-04-30$158.8818.8%29
2026-05-01$160.162026-05-29$188.7517.9%28
2023-11-01$80.762023-11-30$91.1212.8%29
2022-07-01$61.562022-07-29$69.0812.2%28
2025-06-02$114.562025-06-30$125.709.7%28
2025-09-02$127.552025-09-30$139.469.3%28
2023-03-01$66.472023-03-31$72.659.3%30
2023-05-01$73.752023-05-31$80.479.1%30
2025-10-01$139.462025-10-31$150.858.2%30
2025-05-01$106.522025-05-30$114.717.7%29

Worst 10 round trips

EntryEntry priceExitExit priceReturnDays held
2025-03-03$112.192025-03-31$100.63−10.3%28
2022-06-01$68.722022-06-30$61.77−10.1%29
2022-09-01$64.952022-09-30$58.76−9.5%29
2022-01-03$84.222022-01-31$76.40−9.3%28
2022-12-01$65.932022-12-30$60.13−8.8%29
2022-04-01$76.952022-04-29$70.58−8.3%28
2025-11-03$151.192025-11-28$141.41−6.5%25
2023-09-01$86.542023-09-29$80.96−6.5%28
2026-03-02$136.442026-03-31$129.00−5.5%29
2022-02-01$78.042022-02-28$73.94−5.3%27

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
2021-12-272023-01-05−32.0%3742023-11-30329
2025-02-182025-04-08−27.7%492025-07-25108
2024-07-102024-08-07−17.4%282024-11-0792

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

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)20.9%−32.0%$29,6710.93
5 basis points19.4%−32.9%$27,7340.88
10 basis points18.1%−33.7%$25,9430.83

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules20.9%−32.0%6964%$29,671
Only after a positive month13.1%−26.7%4269%$20,279
Only above the 200-day SMA15.4%−24.8%4567%$22,808
With a 5% profit target16.7%−27.4%6971%$24,311

How XLK behaved

MeasureXLK
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold226.1%
Annualized volatility25.1%
Deepest drawdown−33.6% (2021-12-27 to 2022-10-12)
Up days55.2%
Average daily range1.77%
Average overnight gap0.69%
Correlation to SPY0.91
Correlation to QQQ0.97
Correlation to TLT0.07
Sessions above the 200-day average76.5%
Crossings of the 200-day average22
Falls of 10% or more from a 20-day high30

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.

Run monthly cycle on XLK 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 XLK?

Over 2021-01-04 to 2026-10-02, monthly cycle on XLK returned 20.9% annualized vs 22.1% for buy-and-hold: it trailed buy-and-hold by 1.2% per year, with a maximum drawdown 0.9 points shallower than holding (32.0% vs 33.0%).

How many trades did it make?

69 completed round trips over 5.7 years (139 fills), with 64% 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.

Related

First-to-Last Day of Month on all 59 ETFsfull results table All strategies on XLK12 templates compared RSI(14) Mean Reversion on XLKsame ETF, different rulesRSI(2) Dip Snapback on XLKsame 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.