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

RSI(14) Mean Reversion on AGG

iShares Core U.S. Aggregate Bond ETF: the broad US investment-grade bond market in one fund. 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 AGG turned $10,000 into $9,869 (−1.3% total, −0.2% CAGR): it beat buy-and-hold by 0.6% per year, with a maximum drawdown 6.0 points shallower than holding (11.6% vs 17.6%).

The RSI(14) mean reversion rule on AGG made 15 round trips between 2021-01-04 and 2026-10-02 and ended with $9,869 from $10,000, a CAGR of -0.23% and a total return of -1.31%. AGG is the iShares fund that holds the broad US investment-grade bond market. Holding it over the same window ended at $9,559, a CAGR of -0.78%, with a maximum drawdown of 17.57%. The rule's maximum drawdown was 11.57%.

Ten of the 15 trades won, a win rate of 67%, and the account still lost money. The average winner made 1.77% and the average loser lost 3.14%, so the profit factor was only 1.09. The two biggest losses, -7.44% and -4.35%, came in 2022. The rule held a position on 45.8% of trading days, with an average hold of 59 days. A further position was still held when the data ended. It was bought on 2026-07-21 at an adjusted $96.83 and stood 2.67% lower at the last close.

Among the 12 templates run on AGG, the RSI mean reversion ranks eighth. Across the 59 funds AGG places 41st for this rule, where the median CAGR was 2.98%. Within the bond funds the median was -0.23%, which is the same as this result.

Bond funds are slow. AGG has annualized volatility of 5.82% and an average daily range of 0.35%, so RSI(14) reaches 30 only after a long, steady slide. The test spans 5.74 years including the 2022 bond decline. The headline run charges no fees or slippage, and 15 trades make a small sample.

−0.2%CAGR
−0.8%buy & hold CAGR
−11.6%max drawdown
-0.03Sharpe ratio
15round trips
67%win rate
■ RSI mean reversion   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearRSI mean reversionbuy & hold
2021−0.4%−1.6%
2022−8.7%−12.7%
20233.7%5.5%
20242.8%1.3%
20253.9%7.0%
2026−2.1%−2.7%

Year by year against holding

The rule beat holding in four years and trailed in two. The yearly gaps were +1.2 points in 2021, +4 in 2022, -1.8 in 2023, +1.5 in 2024, -3.1 in 2025 and +0.6 in 2026. All of these are small, since AGG itself moved between -12.7% and 7% a year.

2021 returned -0.4% for the rule against -1.6% for holding. Two round trips closed. The first was bought on 2021-02-16 at an adjusted $97.34 and sold on 2021-06-03 at $96.31, a loss of 1.06% over 107 days. The second ran from 2021-09-30 to 2021-11-10 and made 0.63% in 41 days. February and March of that year cost 0.7% and 1.15%, and April made 0.73%.

2022 returned -8.7% against -12.7%. This was the bond market's worst year in the window, and the rule took three round trips in it. The first, bought on 2022-01-04 at $96.35 and sold on 2022-05-27 at $89.18, lost 7.44% over 143 days and is the worst trade of the test. The second, from 2022-06-14 at $85.65 to 2022-07-06 at $88.34, made 3.14% in 22 days. The third was bought on 2022-08-25 at $87.26 and sold on 2022-11-11 at $83.46, a loss of 4.35% over 78 days. The rule was in cash from 2022-05-27 to 2022-06-14, from 2022-07-06 to 2022-08-25 and from 2022-11-11 to 2022-12-29, and it lost less than the fund that year.

2023 returned 3.7% against 5.5%. A trade bought on 2022-12-29 at $84.64 was sold on 2023-01-19 at $87.53 for 3.41%, the best trade of the test. A second ran from 2023-02-22 to 2023-03-23 for 2.54%. The third, from 2023-05-24 at $86.33 to 2023-11-08 at $84.30, lost 2.35% over 168 days, which is the longest hold. The fund's best month, November 2023 at 4.48%, began before the rule's exit on 2023-11-08, and the rule's own November was 2.39%.

2024 returned 2.8% against 1.3%. Three trades closed: 1.02% (2024-01-19 to 2024-03-11), 2.49% (2024-04-16 to 2024-05-15) and -0.5% (2024-10-07 to 2024-12-04). The rule was out of the market for most of June through September.

2025 returned 3.9% against 7%, the largest shortfall of the six years. All three trades won, at 0.57% (2024-12-20 to 2025-02-03), 2.69% (2025-05-22 to 2025-06-30) and 0.6% (2025-11-06 to 2025-11-26). Each was small and short, and the rule was in cash for the stretches in between while the fund finished the year up 7%.

2026 so far returned -2.1% against -2.7%. One trade closed, from 2026-03-13 at $97.11 to 2026-04-15 at $97.66 for 0.57%. The open position bought on 2026-07-21 lost 2.55% in September alone, and the monthly grid shows July at -0.46%, August at 0.36% and September at -2.55%.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%−0.7%−1.1%0.7%0.1%−0.1%0.0%0.0%0.1%−0.0%0.6%0.0%
2022−1.2%−1.1%−2.7%−3.7%1.4%1.8%1.2%−0.6%−4.1%−1.2%1.6%−0.2%
20233.5%−0.1%2.6%0.0%0.4%−0.3%−0.1%−0.6%−2.5%−1.6%2.4%0.0%
20241.3%−1.4%1.2%0.2%2.2%0.0%0.0%0.0%0.0%−1.2%1.1%−0.5%
20250.5%0.2%0.0%0.0%1.3%1.3%0.0%0.0%0.0%0.0%0.6%0.0%
20260.0%0.0%−0.2%0.7%0.0%0.0%−0.5%0.4%−2.5%0.1%––

Monthly pattern

The monthly grid has gaps. Whole stretches were spent in cash, among them July and August 2021, June to September 2024 and July to October 2025, and each of those months reads 0.0%. The invested months cluster in the declines, since the rule only buys after RSI falls below 30.

The best month was January 2023 at 3.54%, from the trade bought on 2022-12-29 and sold on 2023-01-19. The worst was September 2022 at -4.06%, close to holding's own worst month of -4.07% in the same month. The rule was fully invested through that month, having bought on 2022-08-25. On AGG the rule bought after the decline had started and held through its continuation in 2022.

The 2022 monthly figures read -1.23% in January, -1.1% in February, -2.72% in March, -3.74% in April, then 1.36% in May, 1.8% in June, 1.24% in July, -0.58% in August, -4.06% in September, -1.21% in October, 1.63% in November and -0.21% in December. The January to April run of four negative months sits inside the 143-day trade that lost 7.44%.

2023 shows 3.54% in January, -0.08% in February, 2.56% in March, 0.42% in May, then -0.33%, -0.08%, -0.6%, -2.5% and -1.55% from June through October, and 2.39% in November. A slow bleed of five negative months in a row is how the 168-day trade lost 2.35%.

AGG's own month-of-year averages show November at 2.08% and September at -1.31%, October at -0.95% and April at -0.74%. Each month has five or six observations, and a bond fund that fell through 2022 puts a heavy weight on a few years.

Every trade

RSI mean reversion on AGG made 15 closed round trips and one position still open at the end of the test, an average hold of 59 days, an average winner of 1.77%, an average loser of −3.14%, a profit factor of 1.09, a longest losing streak of 1. It held a position at the close on 45.8% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-02-16$97.342021-06-03$96.31−1.1%107
2021-09-30$97.142021-11-10$97.750.6%41
2022-01-04$96.352022-05-27$89.18−7.4%143
2022-06-14$85.652022-07-06$88.343.1%22
2022-08-25$87.262022-11-11$83.46−4.3%78
2022-12-29$84.642023-01-19$87.533.4%21
2023-02-22$85.022023-03-23$87.182.5%29
2023-05-24$86.332023-11-08$84.30−2.4%168
2024-01-19$87.982024-03-11$88.881.0%52
2024-04-16$86.202024-05-15$88.352.5%29
2024-10-07$92.072024-12-04$91.61−0.5%58
2024-12-20$90.542025-02-03$91.060.6%45
2025-05-22$91.452025-06-30$93.912.7%39
2025-11-06$96.532025-11-26$97.110.6%20
2026-03-13$97.112026-04-15$97.660.6%33
2026-07-21$96.83open–−2.7%–

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.

The 15 round trips

The trade list divides into two groups. Ten trades won, and none of them returned more than 3.41%. Five lost, and two of the losses were deep for a bond fund. Median trade return was 0.6% and the median hold was 41 days. The shortest hold was 20 days and the longest was 168.

The five best trades were 3.41% (2022-12-29 to 2023-01-19, 21 days), 3.14% (2022-06-14 to 2022-07-06, 22 days), 2.69% (2025-05-22 to 2025-06-30, 39 days), 2.54% (2023-02-22 to 2023-03-23, 29 days) and 2.49% (2024-04-16 to 2024-05-15, 29 days). All five lasted between 21 and 39 days, so the profitable trades were the short ones.

The five worst were -7.44% (2022-01-04 to 2022-05-27, 143 days), -4.35% (2022-08-25 to 2022-11-11, 78 days), -2.35% (2023-05-24 to 2023-11-08, 168 days), -1.06% (2021-02-16 to 2021-06-03, 107 days) and -0.5% (2024-10-07 to 2024-12-04, 58 days). All five held for at least 58 days. Losing trades lasted longer than winning trades because the rule has no stop. It waits for RSI to rise above 70, and when a decline continues, that takes months.

Grouped by closing year, 2021 had 1 winner from 2 trades and 2022 had 1 from 3. 2023 and 2024 each had 2 from 3, 2025 had all 3 and 2026 had its only trade. Four wins in a row was the best streak. No loss was followed by another, so the losses stood alone. A 67% win rate with a profit factor of 1.09 is the pattern of a rule that wins often by small amounts and loses rarely by larger ones.

Prices are adjusted for splits and dividends. Each of the 31 fills is at a market open.

Why the average loss is nearly twice the average win

The headline statistics describe a rule with a high hit rate and an uneven payoff: 10 winners averaging 1.77% and 5 losers averaging 3.14%. The profit factor of 1.09 follows from that mix. The uneven payoff comes from what the sell condition requires. RSI(14) has to climb above 70 for the rule to sell, and on a fund that moves 0.28% on a typical up or down day that takes weeks of steady gains. The winners got out when a short bounce happened to carry RSI that high. The losers kept waiting.

The mean hold was 59 days and the median 41, so a few long trades pull the average up. The 168-day hold from 2023-05-24 lost 2.35% while the five best trades each lasted from 21 to 39 days. The 143-day hold lost 7.44%. These two trades account for the long tail of the hold distribution and for the two largest losses beyond the 2022 autumn trade.

The 2026 trade is still unresolved. It was bought on 2026-07-21 at $96.83 and was 2.67% lower at the final close. The two earlier 2026 months of exposure had already shown the pattern in miniature: a 0.57% gain from 2026-03-13 to 2026-04-15, then a drawdown of 3.14% from 2026-08-25 to 2026-09-30 inside the open position. Whether that position joins the winners or the long-hold losers depends on a RSI reading above 70 that had not happened by 2026-10-02.

On the five alternative thresholds, the pairs that shortened holds, selling above 65, also had the most trades at 17 and the most wins at 12. The pairs that lengthened them, selling above 75, ended with the lowest equity at $9,220. Hold length and result moved together in all five runs.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-02-172022-10-20−11.6%6102025-06-26980
2026-08-252026-09-30−3.1%36not yet–
2026-03-172026-03-27−1.2%102026-04-0913

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2022-10-20 and reached −17.6%.

Drawdowns

The deepest drawdown for the rule was 11.57%. It began at a peak on 2021-02-17, the day after the first entry, and reached its low on 2022-10-20 after 610 days. It recovered on 2025-06-26, 980 days after the low. Holding bottomed on the same day, 2022-10-20, 17.57% below its first-day peak, and had not recovered by the end of the window.

The second drawdown is open. The peak was 2026-08-25, the low 2026-09-30 at 3.14%, 36 days later, and the account had not recovered by 2026-10-02. It reflects the position bought on 2026-07-21 and the -2.55% of September. The third was 1.22% from 2026-03-17 to 2026-03-27, recovered on 2026-04-09 after 13 days.

The depth of 11.57% is the 2022 episode: the trades that started on 2022-01-04 and 2022-08-25 lost 7.44% and 4.35% over the months before the low. The rule avoided part of the decline because it was in cash for some of the period between them, but a position on the first day of the year was held through four losing months.

The Sharpe ratio was -0.03 for the rule and -0.11 for holding. The fund's annualized volatility was 5.82%.

Which of AGG's biggest sessions the rule was holding through

Bond funds make their money and lose it in a few sessions, so it helps to line the fund's largest moves up against the dates the rule was in the market. The five worst days for AGG were -1.63% on 2022-06-13, -1.3% on 2022-09-26, -1.23% on 2025-04-07, -1.23% on 2022-03-02 and -1.18% on 2024-04-10. The account took two of them: the March 2022 drop fell inside the 143-day trade, and the September 2022 drop fell inside the trade that began on 2022-08-25. The other three came when the rule held cash. The 2022-06-13 fall came one day before the rule bought on 2022-06-14, and the 2024-04-10 fall came six days before the 2024-04-16 entry.

The fund's best days split the same way. The 2.14% jump on 2022-11-10 came the day before the sale on 2022-11-11, so the rule held through it. The 1.6% gain on 2022-09-28 was also inside that trade, and the 1.19% gain on 2023-03-10 was inside the February to March 2023 trade. The 1.21% day on 2023-11-14 arrived after the 2023-11-08 exit, and the 1.26% day on 2023-12-13 came with the account in cash.

The rule held positions on 45.8% of sessions, a little under half, so it would be expected to catch roughly half of any random set of big days. It caught the biggest jump and two of the five worst falls, which is consistent with that share and gives no sign that RSI timing picked the better sessions. The AGG day-of-week averages were all within 0.07% of zero, with Monday the weakest at -0.07% and Wednesday the strongest at 0.05%, so a weekday filter would not have separated the sessions either.

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)−0.2%−11.6%$9,869-0.03
5 basis points−0.5%−11.9%$9,716-0.10
10 basis points−0.8%−12.3%$9,577-0.16

Cost runs

Once each fill is charged 5 basis points of slippage, the CAGR drops to -0.5%, the maximum drawdown is 11.95% and $9,716 is left. At 10 basis points the CAGR was -0.75%, the drawdown 12.29% and the final value $9,577. The headline run was -0.23% and $9,869. The Sharpe ratio moved from -0.03 to -0.099 and -0.158.

The 31 fills are the reason the cost shows up. Each trade returned a median 0.6%, so a few basis points on each side is a visible share of a typical winner. At 10 basis points the final value of $9,577 is just above the $9,559 for holding in the headline run, and holding was not run with slippage, so the two are not set against equal costs.

Among the bond funds in the data AGG is one of the most liquid, trading $647,965,164 on an average day and 8,686 shares in the median minute. A $10,000 position is small against that. The slippage runs use a flat rate.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules−0.2%−11.6%1567%$9,869
RSI < 25 / > 70−1.0%−10.1%1155%$9,426
RSI < 35 / > 70−0.9%−12.4%1663%$9,499
RSI < 30 / > 65−0.4%−11.7%1771%$9,790
RSI < 30 / > 75−1.4%−15.0%1155%$9,220

Threshold variants

Four alternative threshold pairs were run. The published rule buys below 30 and sells above 70.

Buying below 25 made -1.02% with a 10.1% drawdown, 11 trades and 6 wins, ending at $9,426. A stricter buy level took fewer trades and a shallower drawdown but a lower return. Buying below 35 made -0.89% with a 12.43% drawdown, 16 trades and 10 wins, ending at $9,499. Selling above 65 made -0.37% with an 11.66% drawdown, 17 trades and 12 wins, ending at $9,790. Selling above 75 made -1.4% with a 15.01% drawdown, 11 trades and 6 wins, ending at $9,220.

The published 30/70 is the best of the five on CAGR at -0.23%. An earlier exit at 65 had the highest win count, 12 of 17, and the best final value among the variants. A later exit at 75 had the deepest drawdown at 15.01% and the lowest final value. Waiting for a higher RSI on a bond fund lengthens the hold, and a longer hold exposes the trade to the drift that decided 2022.

All five runs lost money. The range is -1.4% to -0.23%. With 11 to 17 trades each, a threshold change moves one or two trades, and the ordering of the variants should not be read as a stable ranking.

How AGG behaved

MeasureAGG
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−4.5%
Annualized volatility5.8%
Deepest drawdown−18.0% (2021-01-04 to 2022-10-20)
Up days49.3%
Average daily range0.35%
Average overnight gap0.21%
Correlation to SPY0.22
Correlation to QQQ0.21
Correlation to TLT0.92
Sessions above the 200-day average63.6%
Crossings of the 200-day average50
Falls of 10% or more from a 20-day high0

How AGG behaved

Over the window AGG lost 4.53%, a CAGR of -0.8%, and its annualized volatility was 5.82%. Its maximum drawdown was 17.98% from 2021-01-04 to 2022-10-20, with no recovery by the last day, and the longest drawdown covered 1,443 sessions. Up days were 49.27% of sessions. Both the average up day and the average down day measured 0.28% in size. The average intraday range was 0.35% and the average overnight gap was 0.21%.

In log terms AGG made 6.82% overnight and lost 11.45% inside sessions, so the gains arrived overnight and the losses during trading hours. Its beta to TLT is 0.35 with a correlation of 0.92, and its correlation to SPY is 0.22 and to QQQ 0.21. The nearest funds by correlation are BND at 1, IEF at 0.97, IGIB at 0.96, IEI at 0.94 and UST at 0.92. TBF at -0.91 is the most negative.

AGG crossed its 200-day average 50 times and finished above it on 63.61% of sessions. AGG never fell 10% or more from a 20-day high. The worst day was -1.63% on 2022-06-13 and the best was 2.14% on 2022-11-10.

RSI(14) was below 30 on 59 sessions and above 70 on 51. Following an RSI(14) reading under 30, the median 5-day return was -0.04% where the baseline was -0.01%. The median 20-day return was -0.9% where the baseline was 0.07%. The oversold readings on AGG did not lead to rebounds in this window, and over 20 days they were followed by a worse median than the baseline. RSI(2) under 10 showed up on 167 sessions. The medians were 0.05% over 5 days and 0.12% over 20, near the baselines of -0.01% and 0.07%. The rule's buy signal had no measured edge here, which is what the -0.23% result reflects.

Other bond funds gave similar results for this rule. SGOV made 0% with no trades. IEI made -0.2% with an 8.65% drawdown and 16 round trips, and BND made -0.23%. IGIB made -0.48%, IEF made -0.84% and TLT made -5.4% with a 35.95% drawdown. The long-term Treasury fund TLT did worst in this group.

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.

How the rule meets a bond fund

When flat, the rule buys at the next open after RSI(14) closes under 30, using 98% of the sleeve. When holding, it sells everything at the next open after RSI(14) closes over 70. There is no stop and no target.

The design fits assets that rise in a trend and overshoot along the way. AGG fell from 2021-01-04 to 2022-10-20 and had not regained that peak by 2026-10-02, and the 20-day median of -0.9% after a reading below 30 shows several of those readings were followed by further declines. The strategy's caveat says as much: in a persistent downtrend, RSI can stay oversold while the position keeps losing. The 143-day loss of 7.44% in 2022 is that case.

The sell side rarely triggered. RSI(14) was above 70 on only 51 sessions, so exits were slow, and the average hold was 59 days against 21 to 39 days for the five best trades.

Other templates on AGG did better. The RSI(2) snapback made 1.57% with a 10.61% drawdown, and the EMA 12/26 trend made 1.07% with a 4.88% drawdown. The SMA 10/50 made 0.79%, the golden cross 0.78% and the 200-day regime filter 0.31%. The dip buyer and the momentum breakout made 0% with a 0% drawdown. Below the RSI mean reversion were the weekly 7% target at -0.29%, the 3-month momentum at -0.74%, the monthly cycle at -0.91% and the trend and trailing stop at -1.1%. The full RSI mean reversion table covers all 59 funds.

The test stops at one window, one fund, daily decisions and 15 trades. Differences of a few tenths of a percent between strategies on a bond fund sit inside the range of the cost and threshold runs.

Run RSI mean reversion on AGG 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 AGG?

Over 2021-01-04 to 2026-10-02, RSI mean reversion on AGG returned −0.2% annualized vs −0.8% for buy-and-hold: it beat buy-and-hold by 0.6% per year, with a maximum drawdown 6.0 points shallower than holding (11.6% vs 17.6%).

How many trades did it make?

15 completed round trips over 5.7 years (31 fills), with 67% 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 AGG?

By a small margin. The rule made -0.23% a year and ended at $9,869, while holding AGG made -0.78% and ended at $9,559. The maximum drawdown was 11.57% for the rule and 17.57% for holding.

What is the win rate of this rule on AGG?

Of the 15 round trips, 10 won, a win rate of 67%. The average winner made 1.77% and the average loser lost 3.14%, so the profit factor was 1.09 and the account still ended below its start.

What was the worst trade?

The worst was -7.44%, bought on 2022-01-04 at an adjusted $96.35 and sold on 2022-05-27 at $89.18 after 143 days. The second worst was -4.35%, from 2022-08-25 to 2022-11-11.

Does RSI below 30 signal a rebound for AGG?

Not in this window. After RSI(14) fell below 30, the median forward 5-day return was -0.04% and the median 20-day return was -0.9%. The baseline medians were -0.01% and 0.07%.

Would other RSI thresholds work better?

Selling above 65 made -0.37% a year and buying below 35 made -0.89%, while buying below 25 made -1.02% and selling above 75 made -1.4%. The published 30/70 made -0.23%. All five lost money, with 11 to 17 trades each.

Is there an open position?

Yes. The rule bought on 2026-07-21 at an adjusted $96.83 and the position was down 2.67% at the close on 2026-10-02.

Related

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