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

First-to-Last Day of Month on XLY

Consumer Discretionary Select Sector SPDR Fund: consumer discretionary stocks, a cyclical read on the US consumer. 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 XLY turned $10,000 into $12,300 (23.0% total, 3.7% CAGR): it trailed buy-and-hold by 2.6% per year, with a maximum drawdown of 43.8% (buy-and-hold: 39.1%).
3.7%CAGR
6.3%buy & hold CAGR
−43.8%max drawdown
0.28Sharpe ratio
69round trips
52%win rate
■ monthly cycle   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmonthly cyclebuy & hold
202122.2%28.5%
2022−41.1%−35.7%
202333.7%38.7%
202425.2%26.0%
202512.1%7.3%
2026−7.7%−7.2%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20213.5%−0.9%2.5%5.0%−3.2%2.8%0.6%1.0%−0.7%9.3%1.9%−1.0%
2022−13.8%−5.2%5.9%−9.8%−5.1%−11.2%15.4%−3.4%−6.8%1.1%−3.2%−12.0%
202312.3%−1.6%1.3%−0.8%3.2%11.1%1.0%−1.4%−5.4%−5.3%10.1%7.0%
2024−2.8%6.7%0.1%−3.0%−0.5%4.2%1.9%−1.3%7.2%−0.2%9.5%1.7%
20253.9%−6.5%−10.6%−1.8%7.7%2.9%4.2%7.8%5.2%0.4%−2.5%2.4%
20261.1%−3.8%−5.3%7.5%2.3%−1.9%−2.0%−1.3%−4.8%0.8%––

Every trade

monthly cycle on XLY 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 4.85%, an average loser of −4.31%, a profit factor of 1.15, a longest losing streak of 4. It held a position at the close on 95.2% of trading days.

Best 10 round trips

EntryEntry priceExitExit priceReturnDays held
2022-07-01$66.682022-07-29$77.2415.8%28
2023-01-03$62.812023-01-31$70.7812.7%28
2023-06-01$73.772023-06-30$82.1411.3%29
2023-11-01$74.582023-11-30$82.3110.4%29
2024-11-01$98.762024-11-29$108.449.8%28
2021-10-01$86.652021-10-29$94.939.6%28
2025-08-01$107.302025-08-29$115.958.1%28
2025-05-01$98.022025-05-30$105.747.9%29
2026-04-01$109.142026-04-30$117.537.7%29
2024-09-03$91.692024-09-30$98.467.4%27

Worst 10 round trips

EntryEntry priceExitExit priceReturnDays held
2022-01-03$100.002022-01-31$85.92−14.1%28
2022-12-01$70.862022-12-30$62.15−12.3%29
2022-06-01$74.982022-06-30$66.37−11.5%29
2025-03-03$107.052025-03-31$95.45−10.8%28
2022-04-01$89.592022-04-29$80.61−10.0%28
2022-09-01$74.512022-09-30$69.32−7.0%29
2025-02-03$112.082025-02-28$104.59−6.7%25
2023-09-01$83.702023-09-29$79.08−5.5%28
2023-10-02$77.952023-10-31$73.69−5.5%29
2026-03-02$113.192026-03-31$107.03−5.4%29

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-11-192022-12-28−43.8%4042024-12-17720
2025-02-042025-04-08−26.2%632025-08-26140
2026-01-122026-03-30−12.5%77not yet–

Buy-and-hold's deepest drawdown ran from 2021-11-19 to 2022-12-28 and reached −39.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)3.7%−43.8%$12,3000.28
5 basis points2.5%−44.5%$11,5140.23
10 basis points1.3%−45.2%$10,7720.18

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules3.7%−43.8%6952%$12,300
Only after a positive month−1.5%−37.5%4351%$9,153
Only above the 200-day SMA2.0%−20.3%4053%$11,186
With a 5% profit target3.8%−37.0%6958%$12,388

How XLY behaved

MeasureXLY
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold44.7%
Annualized volatility23.3%
Deepest drawdown−39.7% (2021-11-19 to 2022-12-28)
Up days53.0%
Average daily range1.68%
Average overnight gap0.63%
Correlation to SPY0.87
Correlation to QQQ0.86
Correlation to TLT0.11
Sessions above the 200-day average65.1%
Crossings of the 200-day average59
Falls of 10% or more from a 20-day high24

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 XLY 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 XLY?

Over 2021-01-04 to 2026-10-02, monthly cycle on XLY returned 3.7% annualized vs 6.3% for buy-and-hold: it trailed buy-and-hold by 2.6% per year, with a maximum drawdown of 43.8% (buy-and-hold: 39.1%).

How many trades did it make?

69 completed round trips over 5.7 years (139 fills), with 52% 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 XLY12 templates compared RSI(14) Mean Reversion on XLYsame ETF, different rulesRSI(2) Dip Snapback on XLYsame 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.