Learn › Strategies › 20-Day Momentum + Trailing Stop › IEI

20-Day Momentum + Trailing Stop 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.

Result: momentum breakout on IEI turned $10,000 into $10,000 (0.0% total, 0.0% CAGR): it beat buy-and-hold by 0.4% per year, with a maximum drawdown 13.8 points shallower than holding (0.0% vs 13.8%).

The momentum breakout rule enters after a rise of more than 10% across 20 sessions. The exit is a trailing stop 10% below the high-water mark. IEI is the iShares 3-7 Year Treasury Bond ETF, and the rule placed no trades on it from 2021-01-04 to 2026-10-02. The account stayed at $10,000, with 0% CAGR, 0% drawdown and no fills in 1,444 sessions.

The result is a clean zero, and it says something about the fund. IEI never produced the entry condition. A 10% gain in four weeks is a move for semiconductor and leveraged tech funds, the kind of asset the template lists as a good fit. A mid-duration Treasury ETF with an annualized volatility of 4.57% does not move like that. Its best day in the data was a gain of 1.45% on 2022-11-10, and its best month was 2.83% in March 2023.

Buy-and-hold on IEI lost 0.36% a year and ended at $9,793.36. The idle account finished $206.64 ahead of the fund. That gap exists because the fund lost money over the window, not because the rule did anything. Against holding, the rule came out ahead in 2021, 2022 and 2026. It fell behind in 2023, 2024 and 2025, when it sat in cash while IEI paid interest and rose.

The page ranks the rule 8th of 12 strategies on IEI and IEI 31st of 59 funds for the rule. The rule's median CAGR across all 59 funds is 0%, so a zero here matches the typical outcome for this template.

0.0%CAGR
−0.4%buy & hold CAGR
−0.0%max drawdown
0.00Sharpe ratio
0round trips
■ momentum breakout   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yearmomentum breakoutbuy & hold
20210.0%−2.5%
20220.0%−9.3%
20230.0%4.3%
20240.0%1.9%
20250.0%6.6%
20260.0%−2.4%

Year by year

The rule's return was 0% in every year from 2021 to 2026, because it never held a position. The comparison with buy-and-hold carries all the information.

IEI returned -2.5% in 2021 by buy-and-hold. The idle account was 2.5 points ahead. In 2022 the fund lost 9.3%, the worst calendar year in the record, and cash was 9.3 points ahead. The fund's 2022 loss is the largest single reason for the whole result: a bond fund that falls that much in a year is a rare event, and the cash account avoided all of it.

In 2023 the fund returned 4.3% and cash trailed by 4.3 points. In 2024 the fund returned 1.9%, in 2025 6.6%, and cash trailed by 1.9 and 6.6 points. In 2026, a partial year through 2026-10-02, the fund is at -2.4% and cash is 2.4 points ahead.

The fund fell in 2021 and 2022, rose from 2023 to 2025 and fell again in 2026, ending slightly below where it started. The rule had no way to be in the fund in the up years, since its entry needs a burst of strength, and that burst never arrived. The rule did not time the bond market. It sat out the whole window.

Calendar-year returns for the fund itself differ slightly from the buy-and-hold run because the run holds 98% of the account: -2.55%, -9.54%, 4.43%, 1.92%, 6.83% and -2.48% against -2.5%, -9.3%, 4.3%, 1.9%, 6.6% and -2.4%.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20220.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20230.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20240.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20250.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
20260.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%––

Month by month

Every month in the table shows 0, so the monthly table has nothing to say about the rule. The fund's own months say more. The best month for buy-and-hold was March 2023 at 2.83%, and the worst was March 2022 at -3.04%.

The fund's month-of-year averages, taken over 5 or 6 observations each, ran from -0.98% in September to 1.32% in November, with July at 0.67%. October averaged -0.72%. Those samples are too small to rely on. They show that the fund's typical month is within a point or two of zero, and a 10% gain over 20 sessions is many times larger than a normal month for this fund.

The fund's average up day was 0.22% and its average down day -0.21%. 48.23% of days were up. The average intraday range was 0.25% and the average overnight gap 0.16%. Day-to-day returns carried almost no memory, with a lag-1 autocorrelation of -0.01. A fund with those features trends slowly and rarely bursts, and the entry condition is a burst.

Trades

There are no trades to list. The count is 0, with no open position at the end and no fills. The win rate, average win, average loss and profit factor are all undefined.

The entry rule is checked at each open. It asks whether the 20-day return is above 10% and whether the sleeve is out of the market. On IEI the first part was never true across the window. The fund's worst drawdown over 20 sessions, measured by the same kind of window the dip-buying templates use, never reached 10% either: there were 0 drawdown events of 10% inside 20 sessions on IEI.

That symmetry matters for reading the trailing stop. The stop is a 10% trail below the high-water mark. A fund that never gained 10% in four weeks and never fell 10% from a 20-day high leaves both the entry and the exit rule with nothing to do. The fund's total drawdown of 14.21% from 2021-01-04 to 2022-10-20 was spread across almost two years, not packed into a month.

The entry check ran at the open of every one of the 1,444 sessions, and the answer was the same each time. The rule's trade list for this fund is empty, and the practical meaning is that the template and the fund do not overlap. The template is designed for assets where trends extend after a burst. It lists semiconductor and leveraged tech ETFs as the good fit, and a bond ETF with this profile sits at the other end of that range. Other templates in the library did trade IEI, and the last section gives their results. IEI's own record has a long slow decline and a long slow recovery.

Drawdowns

The rule's drawdown list is empty. With no position, equity never moved from $10,000 and the maximum drawdown is 0%.

Buy-and-hold had three drawdowns. The first started on 2021-01-04, the first day of the data, and reached 13.8% on 2022-10-20 after 654 days. Recovery came on 2025-10-16, 1,092 days after the trough. The fund itself spent 1,201 sessions in drawdown, from the peak on 2021-01-04 to the recovery.

The second drawdown started on 2026-02-27 and reached 3.88% on 2026-09-28, with no recovery by the end of the data. The third was 0.73%, from 2025-11-26 to a trough on 2025-12-09 and a recovery on 2026-02-05.

The maximum drawdown gap between the fund and the idle account is 13.8 points. For a bond fund with volatility of 4.57% a year, a drawdown of that depth that lasts about three years shows that low volatility does not mean low drawdown. A fund that moves 0.22% on an average up day can still lose 13.8% when the move goes the same direction for months.

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.0%−0.0%$10,0000.00
5 basis points0.0%−0.0%$10,0000.00
10 basis points0.0%−0.0%$10,0000.00

Cost runs

The 5 and 10 basis point runs are the same as the headline: 0% CAGR, 0% drawdown and $10,000 in each. With 0 fills there is nothing to charge. The cost runs provide no information about this fund. They are listed because every page has them.

The fund's liquidity is not a limit here. Liquidity for IEI averaged $172,230,207 of dollar volume a day, and the median minute held 1,292 shares. If the rule had traded, a small account would have filled easily.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules0.0%−0.0%0–$10,000
5% trailing stop0.0%−0.0%0–$10,000
15% trailing stop0.0%−0.0%0–$10,000
20% return entry0.0%−0.0%0–$10,000

Parameter variants

Alternatives were a 5% trailing stop, a 15% trailing stop, and an entry needing a 20% return. All three gave 0% CAGR, 0% drawdown, $10,000 at the end and 0 trades.

Each variant changes one dial. The variants change the exit twice and the entry once. Changing the exit has no effect when there is no entry. The 20% entry is a harder condition than the 10% base case, so it cannot fire where the base case did not. The variants therefore return the same empty result as the base case, and the table gives no evidence about which setting is better on a bond fund.

A 5% stop would have exited quickly after any entry and a 15% stop would have given a position more room, and the table cannot show the effect of either. The more useful test for this fund would be a lower entry threshold. The facts do not include one, so the page can only say what the tested settings did. The best day of 1.45% and the best month of 2.83% suggest the threshold would have to be a small fraction of 10% before IEI produced any entries, and at that level the rule would be a different strategy from the one tested.

How IEI behaved

MeasureIEI
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−2.3%
Annualized volatility4.6%
Deepest drawdown−14.2% (2021-01-04 to 2022-10-20)
Up days48.2%
Average daily range0.25%
Average overnight gap0.16%
Correlation to SPY0.08
Correlation to QQQ0.09
Correlation to TLT0.80
Sessions above the 200-day average59.2%
Crossings of the 200-day average42
Falls of 10% or more from a 20-day high0

How IEI behaved

Across the window IEI lost 2.25% in total, -0.39% a year. Its maximum drawdown was 14.21%, 2021-01-04 to 2022-10-20, and it recovered on 2025-10-16. Its beta to SPY was 0.02, with a correlation of 0.08. Against TLT the correlation was 0.8 and the beta 0.24. IEI sat over its 200-day average for 59.2% of sessions and crossed it 42 times.

The RSI(14) fell under 30 on 64 sessions and rose above 70 on 46. After the oversold readings the median 5-day forward return was -0.11% and the median 20-day return was -0.65%. For the 2-day RSI under 10, on 183 sessions, the medians were -0.04% and -0.02%. The baseline medians were -0.03% and 0.04%. Oversold readings on IEI were followed by results at or below the baseline, and the readings did not mark a bounce.

The split of returns between overnight and intraday. The fund's overnight log return was 4.78% and its intraday log return -6.95%, so the whole decline happened during trading hours and the gaps between close and open were positive.

The best five days in the data were 1.45% on 2022-11-10, 1.37% on 2022-09-28, 1.2% on 2023-03-13, 1.16% on 2023-03-10 and 1.12% on 2023-03-15. The worst five were -1.09% on 2022-06-13, -0.98% on 2024-04-10, -0.97% on 2022-08-05, -0.92% on 2022-08-02 and -0.91% on 2022-03-02. All five came between September 2022 and March 2023, and even the best of them was a gain of about a percent and a half. Day-of-week averages ran from -0.04% on Mondays to 0.03% on Wednesdays, so no weekday carried a pattern a rule could use.

A momentum rule needs a fund that moves in steps. IEI moved in small steps: 0.25% on an average intraday range. The 200-day average was crossed 42 times, which is a lot for a fund with a total return near zero, and shows a market drifting around its average with little persistence.

The rules

Buy after a +10% four-week burst and let a 10% trailing stop manage the exit.

  1. WHEN the market opens · IF not invested AND the 20-day return > +10% · THEN buy with 98% of the sleeve
  2. WHILE invested · a managed trailing stop follows 10% below the position's high-water mark

Momentum entry, trailing-stop exit. A +10% gain over 20 sessions marks a burst of momentum. The template buys the strength and exits on a 10% trailing stop that ratchets up beneath the highest close and never moves down. There is no profit target, so winners run until the trail is hit.

Good for: high-momentum assets where trends extend, such as semiconductor and leveraged tech ETFs.
Watch out: buying strength means buying high; when a burst immediately reverses, the trail exits about 10% below the entry.

How the other rules did on IEI

Six strategies made a positive return on IEI. The trend plus trailing stop rule was best, at 1.43% with a 5.2% drawdown. The RSI(2) snapback made 1.42% with a 6.87% drawdown. The SMA 10/50 trend earned 1.24% and had the group's shallowest drawdown, 3.21%. After those, 1.09% came from the golden cross, 1.03% from the 200-day regime filter and 0.87% from the EMA 12/26 trend.

The momentum breakout and the dip buyer both made no trades and both sit at 0%. Four templates ended negative. RSI mean reversion lost 0.2% a year with an 8.65% drawdown, and the weekly 7% target lost 0.26% with 11.78%. The 3-month momentum lost 0.59%, and the monthly cycle lost 0.84% with a 15% drawdown.

The pattern is consistent. The rules that earned money on IEI made modest gains and had drawdowns between 3.21% and 6.87%. The rules that lost money were the ones with drawdowns of 8.65% and more, apart from the 3-month momentum. The momentum breakout ranks 8th because a flat result beats the four that lost money.

Six of the seven bond ETFs never traded under this rule. They are IEI, AGG, BND, IEF, IGIB and SGOV. TLT is the exception, with 2 round trips, a CAGR of -1.2% and a drawdown of 10.32%. TLT is the only bond fund in the group where the rule traded at all.

IEI ranks 31st of 59 funds for this rule. The strategy's median CAGR over all funds is 0%, so the middle of the table is a row of zeros and the position carries little meaning. A fund with a nonzero result on this template, such as TLT at -1.2%, tells the reader more about the rule than IEI does.

The buy-and-hold run is the useful benchmark. It lost 0.36% a year and fell 13.8% at its worst, with a Sharpe ratio of -0.06. The idle account had a Sharpe ratio of 0. Six of the other 11 templates earned a positive return on the same fund with drawdowns that were shallower than the fund's own 13.8%. Three of the four that lost money also drew down less than the fund did, though each of them lost money while doing so. The rule's zero sits in the middle of that list, which is a fair summary of what a template with no signal does.

Limits: a single 5.74-year window, daily rules, minute-bar fills, and a headline run with no fees. A zero-trade result describes the fit between the template and the fund over those years, and does not predict what the rule would do if IEI behaved differently.

Run momentum breakout on IEI 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 momentum breakout beat buy-and-hold on IEI?

Over 2021-01-04 to 2026-10-02, momentum breakout on IEI returned 0.0% annualized vs −0.4% for buy-and-hold: it beat buy-and-hold by 0.4% per year, with a maximum drawdown 13.8 points shallower than holding (0.0% vs 13.8%).

How many trades did it make?

0 completed round trips over 5.7 years (0 fills).

How does the trailing stop work in the backtest?

The stop sits 10% below the highest price since entry and only ratchets up. When a bar trades through it, the position sells at the stop, or at the open if the price gaps below it. Trailing-stop exits can be backtested now; deploying them live is not available yet.

How did the momentum breakout rule do on IEI?

It made no trades from 2021-01-04 to 2026-10-02. The account stayed at $10,000, with 0% CAGR and 0% drawdown. Buy-and-hold lost 0.36% a year and ended at $9,793.36.

Why did the rule never trade IEI?

The entry needs a gain of more than 10% over 20 sessions. IEI's best day was 1.45% and its best month 2.83%, and its annualized volatility was 4.57%. The condition never came true.

Does a zero result mean the strategy is safe on IEI?

It means the rule did nothing. The 0% drawdown comes from holding cash, and the fund itself fell 13.8% from 2021-01-04 to 2022-10-20 in the buy-and-hold run.

Would a different trailing stop or entry change anything?

In the tests, no. A 5% stop, a 15% stop and a 20% entry all made 0 trades. The entry never fired, so the exit settings never mattered.

Which strategies worked on IEI?

Top spot went to the trend plus trailing stop at 1.43%. The RSI(2) snapback was a close second at 1.42% and the SMA 10/50 trend third at 1.24%. Rules that sat out the 2022 decline did better than those that held through it.

Which bond funds did the rule trade?

Only TLT, with 2 round trips, a CAGR of -1.2% and a drawdown of 10.32%. AGG, BND, IEF, IGIB, SGOV and IEI made no trades. A bond fund needs a 10% gain in 20 sessions before this rule buys, and most of them did not produce one in the window.

Do costs matter for this page?

No. There were 0 fills, so the 5 and 10 basis point runs equal the headline result at $10,000.

Related

20-Day Momentum + Trailing Stop on all 59 ETFsfull results table All strategies on IEI12 templates compared RSI(14) Mean Reversion on IEIsame ETF, different rulesRSI(2) Dip Snapback on IEIsame 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.