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

First-to-Last Day of Month on XLP

Consumer Staples Select Sector SPDR Fund: defensive consumer staples, a common risk-off equity 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 XLP turned $10,000 into $13,570 (35.7% total, 5.5% CAGR): it trailed buy-and-hold by 0.3% per year, with a maximum drawdown 2.6 points shallower than holding (13.4% vs 16.0%).
5.5%CAGR
5.8%buy & hold CAGR
−13.4%max drawdown
0.50Sharpe ratio
69round trips
54%win rate
■ monthly cycle   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmonthly cyclebuy & hold
202120.8%18.1%
20220.1%−0.7%
2023−1.8%−0.9%
202411.6%12.0%
2025−1.6%1.5%
20265.1%5.6%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
2021−2.4%−0.3%7.6%2.1%1.6%−1.5%2.0%0.7%−2.2%3.0%0.4%8.7%
2022−1.9%−1.5%2.1%4.4%−4.6%−3.0%2.8%−1.1%−5.9%8.2%3.6%−2.2%
2023−1.9%−1.8%4.2%3.4%−5.8%2.3%2.8%−3.7%−4.4%−1.5%3.0%2.4%
20242.3%2.4%3.8%−1.0%0.9%0.4%1.1%5.0%1.6%−3.4%3.0%−4.6%
20250.1%5.7%−1.9%−0.2%1.3%−1.6%−1.8%−0.2%−2.8%−2.9%4.0%−0.8%
20266.1%6.2%−7.8%2.2%−0.8%2.3%1.7%−0.9%−3.3%0.1%––

Every trade

monthly cycle on XLP 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 3.19%, an average loser of −2.58%, a profit factor of 1.35, a longest losing streak of 5. It held a position at the close on 95.2% of trading days.

Best 10 round trips

EntryEntry priceExitExit priceReturnDays held
2021-12-01$62.022021-12-31$67.578.9%30
2022-10-03$60.302022-10-31$65.358.4%28
2021-03-01$54.962021-03-31$59.257.8%30
2026-02-02$82.152026-02-27$87.366.3%25
2026-01-02$76.102026-01-30$80.876.3%28
2025-02-03$74.932025-02-28$79.285.8%25
2024-08-01$73.582024-08-30$77.315.1%29
2022-04-01$67.312022-04-29$70.374.5%28
2023-03-01$64.892023-03-31$67.694.3%30
2025-11-03$73.792025-11-28$76.794.1%25

Worst 10 round trips

EntryEntry priceExitExit priceReturnDays held
2026-03-02$88.072026-03-31$81.01−8.0%29
2022-09-01$65.172022-09-30$61.22−6.1%29
2023-05-01$70.282023-05-31$66.11−5.9%30
2022-05-02$69.282022-05-31$65.99−4.8%29
2024-12-02$78.742024-12-31$75.03−4.7%29
2023-09-01$66.852023-09-29$63.85−4.5%28
2023-08-01$69.402023-08-31$66.74−3.8%30
2024-10-01$78.652024-10-31$75.90−3.5%30
2021-01-04$57.952021-01-29$55.97−3.4%25
2026-09-01$84.972026-09-30$82.11−3.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
2022-04-202022-10-07−13.4%1702024-03-07517
2025-03-032025-11-06−10.9%2482026-02-0389
2026-02-242026-03-20−9.8%24not yet–

Buy-and-hold's deepest drawdown ran from 2022-04-20 to 2022-10-07 and reached −16.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)5.5%−13.4%$13,5700.50
5 basis points4.3%−14.1%$12,6980.41
10 basis points3.0%−15.7%$11,8500.31

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules5.5%−13.4%6954%$13,570
Only after a positive month0.7%−12.0%3954%$10,431
Only above the 200-day SMA0.3%−19.0%4450%$10,154
With a 5% profit target3.8%−14.1%6954%$12,417

How XLP behaved

MeasureXLP
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold40.3%
Annualized volatility13.3%
Deepest drawdown−16.3% (2022-04-20 to 2022-10-07)
Up days51.6%
Average daily range1.12%
Average overnight gap0.29%
Correlation to SPY0.47
Correlation to QQQ0.30
Correlation to TLT0.13
Sessions above the 200-day average75.1%
Crossings of the 200-day average73
Falls of 10% or more from a 20-day high1

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

Over 2021-01-04 to 2026-10-02, monthly cycle on XLP returned 5.5% annualized vs 5.8% for buy-and-hold: it trailed buy-and-hold by 0.3% per year, with a maximum drawdown 2.6 points shallower than holding (13.4% vs 16.0%).

How many trades did it make?

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