3-Month Momentum Switch on IEI
iShares 3-7 Year Treasury Bond ETF: shorter-duration Treasuries with milder swings. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The 3-month momentum switch looks back 63 trading days. It buys with 98% of the sleeve when the trailing return is above 5% and sells the whole position when that return drops below 0%. The gap between the entry and exit levels is a buffer so that the rule does not flip on a single threshold. IEI, the iShares 3-7 Year Treasury Bond ETF, is a fund of intermediate Treasuries with an annualized volatility of 4.57% in this window.
From 2021-01-04 to 2026-10-02 the rule made 2 round trips, both losers, and ended with $9,668.54, a total return of -3.31% and a CAGR of -0.59%. Holding IEI with 98% of the account invested ended at $9,793.36, a CAGR of -0.36%. The rule trailed by $124.82 in ending value and by 0.23 points of CAGR. Its maximum drawdown was 3.76%, against 13.8% for buy-and-hold.
Two features define the result. The rule was invested for 8% of the window, so it avoided nearly all of the 2022 bond decline. It entered only twice, when IEI had rallied enough to meet the 5% entry test, and both entries lost money. That left a small loss in exchange for a large reduction in drawdown.
The test covers one fund, one window and two trades.
Year by year
| Year | 3-month momentum | buy & hold |
|---|---|---|
| 2021 | 0.0% | −2.5% |
| 2022 | 0.0% | −9.3% |
| 2023 | −0.1% | 4.3% |
| 2024 | −3.2% | 1.9% |
| 2025 | 0.0% | 6.6% |
| 2026 | 0.0% | −2.4% |
Year by year
The rule's yearly returns were 0% in 2021, 0% in 2022, -0.1% in 2023, -3.2% in 2024, 0% in 2025 and 0% in 2026 up to the end date. Buy-and-hold on IEI returned -2.5%, -9.3%, 4.3%, 1.9%, 6.6% and -2.4%. The yearly gaps in the rule's favour were 2.5 points in 2021, 9.3 in 2022 and 2.4 in 2026. The gaps against it were 4.4 in 2023, 5.1 in 2024 and 6.6 in 2025.
2022 is the year that matters. IEI fell 9.54% that calendar year, and its worst peak to trough decline ran from 2021-01-04 to 2022-10-20 at -14.21%. The rule held no position through any of it, because the 63-day return never rose above 5% and a rule that never enters never has to exit. The 9.3 point gap that year is the main reason the maximum drawdown differs so much.
2023 and 2025 show the price of that discipline. Buy-and-hold made 4.3% in 2023 and 6.6% in 2025. The rule made -0.1% and 0%. It entered on 2023-12-28, after the rally of the prior months, and took its losses in 2024. In 2025 the fund recovered to its January 2021 high on 2025-10-16, and the rule sat in cash for all of it.
2024 was the only year with real activity. Both round trips closed in 2024, 0 of 2 won, and the year's return of -3.2% is the whole of the rule's loss. The fund itself gained 1.9% that year, so the rule's entries did worse than simply holding through the same weeks.
In 2021 and 2026 the fund lost 2.5% and 2.4% while the rule stayed flat. The rule beat buy-and-hold in 3 of 6 years, namely 2021, 2022 and 2026, and each of those was a year in which the fund fell.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2022 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −0.1% |
| 2024 | 0.3% | −1.3% | −0.3% | 0.0% | 0.0% | 0.0% | 0.0% | −0.8% | 1.0% | −2.2% | 0.0% | 0.0% |
| 2025 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2026 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | – | – |
The months with something in them
Every month of 2021, 2022 and most of 2023 shows 0 for the rule, which sat in cash from the first session. The first nonzero month is 2023-12 at -0.11%, which is the last few sessions after the 2023-12-28 entry. The rest of the activity falls in 2024. January gained 0.28%, February lost 1.31% and March lost 0.25%, which covers the first trade through its exit on 2024-03-18. August lost 0.77%, September gained 0.98% and October lost 2.16%, which covers the second trade.
The best month was September 2024 at 0.98%. The worst was October 2024 at -2.16%, and it came in the last month of the second trade, which exited on 2024-10-31. Every other month in the table, including everything in 2025 and 2026 to date, is 0.
Buy-and-hold's best month was March 2023 at 2.83% and its worst was March 2022 at -3.04%. The rule was flat in both. The rule missed the March 2023 gain and avoided the March 2022 loss.
Every trade
3-month momentum on IEI made 2 closed round trips, an average hold of 84 days, an average loser of −1.71%, a longest losing streak of 2. It held a position at the close on 8.0% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2023-12-28 | $106.70 | 2024-03-18 | $105.18 | −1.4% | 81 |
| 2024-08-05 | $110.87 | 2024-10-31 | $108.65 | −2.0% | 87 |
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 two trades
Trade one entered on 2023-12-28 at an adjusted price of 106.70 and exited on 2024-03-18 at 105.18, a loss of 1.42% over 81 days. Trade two entered on 2024-08-05 at 110.87 and exited on 2024-10-31 at 108.65, a loss of 2% over 87 days. The median trade lost 1.42% and the median hold was 87 days. The shortest hold was 81 days and the longest was 87.
Each entry was triggered by a three-month run above 5%. In late December 2023 and early August 2024 the fund had just rallied, and the rule bought the strength. In both cases the rally stalled, and the 63-day return later fell under 0%, which closed the position at a lower price than the entry. This is the cost the template's own caveat describes: a three-month lookback is slow, and a V-shaped move can send the rule out near a low and in near a high.
The record is a win rate of 0%, an average loss of 1.71%, a longest losing streak of 2 and a profit factor of 0. The best trade lost 1.42%, which is why the best-trade and worst-trade lists show the same two lines in different order. There is no winner to describe.
The 4 fills, one buy and one sell per round trip, produced the whole equity change. The exposure of 8% means the rule held IEI for a small fraction of the window, while buy-and-hold held it for all of the window and went through the whole decline.
What each entry paid and the months around the exits
The first buy at 106.70 on 2023-12-28 sat through a month of -0.11% in December 2023, a gain of 0.28% in January 2024 and a fall of 1.31% in February, then closed on 2024-03-18 at 105.18. March added a further -0.25% before the exit took effect. The second buy at 110.87 on 2024-08-05 was the higher entry price of the two, and August 2024 booked -0.77% before the September gain of 0.98%. The rule then held through October and sold on 2024-10-31 at 108.65, which made October 2024 the worst month of the record at -2.16%.
The interval between the two trades is also informative. The sell on 2024-03-18 came at 105.18 and the next buy came at 110.87, so the rule paid a higher price to get back in. It never traded in the other direction, buying lower after a sell. After the second exit the 63-day return did not clear 5% again through 2026-10-02, and every monthly figure from November 2024 onward is 0.
The flat stretches had a cost as well. In the 2025 calendar year the fund returned 6.83% and the rule returned 0%, while the buy-and-hold run showed 6.6% for the same year. The rule's two losses came in the one year when the fund itself rose 1.92%, which means the entries lost to the fund in the very weeks they were invested.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2024-02-01 | 2024-10-31 | −3.8% | 273 | not yet | – |
| 2024-01-12 | 2024-01-24 | −0.9% | 12 | 2024-01-31 | 7 |
| 2023-12-27 | 2024-01-05 | −0.7% | 9 | 2024-01-12 | 7 |
Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2022-10-20 and reached −13.8%.
The drawdown
The rule's deepest drawdown was 3.76%. The peak was on 2024-02-01 and the trough on 2024-10-31, 273 days later, and the account had not recovered by 2026-10-02. That drawdown is a combination of the two losing trades. The first cost 1.42% and the second 2%, and the 2024-02 peak came partway through the first trade.
The rule's other two drawdowns were small. One ran from 2024-01-12 to a trough on 2024-01-24 at 0.93%, and recovered on 2024-01-31. The other ran from 2023-12-27 to a trough on 2024-01-05 at 0.74%, and recovered on 2024-01-12.
Buy-and-hold had a 13.8% drawdown from 2021-01-04 to 2022-10-20, which took 654 days to reach and 1,092 more days to recover, with recovery on 2025-10-16. It then had a second drawdown of 3.88% from 2026-02-27 to a trough on 2026-09-28, with no recovery by the end date, and a third of 0.73% from 2025-11-26.
The drawdown gap of 10.04 points is the rule's one clear advantage here. The cost was a loss that stayed open, since the rule took no position in 2025 or 2026 and had no chance to recover it.
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.6% | −3.8% | $9,669 | -0.51 |
| 5 basis points | −0.6% | −3.9% | $9,649 | -0.54 |
| 10 basis points | −0.7% | −4.0% | $9,633 | -0.56 |
With trading costs
At 5 basis points per trade the CAGR was -0.62%, the maximum drawdown 3.91%, the ending equity $9,649.35 and the Sharpe ratio -0.535. At 10 basis points the CAGR was -0.65%, the maximum drawdown 4.03%, the ending equity $9,632.60 and the Sharpe ratio -0.56. The headline Sharpe ratio was -0.51.
Four fills carry little cost, and the change between the headline and the 10 basis point run is small in every column. The two losing trades made the result negative. A rule that trades twice in 5.74 years is cheap to run and the cost runs barely matter. For scale, IEI's average daily dollar volume was 172,230,207 and its median minute volume was 1,292.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −0.6% | −3.8% | 2 | 0% | $9,669 |
| Enter above 0% | 0.6% | −4.1% | 30 | 33% | $10,367 |
| Enter above 10% | 0.0% | −0.0% | 0 | – | $10,000 |
| Enter above 15% | 0.0% | −0.0% | 0 | – | $10,000 |
Changing the entry level
Three entry levels were tested on the same exit. Entering above 0% made 30 trades with 10 winners, finished at $10,366.59, a CAGR of 0.63%, a maximum drawdown of 4.1% and a Sharpe ratio of 0.229. Entering above 10% made 0 trades and ended at $10,000. Entering above 15% also made 0 trades.
The comparison with the default is stark. The default, with an entry above 5%, made 2 trades and lost money. A lower entry of 0% traded 30 times and made money. A higher entry of 10% never traded. IEI rarely produced a three-month gain above 5%. The setting fired twice in five years and lost both times.
The 0% variant is the more useful reading of the idea on this fund. The signal is no longer an unusual burst, since the rule holds whenever the last three months are positive. That setting traded 30 times and won 10 of them. Ten winners in 30 trades with a positive CAGR implies the winners were larger than the losers. The default looks like a poor fit for this fund, and the 0% result comes from one window only.
How IEI behaved
| Measure | IEI |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | −2.3% |
| Annualized volatility | 4.6% |
| Deepest drawdown | −14.2% (2021-01-04 to 2022-10-20) |
| Up days | 48.2% |
| Average daily range | 0.25% |
| Average overnight gap | 0.16% |
| Correlation to SPY | 0.08 |
| Correlation to QQQ | 0.09 |
| Correlation to TLT | 0.80 |
| Sessions above the 200-day average | 59.2% |
| Crossings of the 200-day average | 42 |
| Falls of 10% or more from a 20-day high | 0 |
How IEI behaved
IEI returned -2.25% from 2021-01-04 to 2026-10-02, a CAGR of -0.39% with a maximum drawdown of -14.21%. Its calendar returns were -2.55% in 2021, -9.54% in 2022, 4.43% in 2023, 1.92% in 2024, 6.83% in 2025 and -2.48% in 2026 so far. The longest drawdown lasted 1,201 sessions.
Only 48.23% of sessions closed up. The average up day was 0.22% and the average down day was -0.21%. The best days were 2022-11-10 at 1.45%, 2022-09-28 at 1.37% and 2023-03-13 at 1.2%. The worst were 2022-06-13 at -1.09%, 2024-04-10 at -0.98% and 2022-08-05 at -0.97%. The lag-1 autocorrelation was -0.01, so a day's move carried no information about the next.
The fund closed above its 200-day average on 59.2% of sessions and crossed it 42 times. Frequent crossings point to a fund that trended in stretches and then chopped. A 63-day lookback sees only the stretches where the gain exceeds 5%, and IEI offered few of them.
The overnight log return was 4.78% and the intraday log return was -6.95%. The fund gained between the close and the next open and lost during the session, in aggregate. After an RSI(14) reading under 30, which occurred on 64 sessions, the median 5-day forward return was -0.11% across 63 cases and the median 20-day return was -0.65% across 55. The baseline medians were -0.03% and 0.04%.
IEI moved with the rest of the Treasury and bond group. Its correlation with IEF was 0.97, with AGG 0.94, with BND 0.94, with UST 0.91 and with IGIB 0.89, and its correlation to TLT was 0.8. Its correlation to SPY was 0.08 and to QQQ 0.09. TBF was the least correlated at -0.8.
Calendar and RSI statistics for IEI
The fund's average return by calendar month was positive in November at 1.32% and in July at 0.67%, and negative in September at -0.98% and October at -0.72%. Each month has 5 or 6 observations, so the averages describe this window only. The rule's one October trade ended in October 2024, the month the table gives it -2.16%.
By weekday the averages were Monday -0.04%, Tuesday 0.01%, Wednesday 0.03% and 0% for Thursday and Friday, which is flat. The average intraday range was 0.25% and the average overnight gap was 0.16%. In aggregate the fund earned its return before the open and gave some of it back during the session, with the intraday share of return recorded as 320.47% and the overnight share as -220.47%. Those shares are large because the fund's total return was close to zero, and they say little beyond the direction of each leg.
The RSI tests show no reliable bounce. RSI(2) fell below 10 on 183 sessions, and the median forward return was -0.04% over 5 days and -0.02% over 20, against baselines of -0.03% and 0.04%. After RSI(14) fell under 30 the 20-day median was -0.65%. Oversold readings on IEI were followed by results no better than any other day, which suits a fund that moves in small steps with little persistence in either direction.
The fund had 0 events where it fell 10% inside 20 days, against 50 for QLD on the same measure. Its beta to SPY was 0.02 and to TLT 0.24, with a correlation of 0.8 to TLT. A rule that waits for a 5% quarterly gain is waiting for a move that this fund rarely produces.
The rules
Hold while the trailing 3-month return is positive (above +5% to enter, below 0% to exit).
- WHEN the market opens · IF not invested AND the 63-day return > +5% · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND the 63-day return < 0% · THEN sell the whole position
Time-series momentum on a quarterly lookback, the horizon much of the academic momentum literature uses. The template enters after a +5% three-month run and exits when the same measure turns negative. The gap between entry (+5%) and exit (0%) is a buffer against flip-flopping around a single threshold.
Good for: assets with long, persistent cycles, such as index, sector and managed-futures ETFs.
Watch out: a three-month lookback is slow; V-shaped crashes and recoveries can see it exit near the bottom and re-enter well off the low.
What the 63-day test measures
The rule compares today's price with the price 63 sessions earlier. A reading above 5% opens the position and a reading below 0% closes it. Between 0% and 5% the rule does nothing, so it keeps a position it already holds and stays out when it has none. That band is what stops the rule from flipping each time the return crosses a single line.
The band also explains the long idle stretches. The fund's calendar returns ran from -9.54% in 2022 to 6.83% in 2025, and in most of that span the three-month return sat below the 5% entry line. IEI's average up day of 0.22% would need to repeat for many sessions in a row to carry the reading above 5%, and the fund's 48.23% share of up days made long runs uncommon. The two entries the rule did take came at the end of the few runs that lasted.
The template uses a quarterly lookback, a horizon much of the academic momentum literature uses. A single intermediate Treasury fund over 5.74 years is a thin test of it, and the 3-month lookback is slow enough that the exit arrives after a decline is well under way.
How the rule fit this fund
The rule asks for persistence over a quarter. IEI had a stretch of persistence in 2022, but it was a decline, and a long-only rule has no use for it. The rally that followed was short and uneven. The rule fired in late 2023 and mid 2024 into rallies that faded, which is the pattern of a fund that does not hold direction for months at a time.
On IEI the twelve rules ranged from a CAGR of 1.43% for the trend with trailing stop, with a 5.2% drawdown, to -0.84% for the monthly cycle, with a 15% drawdown. The RSI(2) snapback made 1.42% with 6.87%, the SMA 10/50 trend 1.24% with 3.21%, the golden cross 1.09% with 5.51%, the 200-day regime filter 1.03% with 4.62% and the EMA 12/26 trend 0.87% with 4.24%. The dip buyer and the momentum breakout show 0 for both. The RSI mean reversion made -0.2% with 8.65% and the weekly 7% target -0.26% with 11.78%. The 3-month momentum rule, at -0.59% with 3.76%, ranked 11 of 12.
Across all 59 funds, IEI ranks 33 for this rule, and the median CAGR for the rule was 0%, with a bond category median of -0.74%. Within bonds, IGIB made 0.25% with a 4.99% drawdown over 4 round trips. SGOV made 0% over 0. AGG made -0.74% with 5.72% over 3. BND made -0.98% with 6.55% over 3. IEF made -1.35% with 9.07% over 4, and TLT made -2.28% with 18.58% over 7. IEI's -0.59% therefore ranks third of the seven bond funds, and its drawdown is the shallowest of any bond fund that traded. The pages for IGIB, SGOV, AGG, BND, IEF and TLT show the same rule on each. The trend rules that did best on IEI include the SMA 10/50 trend, the golden cross and the 200-day regime filter.
What two trades can show
Two round trips are too few to say anything about the rule's quality. The result depends on the single window of 5.74 years, on 63-day lookbacks that started in 2021, and on the entry level of 5%. The headline run charges no fees or slippage. The rule reached a drawdown 10.04 points shallower than buy-and-hold, and that is a fact about this window and this fund and not a forecast. The IEI page lists all 12 rules on the fund, and the 3-month momentum hub lists all 59.
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 3-month momentum beat buy-and-hold on IEI?
Over 2021-01-04 to 2026-10-02, 3-month momentum on IEI returned −0.6% annualized vs −0.4% for buy-and-hold: it trailed buy-and-hold by 0.2% per year, with a maximum drawdown 10.0 points shallower than holding (3.8% vs 13.8%).
How many trades did it make?
2 completed round trips over 5.7 years (4 fills), with 0% of round trips closing profitably.
Why 63 days?
63 trading days is about one quarter, a common momentum lookback. You can sweep it in DeployQuant to see how the horizon changes results.
How did the 3-month momentum rule do on IEI?
It made 2 round trips, both losers, and turned $10,000 into $9,668.54 between 2021-01-04 and 2026-10-02, a CAGR of -0.59%. Buy-and-hold ended at $9,793.36. The rule's maximum drawdown was 3.76% against 13.8%.
Why did the rule avoid the 2022 bond decline?
Its entry needs a 63-day return above 5%, and IEI never met that during 2022. The rule held no position that year, so it returned 0% while the fund lost 9.3% in buy-and-hold terms.
Why did both trades lose money?
Each entry followed a rally above 5% over three months, and each rally faded. The first trade entered on 2023-12-28 at 106.70 and exited on 2024-03-18 at 105.18. The second entered on 2024-08-05 at 110.87 and exited on 2024-10-31 at 108.65.
Would a lower entry level work better?
Entering above 0% made 30 trades with 10 winners and a CAGR of 0.63%. Entering above 10% or 15% made no trades. The result covers one window and one fund, so it is not a recommendation.
Do trading costs matter here?
Very little. With only 4 fills, the CAGR was -0.62% at 5 basis points and -0.65% at 10 basis points, against -0.59% in the headline run.
How does IEI compare with other bond funds for this rule?
IGIB had the best CAGR at 0.25%. IEI at -0.59% sat in the middle, ahead of AGG, BND, IEF and TLT, and its 3.76% drawdown was the shallowest of the bond funds that traded.
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.