RSI(14) Mean Reversion on IGIB
iShares 5-10 Year Investment Grade Corporate Bond ETF: investment-grade corporate credit. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
Eight of the 13 completed trades on IGIB made money, and the account still ended lower than it started. The entry in the RSI mean reversion template is an oversold reading, a 14-day RSI under 30, and the exit is a recovery over 70. Nothing sits between the two, no stop and no target. The fund is the iShares 5-10 Year Investment Grade Corporate Bond ETF, called IGIB. Over 2021-01-04 to 2026-10-02 the rule took $10,000 down to $9,730, which is -0.48% a year and -2.7% in total.
The win rate was 62%, with a profit factor that rounds to 1. The average winner returned 1.98% and the average loser -3%, and one loser, held for 239 days, lost 10.22%. That single trade is the reason the account finished below its start. Buy-and-hold on IGIB returned 0.21% a year and ended at $10,121, so the rule trailed by 0.69 points a year. Its maximum drawdown was 13.63% against 20.13% for holding the fund.
The rule was invested on 41.4% of trading days and made 27 fills. It ranked last, 12th of 12 templates, on this fund, and IGIB ranked 43rd of 59 funds for this rule. Taking all 59 funds, the rule's median CAGR was 2.98%, well above this fund's result. The fund's oversold readings were followed by weaker returns than usual, which the fund data further down shows. The test is hypothetical, one fund and about 5.7 years, and the first set of figures has no fees or slippage.
Year by year
| Year | RSI mean reversion | buy & hold |
|---|---|---|
| 2021 | −1.9% | −1.6% |
| 2022 | −8.4% | −13.6% |
| 2023 | 7.1% | 8.9% |
| 2024 | 2.1% | 3.4% |
| 2025 | 1.5% | 9.3% |
| 2026 | −2.5% | −3.3% |
Year by year
The rule returned -1.9% in 2021, -8.4% in 2022, 7.1% in 2023, 2.1% in 2024, 1.5% in 2025 and -2.5% so far in 2026. Buy-and-hold returned -1.6%, -13.6%, 8.9%, 3.4%, 9.3% and -3.3%. Against the fund the rule led in 2022 and 2026 and lagged in 2021, 2023, 2024 and 2025.
2022 is the year that mattered. IGIB fell 13.6% as a held position, and the rule fell 8.4%, a gap of 5.2 points in the rule's favour. That is the only year with a gap of more than a point in the rule's favour. The rule's 2022 loss came mostly from the long trade that began on 2021-09-30 at $48.93 and ended on 2022-05-27 at $43.93. Only five months of that 239-day trade fall in 2022, and they include the rule's worst month, April 2022 at -4.66%. After it, the rule held cash for August and made fresh entries in June and September.
2021 was a small loss of 1.9% against 1.6% for the fund. The rule entered on 2021-02-17 at $48.98, exited on 2021-04-26 at $48.25 for a loss of 1.49%, and then waited from late April to the end of September for the next oversold reading.
2023 was the recovery year for bonds. The rule returned 7.1% against 8.9%, with four round trips and three winners. The best month of the test was January 2023 at 4.04%, from the trade entered on 2022-12-29 at $41.98 and sold on 2023-01-19 at $43.65 for 3.98%. After that came 1.77% from 2023-02-22 to 2023-03-22 and 1.32% from 2023-05-23 to 2023-07-27. The one loss was -0.12%.
2024 returned 2.1% against 3.4%, with one winner of two trades. The 2.34% winner ran from 2024-04-16 to 2024-05-07. The loser ran from 2024-10-08 at $48.10 to 2024-12-04 at $48.01, a loss of 0.19%. 2025 is where the gap widens the most: the rule returned 1.5% and the fund 9.3%, a difference of 7.8 points. Both trades of 2025 won, but the rule was in cash from February to November. The fund's rise in 2025 came while the rule held nothing.
In 2026 the rule returned -2.5% against -3.3%. It made one round trip, 0.2% from 2026-03-09 to 2026-04-15, and entered again on 2026-07-24 at $51.56. That position was marked at -2.72% at the last close.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | −1.1% | −1.5% | 1.1% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −0.4% | −0.2% | 0.3% |
| 2022 | −2.4% | −1.5% | −3.1% | −4.7% | 1.8% | 1.3% | 3.3% | 0.0% | −4.3% | −0.6% | 2.0% | −0.1% |
| 2023 | 4.0% | 0.0% | 1.7% | 0.0% | 0.8% | 0.0% | 0.5% | 1.6% | −2.5% | −1.7% | 2.6% | 0.0% |
| 2024 | 0.0% | 0.0% | 0.0% | 0.5% | 1.8% | 0.0% | 0.0% | 0.0% | 0.0% | −1.2% | 1.3% | −0.3% |
| 2025 | 0.7% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.8% | 0.0% |
| 2026 | 0.0% | 0.0% | −0.9% | 1.1% | 0.0% | 0.0% | 0.1% | 0.2% | −3.0% | 0.0% | – | – |
Month by month
The monthly table is mostly zeros. The rule was in cash for entire stretches, such as May to September 2021, February to October 2025 and January to February of 2026, and where it held a position the monthly moves were small. That matches the fund: IGIB's average up day was 0.3% and its average down day -0.31%.
The largest monthly losses came in 2022 and 2023: April 2022 at -4.66%, September 2022 at -4.3%, March 2022 at -3.1%, September 2023 at -2.5% and January 2022 at -2.4%. The September 2026 loss of 3.0% is in the same class. September has been a weak month for the fund in the data, with an average return of -1.44% across the years, and November has been the strongest at 2.58%. The rule's November results were 2.0% in 2022, 2.6% in 2023, 1.3% in 2024 and 0.8% in 2025.
Buy-and-hold had its best month in November 2023 at 5.68% and its worst in September 2022 at -4.67%. The rule's worst month, -4.66%, was almost identical to the fund's worst. When the rule held the fund in a month that went badly, it took the full loss of the month.
The rule's gains came from short bounces. The monthly moves of the rule are the moves of a bond fund, scaled by how long the position was held.
Every trade
RSI mean reversion on IGIB made 13 closed round trips and one position still open at the end of the test, an average hold of 61 days, an average winner of 1.98%, an average loser of −3.00%, a profit factor of 1.00, a longest losing streak of 2. It held a position at the close on 41.4% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-17 | $48.98 | 2021-04-26 | $48.25 | −1.5% | 68 |
| 2021-09-30 | $48.93 | 2022-05-27 | $43.93 | −10.2% | 239 |
| 2022-06-15 | $41.89 | 2022-07-29 | $43.87 | 4.7% | 44 |
| 2022-09-01 | $42.29 | 2022-11-10 | $41.02 | −3.0% | 70 |
| 2022-12-29 | $41.98 | 2023-01-19 | $43.65 | 4.0% | 21 |
| 2023-02-22 | $42.32 | 2023-03-22 | $43.07 | 1.8% | 28 |
| 2023-05-23 | $43.12 | 2023-07-27 | $43.69 | 1.3% | 65 |
| 2023-08-18 | $42.68 | 2023-11-08 | $42.63 | −0.1% | 82 |
| 2024-04-16 | $44.49 | 2024-05-07 | $45.53 | 2.3% | 21 |
| 2024-10-08 | $48.10 | 2024-12-04 | $48.01 | −0.2% | 57 |
| 2024-12-20 | $47.40 | 2025-02-03 | $47.73 | 0.7% | 45 |
| 2025-11-06 | $51.50 | 2025-11-26 | $51.92 | 0.8% | 20 |
| 2026-03-09 | $52.16 | 2026-04-15 | $52.25 | 0.2% | 37 |
| 2026-07-24 | $51.56 | open | – | −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 13 trades and one open position
The rule made 13 closed round trips and had a 14th open at the end, entered on 2026-07-24 at $51.56 and marked at -2.72%. The median return was 0.7%, the median hold 45 days, the shortest hold 20 days and the longest 239. The average hold was 61 days. The best streak was 3 wins and the worst was 2 losses.
Eight winners and five losers sounds like a good record, and it is the size of the losses that turns it around. The best trade was 4.73%, from 2022-06-15 at $41.89 to 2022-07-29 at $43.87 over 44 days. The next was 3.98%, then 2.34%, 1.77% and 1.32%. The worst was the -10.22% trade, followed by -3% from 2022-09-01 to 2022-11-10, and -1.49%, -0.19% and -0.12%. The two worst losers are the only ones that lost more than 1.5%.
The long loser deserves a closer look. The rule bought on 2021-09-30 because RSI had dropped below 30, and it waited for RSI to recover above 70. With IGIB falling through 2022, the recovery took 239 days and the exit came at $43.93, against an entry of $48.93. A rule with no stop holds a position until its condition clears, and this one cleared late. The template notes list exactly this risk. In a lasting downtrend the RSI can stay low for weeks while the position keeps losing, and nothing in the rule cuts the loss.
The remaining trades were small. The last three closed trades gained 0.7%, 0.8% and 0.2%, which is what mean reversion looks like on a fund that moves 0.3% on a typical day. None of them could offset a 10.22% loss.
Trades per exit year: 1 in 2021, 3 in 2022, 4 in 2023, 2 in 2024, 2 in 2025 and 1 in 2026, with 0, 1, 3, 1, 2 and 1 winners. Most of the winning came after the 2022 loss was already booked.
Entry and exit prices across the 14 positions
Laying the entry prices side by side shows how the rule moved with the fund's price level. The first two entries, on 2021-02-17 at $48.98 and 2021-09-30 at $48.93, were almost the same price, and the second one sat open for 239 days. The six entries from June 2022 to August 2023 were $41.89, $42.29, $41.98, $42.32, $43.12 and $42.68. Those were the cheapest purchases of the window. Four of the six closed higher, and the exceptions were the September 2022 trade at -3% and the August 2023 trade at -0.12%.
The 2022-09-01 trade closed on 2022-11-10 at $41.02, the day IGIB had its best session of the window at +2.66%. The rule entered on 2022-06-15 at $41.89, which was also a +1.47% day for the fund, and that trade made 4.73%.
From 2024 on, entries moved up to $44.49, $48.10, $47.40, $51.50, $52.16 and $51.56. Exits clustered close to entries: $45.53, $48.01, $47.73, $51.92 and $52.25. The 2026-07-24 position at $51.56 is the open one. It was entered below the $52.16 price of the March 2026 trade, and it was marked at -2.72% on the last day. After the March trade closed at $52.25 on 2026-04-15, the rule waited three months for the next oversold reading.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-02-18 | 2022-05-06 | −13.6% | 442 | 2026-03-09 | 1403 |
| 2026-08-25 | 2026-09-30 | −3.5% | 36 | not yet | – |
| 2026-03-09 | 2026-03-27 | −2.4% | 18 | 2026-07-28 | 123 |
Buy-and-hold's deepest drawdown ran from 2021-08-03 to 2022-10-20 and reached −20.1%.
The drawdowns
The rule's deepest drawdown was 13.63%, from the peak on 2021-02-18 to the low on 2022-05-06, 442 days later. It recovered on 2026-03-09, which is 1,403 days after the low. The equity curve stayed under its early high until 2026-03-09, because the rule's later trades gained only fractions of a percent. A second, smaller fall of 3.52% started on 2026-08-25 and bottomed on 2026-09-30, with no recovery yet on the last day. The third was 2.37% in March 2026 and recovered in 123 days.
Buy-and-hold's deepest drawdown was 20.13% from 2021-08-03 to 2022-10-20, and it recovered on 2025-06-26, 980 days after the low. The fund's second drawdown, 4.78% from 2026-02-27, was also open at the end. The rule's drawdown was 6.5 points shallower. The rule bought later than the fund's peak and sold before the fund's low, which spared it the last part of the fall.
The Sharpe ratio was -0.09 for the rule and 0.07 for buy-and-hold. A ratio near zero means the return per unit of volatility was close to nothing. The rule did not add return per unit of risk on this fund, though its drawdown was shallower.
Recovery is the notable number. The fund took 980 days to get back after its low, and the rule took 1,403, a longer recovery than holding the fund. The rule's shallower drawdown came with a slower recovery.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | −0.5% | −13.6% | $9,730 | -0.09 |
| 5 basis points | −0.7% | −13.7% | $9,602 | -0.14 |
| 10 basis points | −0.9% | −13.8% | $9,477 | -0.19 |
With trading costs
Charging 5 basis points a fill moved the CAGR to -0.71%, the drawdown to 13.74% and the final value to $9,602. At 10 basis points the CAGR was -0.93%, the drawdown 13.85% and the final value $9,477. The Sharpe ratio moved from -0.09 to -0.14 and then -0.193.
The rule made 27 fills, and each costs the same in basis points whatever the trade earns. On a bond fund with an average winner of 1.98%, a cost of 5 basis points on entry and the same on exit is a visible share of the gain. The rule's low trade count keeps the total small, and a strategy with a small edge per trade has little room for friction. Liquidity is decent: about $90,382,863 changes hands on an average day, though the median minute trades only 1,684 shares.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −0.5% | −13.6% | 13 | 62% | $9,730 |
| RSI < 25 / > 70 | −1.0% | −12.8% | 10 | 70% | $9,454 |
| RSI < 35 / > 70 | −0.5% | −14.9% | 16 | 69% | $9,697 |
| RSI < 30 / > 65 | −0.9% | −13.8% | 14 | 57% | $9,518 |
| RSI < 30 / > 75 | −0.8% | −16.0% | 11 | 64% | $9,525 |
Changing the thresholds
Four variants were run, and none of them beat the published thresholds of 30 and 70. Buying below 25 returned -0.97% a year with a 12.76% drawdown, 10 trades and 7 winners, ending at $9,454. Buying below 35 returned -0.53% with a 14.86% drawdown, 16 trades and 11 winners, ending at $9,697. Selling above 65 returned -0.86% with a 13.85% drawdown, 14 trades and 8 winners, ending at $9,518. Selling above 75 returned -0.84% with a 15.96% drawdown, 11 trades and 7 winners, ending at $9,525.
The published rule's -0.48% sits above all four. Buying below 35 was the closest and made the most trades, with 11 winners in 16. A looser entry made more trades and did about as well. A stricter entry at 25 made fewer trades and lost slightly more. The exit side shows a similar flat response: moving the sell threshold from 70 to 65 or to 75 changed the CAGR by a few tenths of a point, and the drawdown deepened to 15.96% at 75, which fits a later exit.
The result changes little with the threshold choice, and none of the variants rescues it. All five versions lost money, and the fund's oversold readings were followed by weakness.
How IGIB behaved
| Measure | IGIB |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 1.3% |
| Annualized volatility | 6.3% |
| Deepest drawdown | −20.6% (2021-08-03 to 2022-10-20) |
| Up days | 50.0% |
| Average daily range | 0.37% |
| Average overnight gap | 0.21% |
| Correlation to SPY | 0.35 |
| Correlation to QQQ | 0.34 |
| Correlation to TLT | 0.84 |
| Sessions above the 200-day average | 66.3% |
| Crossings of the 200-day average | 52 |
| Falls of 10% or more from a 20-day high | 0 |
How IGIB behaved
IGIB is a fund of investment-grade corporate bonds with five to ten years to maturity. It returned 1.26% in total over the window, 0.22% a year, with annualized volatility of 6.29% and a deepest drawdown of 20.62%, from 2021-08-03 to 2022-10-20, recovered on 2025-06-26. Year by year the fund returned -1.62%, -13.97%, 9.21%, 3.52% and 9.56% from 2021 to 2025, and -3.4% in 2026 through October.
The fund's correlation to TLT was 0.84 and to SPY 0.35. It was up on 49.97% of days and the average intraday range was 0.37%. No 10% drop from a 20-day high occurred at all in the window. Two thirds of sessions, 66.27%, ended above the 200-day average, and the fund crossed that line 52 times. Its lag-1 autocorrelation was 0.01.
The RSI statistics are the heart of the matter. The 14-day RSI closed below 30 on 66 sessions and above 70 on 71. After the oversold readings, the median 5-day forward return was -0.24% and the median 20-day forward return was -1.91%, against baseline medians of 0.02% and 0.22% for any day. The 2-day version, below 10, occurred on 169 sessions and was followed by medians of 0.12% over 5 days and 0.14% over 20, close to the baseline.
On this fund, an oversold reading on the 14-day RSI came before weaker returns than usual, which is the opposite of what the rule assumes. A rule that buys oversold readings on a fund that is falling buys into the fall. The best days were +2.66% on 2022-11-10 and +1.7% on 2022-09-28, and the worst were -1.76% on 2022-06-13 and -1.53% on 2022-09-26.
IGIB by month, weekday and session, with peers
By calendar month, November averaged 2.58% and July 1.13%, the two best. September at -1.44% and October at -0.96% were the worst, with February at -0.73% and April at -0.71% next. January and May both averaged about 0.56%. Each month has five or six observations. Weekdays were flat: Monday -0.07%, Wednesday 0.05%, and Tuesday, Thursday and Friday between 0 and 0.01%.
The fund's whole gain came overnight. The overnight log return was 17.9% and the intraday log return was -16.67%, so the daily range of 0.37% had no net payoff to a holder. The average overnight gap was 0.21%. A rule that buys at the open and sells at the open earns the overnight gap and pays the intraday drift, which on IGIB meant the two cancelled out.
IGIB moved with the broad bond funds. Its correlation was 0.96 with AGG and BND, 0.92 with IEF and 0.89 with IEI, and -0.84 with TBF, an inverse Treasury fund. Beta to TLT was 0.34 and to SPY 0.14.
The same rule on IEI returned -0.2% with an 8.65% drawdown and 16 round trips, and on AGG -0.23% with an 11.57% drawdown and 15. IEF had a 13.64% drawdown, nearly identical to IGIB's 13.63%, with a CAGR of -0.84%. TLT was the outlier at -5.4% with a 35.95% drawdown, so the longer the duration, the more the buy-the-oversold reading cost.
The rules
Buy when the 14-day RSI drops below 30 (oversold), sell when it recovers above 70 (overbought).
- WHEN the market opens · IF not invested AND RSI(14) < 30 · THEN buy with 98% of the sleeve
- 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 fits this fund
Rule by rule: with no position and a 14-day RSI under 30, it puts 98% of the sleeve into the fund at the next open, and with a position and RSI over 70 it sells everything. The template is described as a fit for assets that climb over time and overshoot on the way, with broad index funds as the example. IGIB is a bond fund that drifted sideways to lower, and its overshoots were part of a decline.
Among the twelve templates on this fund, this one ranked last. The EMA 12/26 trend rule led at 2.35% with a 5.33% drawdown. The golden cross returned 1.84%, the SMA 10/50 trend rule 1.73%, the 200-day regime filter 1.36% and the RSI(2) snapback 1.33%. The 3-month momentum rule returned 0.25% and the trend plus trailing stop rule 0.06%. Two templates never traded on this fund and show 0% for both return and drawdown: the dip buyer and the momentum breakout. The weekly 7% target returned -0.05% and the monthly cycle -0.27%.
Trend rules did best, with drawdowns near 5% to 7%, which fits stepping out of the 2022 decline. The mean-reversion rule did worst on the same fund. The fund never produced a 10% dip or a 10% burst, which is why two templates made no trades.
Across the bond funds, the same rule gave 0% on SGOV, which made no trades, -0.2% on IEI, -0.23% on AGG and BND, -0.84% on IEF and -5.4% on TLT. The category median was -0.23%. IGIB at -0.48% sat in the middle of the group, and the longer-duration funds did worse. The IGIB page compares all templates on the fund, and the RSI mean reversion page has the table for all 59 funds.
These figures come from daily decisions on one fund, and they say nothing about what comes next.
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 IGIB?
Over 2021-01-04 to 2026-10-02, RSI mean reversion on IGIB returned −0.5% annualized vs 0.2% for buy-and-hold: it trailed buy-and-hold by 0.7% per year, with a maximum drawdown 6.5 points shallower than holding (13.6% vs 20.1%).
How many trades did it make?
13 completed round trips over 5.7 years (27 fills), with 62% 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 work on IGIB?
No. The rule returned -0.48% a year and turned $10,000 into $9,730, against 0.21% a year for buy-and-hold. It ranked last of 12 templates on this fund. It won 8 of 13 closed trades and still lost money.
Why did it lose money with a 62% win rate?
The average loser was -3% and the average winner 1.98%, and one trade lost 10.22% over 239 days. That trade began on 2021-09-30 and ended on 2022-05-27. The profit factor was 1.
How many trades did it make?
It made 13 closed round trips and 27 fills, with a 14th position open at the end of the test. The median hold was 45 days. The rule was invested on 41.4% of trading days.
Would different RSI thresholds have helped?
Not on this fund. Buying below 25 returned -0.97%, buying below 35 returned -0.53%, selling above 65 returned -0.86% and selling above 75 returned -0.84%. All were below the published -0.48%.
What happened after IGIB's RSI fell below 30?
The median 5-day forward return was -0.24% and the median 20-day return was -1.91%. The baseline medians for any day were 0.02% and 0.22%. Oversold readings on this fund were followed by weaker returns, not rebounds.
Which strategy did best on IGIB?
The EMA 12/26 trend rule, at 2.35% a year with a 5.33% drawdown. The golden cross returned 1.84% and the SMA 10/50 trend rule 1.73%. Trend rules did well because they stepped aside in 2022.
Related
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.