Learn › Strategies › RSI(14) Mean Reversion › XLF

RSI(14) Mean Reversion 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: RSI mean reversion on XLF turned $10,000 into $18,993 (89.9% total, 11.8% CAGR): it trailed buy-and-hold by 0.8% per year, with a maximum drawdown 6.7 points shallower than holding (18.7% vs 25.5%).

RSI mean reversion did best on XLF of the 12 templates tested on this fund. Starting with $10,000 on 2021-01-04, it reached $18,993 by 2026-10-02, a CAGR of 11.82%. Buy-and-hold ended at $19,742 with a CAGR of 12.58%, so the rule fell just short on return, by 0.76 points a year. It came out ahead on risk: a maximum drawdown of 18.73% against 25.47%, and a Sharpe ratio of 0.92 against 0.76. The strategy completed 20 round trips, won 17 of them for an 85% win rate, and held a position on 37.2% of trading days. A 21st trade was still open on 2026-10-02.

The rule is a pair of RSI(14) thresholds. It buys at the next open once RSI(14) has dropped below 30, using 98% of the sleeve, and sells the whole position at an open once RSI(14) is above 70. There is no stop and no profit target. Average winners were 5.53% and average losers were -7.38%, and the profit factor of 3.82 comes from winning far more often than losing. The cost of that shape is visible in the three losing trades, which together did more damage than their number suggests.

XLF is the Financial Select Sector SPDR Fund, with banks, insurers and asset managers from the S&P 500. The test is one window of 1,444 sessions with daily-decision rules, fills on minute bars, and no fees in the headline run. The year-by-year record, the trades and the fund's own statistics below explain where the 85% win rate came from and where the rule gave ground.

11.8%CAGR
12.6%buy & hold CAGR
−18.7%max drawdown
0.92Sharpe ratio
20round trips
85%win rate
■ RSI mean reversion   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearRSI mean reversionbuy & hold
202124.3%35.8%
202212.3%−10.4%
2023−0.1%11.9%
202410.5%29.9%
202523.8%14.7%
2026−0.4%−1.1%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%9.2%0.0%0.0%0.0%3.9%−0.4%3.4%2.8%4.3%−4.0%3.3%
20228.6%3.8%5.3%−7.1%2.7%−10.6%7.0%−0.4%−8.8%11.7%0.0%2.3%
20233.7%0.0%−8.7%0.3%0.0%0.0%0.0%0.6%1.3%−1.2%4.6%0.0%
20240.0%0.0%0.0%1.5%2.0%0.0%0.0%8.8%0.0%0.0%0.0%−1.9%
20254.6%0.0%4.1%11.4%0.0%0.0%0.0%0.0%0.0%−0.4%1.8%0.6%
20260.1%−3.7%−3.4%3.1%0.6%5.3%0.0%0.0%−2.4%0.2%––

Every trade

RSI mean reversion on XLF made 20 closed round trips and one position still open at the end of the test, an average hold of 39 days, an average winner of 5.53%, an average loser of −7.38%, a profit factor of 3.82, a longest losing streak of 1. It held a position at the close on 37.2% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-02-01$26.502021-02-17$28.999.4%16
2021-06-18$32.252021-08-09$34.557.1%52
2021-09-20$33.472021-10-11$35.977.5%21
2021-11-22$36.302022-01-10$38.195.2%49
2022-01-28$35.122022-02-11$37.416.5%14
2022-03-02$34.572022-03-28$36.445.4%26
2022-04-14$34.482022-08-04$31.24−9.4%112
2022-09-02$31.182022-10-31$31.781.9%59
2022-12-16$31.482023-01-09$33.426.2%24
2023-03-01$33.392023-04-13$30.49−8.7%43
2023-08-16$32.492023-09-13$33.121.9%28
2023-10-03$31.252023-11-13$32.323.4%41
2024-04-17$38.302024-05-07$39.683.6%20
2024-08-06$39.582024-08-26$43.139.0%20
2024-12-16$48.012025-01-24$49.322.7%39
2025-03-11$46.762025-04-01$48.513.7%21
2025-04-07$41.822025-04-30$46.9212.2%23
2025-10-13$51.752025-12-09$52.792.0%57
2026-01-27$52.732026-04-09$50.59−4.1%72
2026-05-11$50.882026-06-17$54.006.1%37
2026-09-24$54.70open–−2.2%–

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.

Entries near the lows and the days missed

Several entries landed close to turning points. The 2025-04-07 buy at $41.82 came one day before 2025-04-08, the low of buy-and-hold's 15.33% drawdown, and two days before the fund's best day of the window, +7.59% on 2025-04-09. The 2022-09-02 buy at $31.18 sat ahead of the 2022-10-12 low and the fund's 5.11% day on 2022-11-10 fell after the rule had already sold on 2022-10-31. The 2022-10-13 session, up 4.17%, was inside that trade.

Other big days went to holders only. The rule was flat on 2024-11-06, when XLF rose 6.09%, because its August 2024 trade ended on 2024-08-26 and the next entry came on 2024-12-16 at $48.01. It was also flat on 2021-01-06, a 4.38% day, three weeks before the first entry. The rule lost 1.85% in December 2024 and made 4.61% in January 2025 on that one trade, which closed on 2025-01-24 for 2.73%.

The 2025 trade sequence is the cleanest case of the rule working as written. It bought on 2025-03-11 at $46.76 and sold on 2025-04-01 at $48.51, bought the dip on 2025-04-07 and sold on 2025-04-30 at $46.92, and then bought nothing until 2025-10-13. In between lay a long stretch of cash months from May to September. The fund's own return for 2025 was 14.86%, and the strategy's months of 4.61% in January, 4.12% in March and 11.44% in April carried its 23.8%.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2022-04-202022-10-12−18.7%1752024-08-14672
2026-02-062026-03-27−11.2%492026-06-1681
2021-11-232021-12-01−6.4%82022-01-0434

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

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.8%−18.7%$18,9930.92
5 basis points11.4%−18.8%$18,6210.90
10 basis points11.1%−18.9%$18,2600.87

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules11.8%−18.7%2085%$18,993
RSI < 25 / > 705.8%−18.1%1479%$13,808
RSI < 35 / > 7010.8%−18.2%2286%$18,065
RSI < 30 / > 6511.8%−13.8%2186%$18,938
RSI < 30 / > 7512.4%−18.7%1883%$19,553

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

The fund's calendar years against the rule

XLF's own calendar-year returns in the profile were 36.61% in 2021, -10.55% in 2022, 12.11% in 2023, 30.43% in 2024, 14.86% in 2025 and -1.15% for the partial 2026. The rule made money in four of those years and was flat in 2023 and 2026. Its two losing months of 2026, February at -3.67% and March at -3.44%, came from the 2026-01-27 trade, which closed at a loss of 4.06% on 2026-04-09. The next trade, from 2026-05-11 at $50.88 to 2026-06-17 at $54, returned 6.13%. The one still open on 2026-10-02 was bought on 2026-09-24 and showed -2.23%.

The weekday averages for the fund were close together: Monday 0.08%, Tuesday 0.04%, Wednesday 0.07%, Thursday 0.03% and Friday 0.07%. Of the fund's total log return, 43.2% came overnight and 25.86% intraday. The rule buys and sells at the open, which means a signal that fires after an oversold close is filled with the overnight gap already in the price. The fund's average overnight gap was 0.49%, small beside its 1.4% intraday range.

RSI(14) went above 70 on 96 sessions and fell below 30 on 30. The rule only exits after a close above 70, and 96 sessions is far more than the 20 closed trades. The median hold of 37 days lines up with the 20-day forward median of 3.18% reported after RSI(14) dips under 30.

The rules

Buy when the 14-day RSI drops below 30 (oversold), sell when it recovers above 70 (overbought).

  1. WHEN the market opens · IF not invested AND RSI(14) < 30 · THEN buy with 98% of the sleeve
  2. WHEN the market opens · IF invested AND RSI(14) > 70 · THEN sell the whole position

A standard mean-reversion setup. The Relative Strength Index measures how stretched recent price action is. Readings under 30 have historically marked short-term washouts in uptrending assets. This template buys at the next session open and holds until RSI crosses back above 70. It has no profit target and no stop.

Good for: assets that trend up over time but overshoot on the way, such as broad index ETFs.
Watch out: in a persistent downtrend, RSI can stay oversold for weeks while the position keeps losing; there is no stop-loss in this template.

What each year looked like

The rule returned 24.3% in 2021, 12.3% in 2022, -0.1% in 2023, 10.5% in 2024, 23.8% in 2025 and -0.4% so far in 2026. Buy-and-hold returned 35.8%, -10.4%, 11.9%, 29.9%, 14.7% and -1.1%. The gaps were -11.5, 22.7, -12.0, -19.4, 9.1 and 0.7 points, and the strategy was ahead in 2022, 2025 and 2026.

2022 is the year that makes the case for this rule. The fund fell 10.4% on a buy-and-hold basis, and the strategy made 12.3%, a gap of 22.7 points in its favour. It took five round trips that year and four of them won. The rule bought dips as they came, sold on the recoveries, and was in cash for stretches of the decline. The one loser that year, and the largest loss of the whole test, is covered with the trades.

2023 shows the cost of the same behaviour. The fund rose 11.9% and the strategy lost 0.1%. The year closed four trades. Three won, at 6.16%, 1.94% and 3.42%, and the buy on 2023-03-01 lost 8.69%, which cancelled them. 2024 gave the widest gap against the rule, at -19.4 points. The fund rose 29.9% and the strategy made 10.5% from two closed trades, 3.6% and 8.97%, plus a December entry that was still open at year end.

2021 and 2025 had similar strategy returns at 24.3% and 23.8%, with very different gaps. In 2021 buy-and-hold made 35.8%, so the rule gave up 11.5 points by sitting in cash between short holds. In 2025 buy-and-hold made 14.7% and the rule made 23.8%, because the April sell-off produced the best trade of the window.

Month by month

The best month was October 2022 at 11.68%, and the worst June 2022 at -10.6%. Buy-and-hold's best and worst months were the same two, at 11.62% and -10.64%, so in those months the strategy held the fund fully. June 2022 sits inside the long 2022 loser, which was open from 2022-04-14 to 2022-08-04.

The 2022 months run 8.58%, 3.78%, 5.3%, -7.13%, 2.69%, -10.6%, 6.96%, -0.44%, -8.77%, 11.68%, 0.0% and 2.27%. The swing between September's -8.77% and October's 11.68% is the second 2022 trade in miniature: bought on 2022-09-02, held through a sharp fall, sold on 2022-10-31 for a small gain of 1.92%.

Some months are flat for runs of several months. 2024 shows zeros from January to March, in June and July, and from September to November, months with no position open. The months with activity in 2025 are January at 4.61%, March at 4.12% and April at 11.44%, then nothing until October. April 2025's 11.44% is the single strongest stretch in the table apart from October 2022.

The 21 trades

The trade list has the shape of the rule. The first six trades, from 2021-02-01 to 2022-03-02, were all winners, with returns of 9.4%, 7.13%, 7.47%, 5.21%, 6.52% and 5.41%. Holds ranged from 14 to 52 days. The longest streak of wins, 8, ran from the entry on 2023-08-16 to the exit on 2025-12-09.

There were three losers, and each one shows what the rule leaves unprotected.

Three losses and 17 wins average out to the 85% win rate and the 3.82 profit factor. The average winner of 5.53% against an average loser of -7.38% means each loss takes back more than one win gave. A win rate in the 80s is what a rule needs when its losses are that large.

The best trade was 2025-04-07 to 2025-04-30, bought at $41.82 and sold at $46.92 for 12.2% in 23 days. It followed the fund's worst two days in the window, -7.36% on 2025-04-04 and -4.97% on 2025-04-03, and the entry sat just ahead of the best day, +7.59% on 2025-04-09. The next best were 2021-02-01 at 9.4% over 16 days and 2024-08-06 at 8.97% over 20 days. Median trade was 5.21% over a median of 37 days.

The open trade began on 2026-09-24 at $54.70 and was down 2.23% at the last close. It is not counted in the 20 round trips or in the win rate.

Time in the market

The sleeve held a position on 37.2% of trading days, and the other days it sat in cash. The average hold was 38.7 days, the median 37 days, the shortest 14 and the longest 112. Most of the 20 closed trades lasted between two and eight weeks, which is the time an oversold reading needs to work off. A strategy that earns a CAGR near the fund's own while exposed on well under half of the days has spent a lot of its time out of the way of declines, and that is where the shallower drawdown and the higher Sharpe ratio come from. The same idle time is what held it behind buy-and-hold in 2021 and 2024, when the fund kept rising without producing many oversold readings.

Drawdowns

The deepest drawdown ran 18.73%, from 2022-04-20 to 2022-10-12, 175 days to the low, with recovery on 2024-08-14. The recovery took 672 days, which makes this a long climb: the equity was flat or drifting for most of 2023 and early 2024 because of the 2023-03-01 loser and the gaps with no entries. The second drawdown was 11.19% from 2026-02-06 to 2026-03-27, recovered by 2026-06-16, and the third was 6.37% from 2021-11-23 to 2021-12-01, back by 2022-01-04.

Buy-and-hold had 25.47% from 2022-01-12 to 2022-10-12, recovering on 2024-02-22, then 15.33% from 2025-02-18 to 2025-04-08 and 14.65% from 2026-01-06 to 2026-03-27. The strategy's equity low on 2022-10-12 coincides with the fund's, so the fall to that low was not avoided entirely. It was cushioned by cash periods and by winning trades inside the decline. The drawdown was 6.74 points shallower.

Trading costs

At 5 basis points of slippage on each fill the CAGR was 11.44%, the drawdown 18.82% and the final value $18,620.83. At 10 basis points it was 11.06%, 18.89% and $18,259.78. The Sharpe ratio fell from 0.92 to 0.895 and then 0.868. With 41 fills, costs take a visible share: the headline run ended $18,993.41, and the 10 basis point run ended lower by a few hundred dollars. XLF trades about $1,682,204,673 a day with a median of 62,901 shares a minute, deep enough that those cost levels are a reasonable range for a $10,000 account.

Changing the thresholds

Four variants move one threshold each.

The entry threshold changes the result more than the exit does. Moving the entry from 30 to 25 cut the CAGR sharply, while moving the exit from 70 to 65 or 75 shifted it by less than a point either way. A sell at 65 leaves earlier and trims the drawdown, and a sell at 75 stays longer and earns more at the cost of a slightly deeper fall. The three variants other than the 25 entry landed between 10.85% and 12.39%, which suggests the published setting is not a fragile one on this fund. It is still one window, and a threshold chosen by looking at the window's results is the kind of choice the overfitting answer describes.

How XLF behaved

XLF returned 102.88% over the window, 13.11% a year, with annualized volatility of 18.43%. The deepest drawdown was 25.87% from 2022-01-12 to 2022-10-12, recovered on 2024-02-22, and the longest lasted 528 sessions. It rose on 52.88% of sessions. Up and down days both averaged 0.86% in size. The average range was 1.4% and the average overnight gap 0.49%, and 62.56% of the return came overnight.

Its beta to SPY was 0.87 and to QQQ 0.48, with correlations of 0.77 and 0.59, and the correlation to TLT was -0.05. FAS, the leveraged financials fund, correlated at 1.0, VTV and VOOV at 0.89. The funds that moved against it were SH at -0.78, SDS at -0.77, SPDN at -0.77 and UVXY at -0.64.

The measures that matter for this rule are the RSI statistics, and they favour it. The fund logged 30 sessions with RSI(14) below 30. After those, the median 5-day return was 0.75% against 0.42% for all sessions, and the median 20-day return was 3.18% against 1.5%. The 20-day figure sits well above the baseline, and it is the horizon closest to the average hold of 38.7 days. RSI(14) rose above 70 on 96 sessions, which is the exit signal. RSI(2) below 10 appeared on 169 sessions, followed by 0.38% and 1.89%, a smaller edge than the slower indicator showed. Day-to-day autocorrelation was 0.02, close to none.

The fund closed above its 200-day average on 71.16% of sessions and crossed it 38 times. It fell 10% or more from a 20-day high on 10 occasions across 45 days. Calendar months ranged from November at 4.85% and July at 4.03% to September at -3.37% and March at -1.11%, each from 5 or 6 observations.

How the rules fit this fund

The template is described as suited to assets that trend up over time but overshoot on the way, such as broad index ETFs. XLF fits that description: it rose 102.88% over the window, 71.16% of sessions were above the 200-day line, and the median 20-day return after an RSI(14) dip below 30 was well above the usual. The warning in the template, that in a persistent downtrend RSI can stay oversold for weeks while the position keeps losing, is what happened in April to August 2022 and in the 2023 hold.

On XLF the rule ranked first of 12 by CAGR. The monthly cycle made 11.63% with a 23.47% drawdown, close behind, and the RSI(2) snapback made 9.72% with a 14.57% drawdown. The weekly 7% target made 7.13% but with a 31.64% drawdown, the deepest on this fund. The momentum breakout made 6.99% and the dip buyer 6.78%. The trend rules sat at the bottom: the EMA 12/26 at 5.63%, the SMA 10/50 at 4.02%, the golden cross at 3.6%, the 3-month momentum at 2.74%, the trend plus trailing stop at 2.62% and the 200-day regime filter at 2.06%. A fund with a near-zero autocorrelation and strong post-oversold returns rewards the rules that buy weakness and penalises those that follow it.

Across all 59 ETFs the rule's median CAGR was 2.98%, and XLF ranked 7th. Among sector funds the median was 8.74%, and XLF sat above it. SOXX made 12.78% but with a 35.01% drawdown, XLK 8.74%, XLY 7%, XLP 6.51% with a 9.64% drawdown and VOX 2.39%. XLF's 18.73% drawdown is the second shallowest of the six, after XLP's.

Limits of this test

The window is 2021-01-04 to 2026-10-02 on a single fund, and a financial sector fund that rose 102.88% is a friendly environment for a buy-the-dip rule. The 20 closed trades are a modest sample, and three losses define the downside. The headline run fills at the bar price with no fees, and a deeper or longer downtrend in financials would hold a position for months with no stop. These results are hypothetical and are not advice to buy or sell any fund.

The XLF page ranks all 12 templates on this fund, and the RSI mean reversion hub shows the rule across the full universe.

Run RSI mean reversion 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 RSI mean reversion beat buy-and-hold on XLF?

Over 2021-01-04 to 2026-10-02, RSI mean reversion on XLF returned 11.8% annualized vs 12.6% for buy-and-hold: it trailed buy-and-hold by 0.8% per year, with a maximum drawdown 6.7 points shallower than holding (18.7% vs 25.5%).

How many trades did it make?

20 completed round trips over 5.7 years (41 fills), with 85% of round trips closing profitably.

Why RSI 30/70?

They are the conventional oversold and overbought bands from Welles Wilder's original formulation. Treat them as a starting point. In DeployQuant you can change them to 25/65 or anything else and re-backtest in seconds.

Does this strategy use a stop-loss?

No. The only exit is RSI recovering above 70. Adding a stop or a take-profit block is a one-block edit in the Lab.

Did RSI mean reversion beat buy-and-hold on XLF?

On risk, yes. On return, narrowly no. From 2021-01-04 to 2026-10-02 it made 11.82% a year against 12.58% for buy-and-hold, ending at $18,993 against $19,742. Its maximum drawdown was 18.73% against 25.47%.

What is the win rate on XLF?

It won 17 of 20 round trips, an 85% win rate, with a profit factor of 3.82. Average winners were 5.53% and average losers were -7.38%. A 21st trade was open at the end of the data.

What were the losing trades?

Three trades lost money: -9.4% from 2022-04-14 to 2022-08-04, -8.69% from 2023-03-01 to 2023-04-13 and -4.06% from 2026-01-27 to 2026-04-09. The rule has no stop, so each position waited for RSI(14) above 70.

Does the RSI threshold matter?

The entry threshold matters more than the exit. Buying below 25 made 5.78% a year, buying below 35 made 10.85%, selling above 65 made 11.77% and selling above 75 made 12.39%. The published 30 and 70 made 11.82%.

What do trading costs do to the result?

They take a modest share. With 5 basis points the final value was $18,620.83 and with 10 basis points $18,259.78, against $18,993.41 in the headline run. XLF is liquid, with about $1,682,204,673 traded a day.

How does XLF rank for this strategy?

RSI mean reversion ranked 1st of 12 templates on XLF, and XLF ranked 7th of 59 funds for the strategy. The strategy's median CAGR across all funds was 2.98%, against 8.74% among sector funds.

Related

RSI(14) Mean Reversion on all 59 ETFsfull results table All strategies on XLF12 templates compared RSI(2) Dip Snapback on XLFsame ETF, different rulesGolden Cross (SMA 50/200) 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.