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

First-to-Last Day of Month on XLF

Financial Select Sector SPDR Fund: S&P 500 banks, insurers and asset managers. 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 XLF turned $10,000 into $18,809 (88.1% total, 11.6% CAGR): it trailed buy-and-hold by 0.9% per year, with a maximum drawdown 2.0 points shallower than holding (23.5% vs 25.5%).

Buying XLF at the first session of each month and selling at the last turned $10,000 into $18,809 between 2021-01-04 and 2026-10-02. The CAGR was 11.63%, the maximum drawdown was 23.47% and the Sharpe ratio was 0.73. Buy-and-hold on the same fund ended at $19,742 with a CAGR of 12.58%, a drawdown of 25.47% and a Sharpe of 0.76. The monthly cycle finished 0.95 points a year behind holding and 2 points shallower in drawdown.

The rule is a research template. It has no indicator and no stop. It holds for 95.2% of trading days and sits out only the boundary between one month's last open and the next month's first open. That is why the two equity curves track each other. XLF is the Financial Select Sector SPDR Fund, which holds S&P 500 banks, insurers and asset managers, and the question this page answers is whether skipping those boundary days helped or hurt on this fund.

Over 69 completed round trips, 40 were winners, a win rate of 58%. The average winner was 4.53% and the average loser was -3.74%, which gave a profit factor of 1.58. A 70th trade was open at the end of the data, bought on 2026-10-01 at an adjusted $53.3328 and marked at +0.28%. The rule ranked 2nd of the 12 templates on XLF by CAGR, and XLF was 23rd of 59 funds for this rule. The strategy is described on the monthly cycle hub, and the fund has its own XLF page.

11.6%CAGR
12.6%buy & hold CAGR
−23.5%max drawdown
0.73Sharpe ratio
69round trips
58%win rate
■ monthly cycle   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmonthly cyclebuy & hold
202134.0%35.8%
2022−10.9%−10.4%
20238.8%11.9%
202430.4%29.9%
202514.6%14.7%
2026−1.6%−1.1%

Year by year against holding

The two columns of the year table differ by small amounts in most years. Monthly cycle returned 34% in 2021, -10.9% in 2022, 8.8% in 2023, 30.4% in 2024, 14.6% in 2025 and -1.6% in 2026 to date. Buy-and-hold returned 35.8%, -10.4%, 11.9%, 29.9%, 14.7% and -1.1%.

The rule beat holding in exactly one year, 2024, by 0.5 points. It trailed by 1.8 points in 2021, 0.5 in 2022, 3.1 in 2023, 0.1 in 2025 and 0.5 in 2026. Four of the six gaps are half a point or less. Two years stand out. In 2021 the fund returned 35.8% and a rule that skipped the boundary days gave up 1.8 points of it. In 2023 the gap was 3.1 points, the widest in the table,.

The trade count per year agrees with the calendar. The rule closed 12 round trips in each of 2021 to 2025, and 9 in 2026 up to the data's end. Winners per year were 8 in 2021, 5 in 2022, 6 in 2023, 8 in 2024, 9 in 2025 and 4 in 2026. The 2022 count of 5 winners in 12 trips is the weakest of the table and lines up with the one year in which the fund fell by about a tenth. In 2025, 9 of 12 trades were winners, and the rule still trailed holding by 0.1 points. That small gap is the cost of the boundary days: when the fund gained across a month boundary the rule missed that gain, and when it lost across one the rule was spared.

Over the whole window these small gaps added up to a CAGR 0.95 points lower and a final value $932.47 below holding. The result matches the template's own caveat, which says it usually tracks buy-and-hold minus the boundary days.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20211.1%12.2%4.5%6.5%3.7%−4.8%−0.7%4.8%0.1%7.0%−5.0%1.5%
2022−2.4%−2.0%2.9%−7.5%1.8%−11.1%6.2%−0.0%−6.0%10.4%3.9%−5.6%
20234.9%−1.5%−9.1%1.3%−4.0%5.9%4.5%−2.0%−2.3%−2.9%9.4%5.8%
20244.5%4.2%4.3%−3.6%1.8%−1.1%6.4%3.4%−1.1%4.1%10.3%−5.3%
20256.4%1.2%−6.4%−3.2%4.1%3.2%0.5%4.4%1.4%−3.0%1.6%4.3%
2026−2.3%−2.6%−2.8%2.9%−2.0%4.8%5.6%0.7%−5.6%0.3%––

The months that moved the account

The month table lists every calendar month of the window. The best month was February 2021 at +12.21%. The worst was June 2022 at -11.08%. Buy-and-hold's worst month was the same one, June 2022, at -10.64%, so the rule was in the fund through that fall with a slightly worse result.

The 2022 row is the hardest to read. January -2.4%, February -2.0%, March +2.9%, April -7.5%, May +1.8%, June -11.1%, July +6.2%, August -0.0%, September -6.0%, October +10.4%, November +3.9% and December -5.6%. The rule's gains in March, July, October and November were each offset by losses elsewhere, and the drawdown of 23.47% began on 2022-01-12.

The fund's average return by calendar month, from its profile table, gives a reference for which months should have been strong. September averaged -3.37% across 6 observations, March averaged -1.11%, and July averaged 4.03%, October 3.3% and November 4.85%. The monthly cycle's own September results were 0.1% in 2021, -6.0% in 2022, -2.3% in 2023, -1.1% in 2024, 1.4% in 2025 and -5.6% in 2026, which matches the fund's weak September. November results were -5.0%, 3.9%, 9.4%, 10.3% and 1.6% for 2021 to 2025.

Five or six observations per calendar month is a small sample. A month that averages 4.85% over 5 Novembers can be driven by a single one. The table is a description of this window and says little about the next one.

Every trade

monthly cycle on XLF 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.53%, an average loser of −3.74%, a profit factor of 1.58, 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
2021-02-01$26.502021-02-26$29.8112.5%25
2022-10-03$28.722022-10-31$31.7810.7%28
2024-11-01$45.202024-11-29$49.9310.5%28
2023-11-01$30.952023-11-30$33.949.7%29
2021-10-01$34.642021-10-29$37.117.1%28
2021-04-01$31.012021-04-30$33.066.6%29
2024-07-01$39.882024-07-31$42.506.6%30
2025-01-02$47.382025-01-31$50.486.5%29
2022-07-01$29.192022-07-29$31.046.3%28
2023-06-01$30.162023-06-30$31.986.0%29

Worst 10 round trips

EntryEntry priceExitExit priceReturnDays held
2022-06-01$32.792022-06-30$29.08−11.3%29
2023-03-01$33.392023-03-31$30.28−9.3%30
2022-04-01$35.682022-04-29$32.96−7.6%28
2025-03-03$51.042025-03-31$47.72−6.5%28
2022-09-01$30.612022-09-30$28.73−6.1%29
2022-12-01$34.092022-12-30$32.13−5.8%29
2026-09-01$57.202026-09-30$53.94−5.7%29
2024-12-02$49.922024-12-31$47.20−5.5%29
2021-11-01$37.162021-11-30$35.28−5.1%29
2021-06-01$35.002021-06-30$33.30−4.9%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.

Trade by trade

The first trade began on 2021-01-04 at an adjusted $26.79 and closed on 2021-01-29 at $26.65 for -0.52%. The best trade began on 2021-02-01 at $26.50 and closed on 2021-02-26 at $29.81 for +12.49% in 25 days. The next best were October 2022, +10.65%, November 2024, +10.46%, November 2023, +9.66%, and October 2021, +7.13%. Four of the five best trades began on the first session of October or November, the months in which XLF's average return was strongest.

The worst was June 2022, entered at $32.79 on 2022-06-01 and closed at $29.08 on 2022-06-30 for -11.31%. Next were March 2023 at -9.31%, April 2022 at -7.62%, March 2025 at -6.5% and September 2022 at -6.14%. The fund's worst days of -4.07% on 2023-03-09 and -3.94% on 2023-03-13 fall inside the March 2023 trade. The rule held through both.

Hold times were tightly bunched. The median hold was 29 days, the shortest 25 and the longest 30. The median return per trade was 1.45%. The longest winning streak was 5 and the longest losing streak was 3. With 40 winners and 29 losers, the edge per trade came from winners being larger than losers, 4.53% to -3.74%, and it was not a high hit rate.

The open trade on 2026-10-01 will close on the last session of October if the rule keeps running. Its +0.28% mark is one day of data.

Where XLF's biggest days landed inside the monthly trades

Because the rule holds almost every session, each of the fund's extreme days sits inside one of the 69 trades, and the trade result shows what that day did to the account.

The best day of the window, +7.59% on 2025-04-09, fell inside the April 2025 trade, which began on 2025-04-01 and closed at the end of the month. That month finished at -3.21% for the strategy, so even the biggest up day did not rescue it. In the days before it, -4.97% on 2025-04-03 and -7.36% on 2025-04-04, were the fund's worst two days of the test, and both came inside the same trade. March 2025 had already been a loser at -6.5% for the trade.

The second best day, +6.09% on 2024-11-06, sits inside the November 2024 trade that entered at $45.20 and closed at $49.93 for +10.46%, the third best trade of the record. The +5.11% on 2022-11-10 and the +4.17% on 2022-10-13 each landed in a month the strategy gained, +3.9% in November 2022 and +10.43% in October 2022. The October trade entered at $28.72 on 2022-10-03, nine days before the fund's own trough on 2022-10-12, and closed at $31.78 for +10.65%.

The opening trade shows the reverse case. XLF rose 4.38% on 2021-01-06, yet the first trade from 2021-01-04 to 2021-01-29 lost 0.52%, since the rest of the month gave the gain back. In September 2022 the -3.78% day on 2022-09-13 sat inside a trade that lost 6.14%. A rule with no exit logic takes the month as it comes.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2022-01-122023-05-04−23.5%4772024-02-28300
2025-02-182025-04-08−18.0%492025-08-22136
2026-01-062026-03-27−12.2%802026-07-16111

Buy-and-hold's deepest drawdown ran from 2022-01-12 to 2022-10-12 and reached −25.5%.

Drawdowns compared with holding

The deepest drawdown of the rule ran from 2022-01-12 to a low on 2023-05-04, a decline of 23.47% over 477 days, with recovery on 2024-02-28 after another 300 days. Holding the fund fell 25.47% over the same peak, bottoming earlier on 2022-10-12 and recovering on 2024-02-22. The rule's trough came later than the fund's, and its recovery came a few days after the fund's. The shallower depth reflects the monthly path: the account stepped out at each month end and back in at the next start, and the fund's boundary moves in 2022 happened to favour that.

The second drawdown started on 2025-02-18 and bottomed on 2025-04-08 at 17.96%, recovering on 2025-08-22. Holding fell 15.33% on the same dates and recovered on 2025-06-27. This one went the other way: the rule fell more than the fund and took longer to get back. The fund's best day of the window, +7.59% on 2025-04-09, came the day after the low, and its worst, -7.36% on 2025-04-04, came just before it. The April trade began on 2025-04-01 and was held through both.

The third began on 2026-01-06 and bottomed on 2026-03-27 at 12.15%, against 14.65% for holding. The rule recovered on 2026-07-16 and the fund on 2026-07-06.

Across the three drawdowns the rule was shallower in two and deeper in one. The overall improvement of 2 points in the maximum drawdown is real in this window and depends on how one stretch of 2022 fell relative to month boundaries.

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)11.6%−23.5%$18,8090.73
5 basis points10.3%−24.7%$17,5770.66
10 basis points9.0%−25.9%$16,4330.59

Cost runs: a 69-trip strategy pays for its fills

The headline run has no slippage. At 5 basis points on each fill, the CAGR was 10.32%, the maximum drawdown was 24.69% and the final value was $17,577. At 10 basis points the CAGR was 9.04%, the drawdown was 25.85% and the final value was $16,433. The Sharpe ratio moved from 0.73 to 0.661 and then 0.595.

With 139 fills over 5.74 years, the rule trades far more than most of the library's templates, and the costs show it. A 10 basis point charge per fill took the CAGR from 11.63% to 9.04%. Buy-and-hold made one fill and was barely touched by the same assumption.

Buy-and-hold fills once, so the same slippage assumption leaves it nearly unchanged. XLF's liquidity is high, with an average daily dollar volume of $1,682,204,673 and a median minute volume of 62,901 shares, so a 5 basis point assumption is reasonable for a $10,000 account at the open and close. The test does not model price impact on larger accounts.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules11.6%−23.5%6958%$18,809
Only after a positive month1.3%−31.3%4154%$10,775
Only above the 200-day SMA2.9%−26.0%4356%$11,809
With a 5% profit target14.7%−18.0%6965%$21,994

Variants: filters hurt, a target helped

Three variants of the rule were run on the same window. Two add a filter to the entry and one adds a profit target.

Entering only after a positive month gave a CAGR of 1.31%, a drawdown of 31.33% and a final value of $10,775 over 41 trades, 22 of them winners. Entering only when the fund was above its 200-day average gave a CAGR of 2.94%, a drawdown of 25.99% and $11,809 over 43 trades, 24 winners. Both lost most of the return of the base rule. XLF was above its 200-day average on 71.16% of sessions, and the gate removed the months that followed the weak ones, including some of the rebounds.

The third variant added a 5% profit target. It gave a CAGR of 14.72%, a drawdown of 17.97% and a final value of $21,994 over 69 trades, 45 of them winners and a Sharpe of 0.966. That beat both the base rule and buy-and-hold on every column of the table. The target sold winners early and the rule bought back in at the next month start. The result is one test on one window with one target level, so the 5% choice carries an unknown amount of selection. It is the only variant here that improved on holding, and its path was less exposed to the 2022 drawdown.

How XLF behaved

MeasureXLF
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold102.9%
Annualized volatility18.4%
Deepest drawdown−25.9% (2022-01-12 to 2022-10-12)
Up days52.9%
Average daily range1.40%
Average overnight gap0.49%
Correlation to SPY0.77
Correlation to QQQ0.59
Correlation to TLT-0.05
Sessions above the 200-day average71.2%
Crossings of the 200-day average38
Falls of 10% or more from a 20-day high10

What XLF's own behaviour contributes

XLF returned 102.88% in total over the 1,444 sessions, a CAGR of 13.11% and annualized volatility of 18.43%. It was up on 52.88% of days with an average up day of 0.86% and an average down day of -0.86%. The average intraday range was 1.4% and the average overnight gap was 0.49%. 62.56% of the fund's log return came overnight.

That overnight share is relevant to a rule that buys at the first open of the month and sells at the last open. The last open sale is at the open of the final session, so the final session's whole move is skipped, and the first open purchase takes in the first session's whole move. The rule skips the last session's move each month and holds the overnight gaps in between.

The fund's lag-1 autocorrelation was 0.02 and its correlation to SPY was 0.77. XLF ranged from a trough of -25.87% in its own drawdown, from 2022-01-12 to 2022-10-12, to a rebound to new highs by 2024-02-22. RSI(14) fell below 30 on 30 sessions, followed by a median 20-day return of 3.18% against a baseline of 1.5%.

The fund's month-of-year pattern is irregular. March and April averaged -1.11% and -0.15%, June averaged -0.1% and September -3.37%, while January averaged 2.77%, July 4.03%, October 3.3% and November 4.85%. The rule holds through all of them, which is the design of a calendar test.

XLF's RSI statistics and weekday averages

The fund's 14-day RSI closed above 70 on 96 sessions and below 30 on 30. After the 26 oversold readings with a 20-day forward window, the median 20-day return was 3.18%, against a baseline of 1.5% for all sessions. The 5-day figure was 0.75% against 0.42%. The 2-day RSI fell below 10 on 169 sessions, and the median 20-day return after those was 1.89%. Dips in XLF were followed by above-average returns in this window, which is the pattern the RSI mean reversion template exploits and a calendar rule ignores.

The weekday averages are small and even: Monday 0.08%, Tuesday 0.04%, Wednesday 0.07%, Thursday 0.03% and Friday 0.07%. No day of the week stands out, so the first-session purchase and the last-session sale are not trading into a weekday effect. XLF moved 10% from a 20-day high on 10 separate occasions covering 45 sessions, and its beta to SPY was 0.87 against 0.48 to QQQ. The rule rides that market exposure for 95.2% of days, so most of the page's variation comes from the market and little from the calendar.

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.

Rules, ranking and peers

The two rules are a first-session buy with 98% of the sleeve, once per month, and a sale of the whole position at the last session's open. There is no indicator, so nothing on this page depends on parameter choice other than the variants tested above.

Among the 12 templates on XLF, RSI mean reversion came first with 11.82% and a drawdown of 18.73%, ahead of the monthly cycle at 11.63%. The RSI(2) snapback returned 9.72% with the shallowest drawdown of 14.57%. The weekly 7% target returned 7.13% with a 31.64% drawdown, and at the bottom the 200-day regime filter returned 2.06%. The monthly cycle ranks well on XLF largely because the indicator rules lost time sitting in cash while the fund rose.

Across the 59 funds, the monthly cycle had a median CAGR of 5.46%. Among the six sector funds it was 11.63%, which is XLF itself. The category's other results were SOXX at 29.17% with a drawdown of 44.51%, XLK at 20.86%, VOX at 5.97%, XLP at 5.46% and XLY at 3.67%. All six had 69 round trips, since the calendar dictates the trade count. The same rule on XLK and XLP is a way to see how much of each result is the fund and how much is the calendar.

The test is one window of 5.74 years with daily-open decisions, no margin and no costs in the headline run. A bank and insurer fund that went through the 2022 rate shock and the March 2023 bank stress is a specific sample, and the rule's result should be read as such.

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

Over 2021-01-04 to 2026-10-02, monthly cycle on XLF returned 11.6% annualized vs 12.6% for buy-and-hold: it trailed buy-and-hold by 0.9% per year, with a maximum drawdown 2.0 points shallower than holding (23.5% vs 25.5%).

How many trades did it make?

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

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

No. It returned 11.63% a year against 12.58% for holding, and ended at $18,809 against $19,742. It was ahead in one calendar year, 2024, by 0.5 points. Its maximum drawdown was 2 points shallower, at 23.47% against 25.47%.

How many trades did the strategy make on XLF?

It made 69 completed round trips and 139 fills, with a 70th trade open at the end of the data. 40 round trips were winners, a win rate of 58%. The average winner was 4.53% and the average loser was -3.74%.

What was the best and worst month for the rule?

The best month was February 2021 at +12.21%, and the best single trade returned +12.49%. The worst month was June 2022 at -11.08%, and the worst trade, from 2022-06-01 to 2022-06-30, returned -11.31%.

Do filters improve the monthly cycle on XLF?

Not in this window. Entering only after a positive month returned 1.31% a year, and entering only above the 200-day average returned 2.94%. Both ended well below the base rule's $18,809.

Does a profit target help?

A 5% target gave a CAGR of 14.72% and a drawdown of 17.97%, ahead of both the base rule and buy-and-hold. It is a single test with one target level on one window, so it describes this period.

How much do trading costs matter?

Quite a lot for this rule, because it makes 139 fills. At 5 basis points of slippage per fill the CAGR was 10.32% and at 10 basis points it was 9.04%, against 11.63% in the headline run.

Is XLF a good fit for a calendar rule?

XLF's average daily dollar volume was $1,682,204,673, so fills are liquid. Its calendar-month averages are uneven, with September at -3.37% and November at 4.85% over 5 or 6 observations each. The rule held 95.2% of sessions and tracked the fund closely.

Related

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