3-Month Momentum Switch on IEF
iShares 7-10 Year Treasury Bond ETF: intermediate Treasuries, a common 60/40 diversifier. 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 rule held the iShares 7-10 Year Treasury Bond ETF (IEF) on only 13.4% of trading days between 2021-01-04 and 2026-10-02. Four round trips and 8 fills, one winner, ended with $9,252 from $10,000. That is a CAGR of -1.35% with a maximum drawdown of 9.07% and a Sharpe ratio of -0.52. Holding the fund from the first open finished at $8,756 (CAGR -2.29%) after a 21.77% drawdown.
The rule lost money and still finished ahead of holding the fund. It did so by staying out of the 2022 bond sell-off, when buy-and-hold lost 14.8%, and then giving back a little ground over three years on its four trades. This is a different kind of result from the stock funds on this site. IEF is a calm fund, with annualized volatility of 7.39%, and it fell for most of the window. A rule that waits for a 5% quarterly gain had very little to buy.
The record is thin, since four trades is a small sample. Everything here comes from one window of 5.74 years, in which this bond fund mostly fell, so the figures do not carry over to other rate environments. The rule is described on the 3-month momentum strategy page, and the fund has its own IEF page with all twelve templates side by side.
Year by year
| Year | 3-month momentum | buy & hold |
|---|---|---|
| 2021 | 0.0% | −3.3% |
| 2022 | 0.0% | −14.8% |
| 2023 | −3.5% | 3.5% |
| 2024 | −1.5% | −0.6% |
| 2025 | −2.7% | 7.8% |
| 2026 | 0.0% | −4.5% |
Year by year against holding IEF
Calendar-year results for the rule were 0% in 2021 and 2022, then -3.5%, -1.5% and -2.7% for 2023 to 2025, and 0% again in 2026 to date. The fund held the whole time gave -3.3%, -14.8%, 3.5%, -0.6%, 7.8% and -4.5% across the same six years. The rule beat holding in three years, 2021, 2022 and 2026, and lost to it in the other three. All three wins came from the same cause: the rule had no position.
2021 and 2022 were two years in cash. The entry condition asks for a 63-day return above +5%, and IEF did not produce one in either year. The fund lost 3.35% in 2021 and 15.16% in 2022 on the profile numbers, so no three-month run cleared the bar. The rule's first trade came on 2023-01-13 at an adjusted $86.95. That means the whole of 2022, the worst year for this fund in the window, passed with the account untouched. Against buy-and-hold's -14.8% that is the largest gap of any year in the table.
2023 is where the rule's cost shows up. It bought after a strong quarter for the fund and sold on 2023-02-21 at $84.06, a loss of 3.32% in 39 days. February 2023 returned -3.22% for the rule and is its worst month. The rule then sat in cash through the autumn while the fund produced its best month of the window for a holder, 4.47% in November. The rule re-entered on 2023-12-21 at $87.19, after most of that move, and the year ended at -3.5% against the fund's 3.5%.
2024 had two trades. The first, from 2023-12-21 to 2024-03-18, closed at $84.87 for a loss of 2.66% over 88 days. February 2024 took most of it at -2.04%. The second was the only winner of the run: it entered on 2024-07-18 at $87.09 and exited on 2024-10-30 at $87.85 for 0.87% over 104 days, the longest hold. July, August and September 2024 returned 1.18%, 1.33% and 1.32%, and then October gave back 2.91%. The year ended at -1.5%, against -0.6% for holding.
2025 had one trade, entered on 2025-04-04 at $91.58 and sold on 2025-05-29 at $89.06 for -2.75% over 55 days. April returned -1.04% and May -1.65%. Buy-and-hold made 7.8% in 2025 and the rule lost 2.7%, the widest gap against it. A three-month return that had only just crossed +5% was followed by a reversal.
2026 was flat for the rule. The fund returned -4.58% on the profile numbers, and the rule made no trade.
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% | −3.2% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −0.3% |
| 2024 | 0.1% | −2.0% | −0.4% | 0.0% | 0.0% | 0.0% | 1.2% | 1.3% | 1.3% | −2.9% | 0.0% | 0.0% |
| 2025 | 0.0% | 0.0% | 0.0% | −1.0% | −1.6% | 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% | – | – |
What the monthly table shows
Of the months in the table, only a handful have a nonzero figure. Everything from 2021-01 to 2022-12 is 0.0%, then the rule shows activity in January and February 2023, December 2023 through March 2024, July through October 2024, and April and May 2025. All other months are zeros: the account held cash.
The best month was August 2024 at 1.33%, followed by September 2024 at 1.32% and July 2024 at 1.18%. Those three months are the whole of the rule's winning trade. The worst was February 2023 at -3.22%, then October 2024 at -2.91%, February 2024 at -2.04% and May 2025 at -1.65%. A holder's worst month was September 2022 at -4.56%. The rule owned the fund in neither that month nor the best one.
Averaged by calendar month, the fund looked strongest in November (2.24%) and weakest in September (-1.79%) and October (-1.31%), with July at 0.88%. Each average rests on five or six readings, which is thin evidence of a seasonal habit. The rule's October 2024 loss of 2.91% is consistent with the weak October, and the fund's best November in the window, in 2023, fell between the rule's exit in February and its re-entry in December.
The rule's table is almost all zeros, and that reads as a result: a strategy that gets 13.4% exposure has a monthly record that a few trades decide. Four trades produced every nonzero month.
Every trade
3-month momentum on IEF made 4 closed round trips, an average hold of 72 days, an average winner of 0.87%, an average loser of −2.91%, a profit factor of 0.10, a longest losing streak of 2. It held a position at the close on 13.4% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2023-01-13 | $86.95 | 2023-02-21 | $84.06 | −3.3% | 39 |
| 2023-12-21 | $87.19 | 2024-03-18 | $84.87 | −2.7% | 88 |
| 2024-07-18 | $87.09 | 2024-10-30 | $87.85 | 0.9% | 104 |
| 2025-04-04 | $91.58 | 2025-05-29 | $89.06 | −2.8% | 55 |
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 four trades
With only four trades, each one can be described. The first entered on 2023-01-13 at $86.95 and exited on 2023-02-21 at $84.06, losing 3.32% over 39 days. The second entered on 2023-12-21 at $87.19 and exited on 2024-03-18 at $84.87, losing 2.66% over 88 days. The third entered on 2024-07-18 at $87.09 and exited on 2024-10-30 at $87.85, gaining 0.87% over 104 days. The fourth entered on 2025-04-04 at $91.58 and exited on 2025-05-29 at $89.06, losing 2.75% over 55 days.
The three losing trades followed one script. The rule enters after a quarter in which the fund gained more than 5%, the fund then gives back part of the gain, and the 63-day return turns negative, which is the exit condition. The exit comes after the loss has happened, since the signal needs the return over the last 63 days to drop below 0%. The strategy page warns that a slow lookback can leave late and return late. The exits here followed that script in three of the four trades.
A 25% win rate came from one winner and three losers. The lone gain was 0.87%, the losers averaged -2.91%, and the profit factor landed at 0.1. The middle trade lost 2.66% across a median hold of 88 days. Losses came in a pair at most, and the single win could not string with another. By exit year, 2023 had 1 round trip with 0 wins, 2024 had 2 with 1 win and 2025 had 1 with 0 wins.
Four trades do not support a conclusion about the rule. The average loser of -2.91% and the best trade of 0.87% describe these four. A fifth trade could have changed the profit factor a great deal. The comparison with other funds in the rank table below gives the same rule a wider test.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2023-01-18 | 2025-05-21 | −9.1% | 854 | not yet | – |
| 2023-01-12 | 2023-01-17 | −0.6% | 5 | 2023-01-18 | 1 |
Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2023-10-19 and reached −21.8%.
The drawdown
The deepest drawdown was 9.07%. The account peaked on 2023-01-18 and bottomed on 2025-05-21, 854 days later, without regaining the peak before the data ends. A second, smaller episode of 0.55% ran from 2023-01-12 to a low on 2023-01-17 and recovered the next day. The 9.07% drawdown is the slow sum of three losing trades, with the one winner of 0.87% unable to offset them.
The holder's slide ran from the first day of the window to 2023-10-19 and reached 21.77%. The fund's own profile shows 22.23% on a fully invested basis. Neither line made a new high by 2026-10-02. The rule's loss was smaller because it skipped the 2022 decline and spent most of the remaining days in cash. Its low on 2025-05-21 came a little over a week before the exit of the fourth trade, on 2025-05-29.
Buy-and-hold lost most of its value in 2022 in one drop and then drifted. The rule lost its value in three steps of 2.66% to 3.32% spread across 2023 to 2025. A shallow drawdown for the rule is the result of low exposure, so it says little about how the rule would protect an account in a long decline that began after an entry.
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) | −1.4% | −9.1% | $9,252 | -0.52 |
| 5 basis points | −1.4% | −9.4% | $9,214 | -0.55 |
| 10 basis points | −1.5% | −9.6% | $9,177 | -0.58 |
Cost runs
Charging 5 basis points a fill moved the CAGR to -1.42% and the end value to $9,214. Charging 10 basis points gave -1.49% and $9,177. The drawdown widened from 9.07% to 9.36% and then 9.64%. The Sharpe ratio went from -0.52 to -0.552 and -0.577.
With 8 fills, costs barely matter. Each extra basis point is paid 8 times on a nearly full sleeve. IEF trades deeply, with $675,908,601 changing hands on an average day and a median minute volume of 7,536 shares, so a charge of 5 or 10 basis points is a conservative assumption. The cost runs end close to the headline run, and the rule remained ahead of buy-and-hold's $8,756 even at 10 basis points.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −1.4% | −9.1% | 4 | 25% | $9,252 |
| Enter above 0% | −0.5% | −9.5% | 43 | 44% | $9,710 |
| Enter above 10% | 0.0% | −0.0% | 0 | – | $10,000 |
| Enter above 15% | 0.0% | −0.0% | 0 | – | $10,000 |
What the parameter variants show
Three variants changed the entry threshold, which is +5% in the published rule. Entering above 0% returned -0.51% a year with a 9.53% drawdown, 43 trades and 19 wins, ending at $9,710. Entering above 10% and entering above 15% both made no trades at all: the CAGR was 0%, the drawdown was 0% and the account stayed at $10,000.
The two empty variants are a result. At those thresholds no entry signal appeared in the window. The published threshold of +5% barely fired, with 4 entries. A rule with a threshold that high needs a fund with large quarterly swings, and a bond fund with 7.39% volatility has few. The 0% threshold traded often enough to be tested, 43 times, and lost less than the published rule, with 19 wins out of 43.
That 0% variant lost less than the published rule's -1.35% but still lost money, on a very different trade count, 43 against 4. Neither is a profitable rule on this fund. The variants show that the published rule's result is mostly the effect of high thresholds on a low-volatility fund: with the bar set high, the rule rarely trades, and when it does it buys late.
How IEF behaved
| Measure | IEF |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | −12.9% |
| Annualized volatility | 7.4% |
| Deepest drawdown | −22.2% (2021-01-04 to 2023-10-19) |
| Up days | 48.5% |
| Average daily range | 0.42% |
| Average overnight gap | 0.26% |
| Correlation to SPY | 0.09 |
| Correlation to QQQ | 0.10 |
| Correlation to TLT | 0.91 |
| Sessions above the 200-day average | 53.0% |
| Crossings of the 200-day average | 60 |
| Falls of 10% or more from a 20-day high | 0 |
How IEF behaved
IEF is an intermediate Treasury fund and a common diversifier in 60/40 portfolios. Over the window it returned -12.95% in total on the profile numbers, a CAGR of -2.39%. Up days were 48.51% of sessions, and the typical up or down day was only 0.36%. The average daily range was 0.42% and the average overnight gap was 0.26%. The fund's peak-to-trough loss was 22.23%, finishing on 2023-10-19, with no recovery to the old high. By year it made -3.35% (2021), -15.16% (2022), 3.64% (2023), -0.63% (2024), 8.03% (2025) and -4.58% (2026).
Against equities the fund was nearly uncorrelated, 0.09 to SPY and 0.1 to QQQ, while its correlation to TLT was 0.91 with a beta of 0.44. It behaves like a shorter-duration version of the long Treasury fund. Its closest relatives in the data are BND (0.98), AGG and IEI (0.97 each), UST (0.94) and IGIB (0.92).
Three features of the fund bear on a momentum rule. First, price sat above its 200-day average on 53.01% of sessions and crossed that line 60 times, which means trends were short and reversed often. Second, RSI(14) closed under 30 in 64 sessions, and the median 20-day return that followed was -1%, where the all-session median was -0.02%. Oversold readings did not mark a bottom in this window. Third, there were no 10% drops from a 20-day high at all. The fund's damage built up over many months instead of arriving in sharp drops.
The largest daily moves were 2.26% on 2022-09-28 and 2.24% on 2022-11-10 up, and -1.77% on 2022-06-13 and -1.68% on 2022-09-26 down. The five worst days all fell in 2022, as did the two largest up days. The fund's negative return came almost entirely overnight: the overnight log return was -11.05% and the intraday log return was -2.55%.
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.
How the rule fits a bond fund
The template puts 98% of the sleeve in once the 63-day return clears +5% and sells everything when that return drops under 0%. The gap between +5% and 0% is described on the strategy page as a buffer against flip-flopping. On IEF the buffer worked as designed in one respect, since the rule did not flip often. It made 4 round trips, where the 0% entry made 43.
The rule ranks 8th of 12 templates on IEF and 36th of 59 funds for this strategy. At the top on IEF were the RSI(2) snapback at 1.84% and the SMA 10/50 trend at 1.33%. The dip buyer and the momentum breakout stayed at 0%. Below zero were the golden cross at -0.29%, the EMA 12/26 trend at -0.39% and the RSI mean reversion at -0.84%, then this rule at -1.35%. The bottom four were the 200-day regime filter (-1.53%), the weekly 7% target (-1.54%), the trend with a trailing stop (-2.13%) and the monthly cycle (-2.69%). The best of the twelve returned 1.84%, so no template found a large return on this fund.
Across bond funds the rule ran from 0.25% on IGIB with 4 round trips to -2.28% on TLT with 7 and a drawdown of 18.58%. SGOV returned 0% with no trades. IEI returned -0.59%, AGG -0.74% and BND -0.98%. IEF at -1.35% sat second from the bottom. For this template the median fund returned 0%, and the median bond fund -0.74%.
The test has a single window, daily decisions filled on minute bars, no margin and no fees in the headline run. It covers a falling rate-sensitive fund and says nothing about a rising bond market.
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 IEF?
Over 2021-01-04 to 2026-10-02, 3-month momentum on IEF returned −1.4% annualized vs −2.3% for buy-and-hold: it beat buy-and-hold by 0.9% per year, with a maximum drawdown 12.7 points shallower than holding (9.1% vs 21.8%).
How many trades did it make?
4 completed round trips over 5.7 years (8 fills), with 25% 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.
Did the 3-month momentum rule beat buy-and-hold on IEF?
It lost less. Over the full window the rule compounded at -1.35% and finished at $9,252. Buy-and-hold had -2.29% and ended at $8,756. The rule won in 2021, 2022 and 2026 by holding cash, and lost to the fund in 2023, 2024 and 2025.
How many trades did the rule make on IEF?
Four round trips and 8 fills. One won, for 0.87%. The three losers lost 3.32%, 2.66% and 2.75%. Exposure was 13.4%, so the account was in cash on most days.
Why did the rule do nothing in 2021 and 2022?
The entry needs a 63-day return above +5%. IEF lost 3.35% in 2021 and 15.16% in 2022, so no quarter qualified. The first entry was on 2023-01-13.
What happens if the entry threshold changes?
Entering above 0% made 43 trades with 19 wins and a CAGR of -0.51%. Thresholds of 10% and 15% produced no trades. All three are single-window tests.
How deep was the drawdown?
The worst loss from a peak was 9.07%, running from 2023-01-18 to 2025-05-21, with no recovery by the end of the data. Buy-and-hold's maximum drawdown was 21.77%.
Do trading costs change the result?
Slightly. At 5 basis points the CAGR is -1.42% and at 10 basis points it is -1.49%. With 8 fills the cost effect is small, and the rule stays ahead of buy-and-hold at both levels.
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.