Learn › Strategies › SMA-200 Trend + 15% Trailing Stop › IEI

SMA-200 Trend + 15% 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: trend + trailing stop on IEI turned $10,000 into $10,850 (8.5% total, 1.4% CAGR): it beat buy-and-hold by 1.8% per year, with a maximum drawdown 8.6 points shallower than holding (5.2% vs 13.8%).

Trend plus trailing stop bought IEI exactly once and never sold. The entry came on 2023-01-12 at an adjusted $104.13, and on the final day, 2026-10-02, the position stood at a gain of 8.68%. Over the window from 2021-01-04 the account went from $10,000 to $10,850, a CAGR of 1.43%. Buying IEI on the first day and holding ended at $9,793, a CAGR of -0.36%.

That makes this page different from most in the set. The rule shows 0 closed round trips, and so no win rate and no average trade, because price never came near the 15% stop. Everything the rule did comes from two facts. It stayed in cash for the first two years, and it held through everything after that. The comparison with buy and hold is a comparison between cash during a falling bond market and a fund that fell and then partly recovered.

IEI is the iShares 3-7 Year Treasury Bond ETF. Its maximum drawdown over the window was 14.21%, which is smaller than the 15% the stop needs. A holder who entered on any day in the window could not have reached the stop. Among the 12 strategies on IEI this one ranks first. Among the 59 funds under this rule, IEI ranks 34th, and the median fund made 2.61% a year. The full definition is on the trend plus trailing stop strategy page.

1.4%CAGR
−0.4%buy & hold CAGR
−5.2%max drawdown
0.42Sharpe ratio
0round trips
■ trend + trailing stop   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeartrend + trailing stopbuy & hold
20210.0%−2.5%
20220.0%−9.3%
20232.3%4.3%
20241.9%1.9%
20256.7%6.6%
2026−2.4%−2.4%

Year by year

The year table is short, because two of the six years are flat zeros and two more match buy and hold.

2021: the rule returned 0.0% and buy and hold lost 2.5%. There was no position all year, and the monthly grid shows 0.0% from January to December. The entry condition is a close above the 200-day average on the prior day, and it was not met at any point in 2021.

2022: the rule returned 0.0% and buy and hold lost 9.3%. This is the year that gives the rule its lead. IEI fell through 2022, with its worst day, -1.09%, on 2022-06-13 and its low on 2022-10-20. Sitting in cash all year meant none of the fall was taken. March 2022 alone cost buy and hold 3.04%, its worst month.

2023: the rule made 2.3% and buy and hold made 4.3%. The rule bought on 2023-01-12, so it missed the first days of January. The grid reads 0.1% for January, -2.2% for February (the rule's worst month) and 2.9% for March (its best). April to December then reads 0.6%, -0.9%, -1.2%, 0.0%, 0.0%, -1.3%, -0.6%, 2.6% and 2.3%. This is the only year where the rule trailed buy and hold, and the gap was 2.0 points.

2024: the rule and buy and hold both made 1.9%. From 2023 onward the rule held the same fund as buy and hold, so the two lines move together. Monthly returns ran from -2.1% in October to 2.1% in July, with February (-1.3%) and April (-1.7%) also negative.

2025: the rule made 6.7% and buy and hold made 6.6%. Nine of the 12 months were positive, led by February at 1.6% and August at 1.4%.

2026: both lines lost 2.4% in a year that is not complete. February returned 1.4%, then March lost 1.5% and September lost 2.0%. The fund's drawdown from its 2026-02-27 peak to the 2026-09-28 low is the third item in the drawdown table, and the equity was still below that peak on the last day.

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.1%−2.2%2.9%0.6%−0.9%−1.2%0.0%0.0%−1.3%−0.6%2.6%2.3%
20240.3%−1.3%0.4%−1.7%1.3%0.9%2.1%1.1%1.0%−2.1%0.6%−0.7%
20250.4%1.6%0.6%1.3%−0.7%1.1%−0.4%1.4%0.1%0.5%0.7%−0.2%
20260.0%1.4%−1.5%0.0%−0.1%0.1%−0.5%0.1%−2.0%0.1%––

What the monthly grid shows

The grid opens with two full years of 0.0%, then shows a position that looks like a bond fund. The 0.0% months are 2021 and 2022 in full, July and August 2023, January and April 2026.

Monthly moves are small. The best month in the record was March 2023 at 2.86%, and the worst was February 2023 at -2.2%. Nothing in the grid reaches 3%. A fund with annualized volatility of 4.57% produces months like these. Up days on IEI averaged 0.22%, down days averaged -0.21%, and the typical daily range was 0.25%.

Averaged by calendar month across the window, the fund did best in November (1.32%) and July (0.67%) and worst in September (-0.98%) and October (-0.72%). Six years supply at most six samples for any month, so these figures describe this window only.

Every trade

trend + trailing stop on IEI made 0 closed round trips and one position still open at the end of the test. It held a position at the close on 64.7% of trading days.

EntryEntry priceExitExit priceReturnDays held
2023-01-12$104.13open–8.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 single trade

There is one trade. It entered on 2023-01-12 at $104.13 with 98% of the sleeve and was marked at an 8.68% gain on the last close. It has no exit price, no days held and no place in the win rate. Profit factor, average win and average loss are empty for that reason.

The result of the page is mostly the timing of that one entry. The rule waited until the fund had risen above its 200-day average, and that happened at the start of 2023, after the 2022 low of 2022-10-20. An investor who bought on 2021-01-04 held through the fall of 2022 and owned the whole drawdown of 13.8%. The rule skipped it.

The trailing stop never mattered. In this rule the stop is a managed order that follows 15% below the position's high-water mark. The rule's equity drawdown never passed 5.2%, from the peak on 2023-05-04, so the price stayed far above the stop level all the way through. Trade prices are adjusted for splits and dividends and sit below the quotes of the day.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2023-05-042023-10-19−5.2%1682023-12-2769
2026-02-272026-09-28−3.9%213not yet–
2024-09-162025-01-13−3.6%1192025-04-0178

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

Drawdowns

The rule's deepest drawdown was 5.2%, from 2023-05-04 to 2023-10-19, and the low took 168 days to arrive. The equity regained its peak on 2023-12-27, 69 days later. The second, 3.92%, ran from 2026-02-27 to 2026-09-28 over 213 days and was still open on 2026-10-02. The third, 3.61%, ran from 2024-09-16 to 2025-01-13 and recovered on 2025-04-01 after 78 days.

Buy and hold had one deep drawdown. It started at the first day of the data, 2021-01-04, and reached its low of 13.8% on 2022-10-20, after 654 days. It did not recover until 2025-10-16, which is 1092 days after the low. Two smaller drawdowns followed, 3.88% in 2026 and 0.73% in late 2025.

The rule avoided the long one, and that explains the 8.6 point difference in maximum drawdown. It did not avoid the smaller ones. The 2026 drawdown shows both lines falling by about the same amount, 3.92% for the rule and 3.88% for buy and hold, because both held the fund. The Sharpe ratio was 0.43 for the rule against -0.06 for buy and hold.

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)1.4%−5.2%$10,8500.42
5 basis points1.4%−5.2%$10,8450.42
10 basis points1.4%−5.2%$10,8400.42

Trading costs

The rule made one fill. With slippage of 5 basis points the final value was $10,845 and the CAGR 1.42%. With 10 basis points it was $10,840 and 1.41%. The maximum drawdown stayed at 5.2% in both runs. A rule that trades once pays slippage once, and the cost is a matter of a few dollars.

IEI trades in size. Dollar volume averaged $172,230,207 a day, and the median minute carried 1,292 shares. The test does not model taxes or the fees of a specific broker.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules1.4%−5.2%0–$10,850
10% trailing stop1.4%−5.2%0–$10,850
20% trailing stop1.4%−5.2%0–$10,850
25% trailing stop1.4%−5.2%0–$10,850

Changing the trailing stop

The test reran the rule with a 10% stop, a 20% stop and a 25% stop. Each one matched the published 15% rule: a CAGR of 1.43%, a maximum drawdown of 5.2%, a final value of $10,850 and 0 trades. The Sharpe ratio was 0.425 in each.

The identical results confirm that the stop did nothing in this window. A 10% trail from the position's high would also have stayed untouched, because the rule's own drawdown never passed 5.2%. This is a limit of the test. On IEI the stop width has no effect, so these runs say nothing about whether 15% is a good choice. For that, look at a fund that swings more, such as TLT, where the same rule made 3 round trips.

The entry rule is the only parameter that moved the result, and the test did not vary it. The 200-day window decided when the rule entered.

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

IEI returned -2.25% over the window, a CAGR of -0.39%, with annualized volatility of 4.57%. Its maximum drawdown was 14.21% from 2021-01-04 to 2022-10-20, and it recovered on 2025-10-16, so the fund spent 1201 sessions underwater at its longest. 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.

IEI closed higher on 48.23% of days, with an average overnight gap of 0.16%. Overnight log return was 4.78% and intraday log return was -6.95%, so the fund gained across the close and lost during the session. Correlation to TLT was 0.8, to SPY 0.08 and to QQQ 0.09. The closest relatives were IEF at 0.97, AGG at 0.94 and BND at 0.94.

IEI spent 59.2% of sessions above its 200-day average, and price crossed that average 42 times. The trailing-stop version traded once, because after the first entry it ignores the average and waits for the stop. No 10% fall from a 20-day high occurred in the window.

RSI(14) fell below 30 on 64 sessions. The median five-day forward return afterwards was -0.11% against a baseline of -0.03%, and the 20-day median was -0.65% against 0.04%. Oversold readings were not followed by rebounds on this fund. The full table is on the IEI page.

The rules

Enter when price is above the 200-day average; exit only when a 15% trailing stop is hit.

  1. WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
  2. WHILE invested · a managed trailing stop follows 15% below the position's high-water mark

A hybrid of the regime filter and the trailing stop. The 200-day average decides when to get in, and a 15% trail from the position's high-water mark decides when to get out. Winners can run well past the point where a crossover would have exited, and the position gives back 15% from every peak.

Good for: long trends with moderate pullbacks; the 15% trail is wide enough to survive normal corrections.
Watch out: every exit gives back 15% from the peak, and on choppy assets it re-enters above the 200-day repeatedly after each stop-out.

How the rule fits a bond fund

The rule was built for assets with large trends and moderate pullbacks. The description calls the 15% trail wide enough to survive normal corrections. On IEI, normal corrections are a few percent, so the stop is far outside them.

The entry rule and the exit rule are asymmetric. The entry is a 200-day filter that can pass and fail many times, and the exit is a wide stop that fires rarely. On a quiet fund the combination holds a long position after the first entry. For a volatile fund, the stop takes over and the rule re-enters after each stop-out.

The result is a buy-and-hold position with a late start. It was a good start in this window because the delay skipped the 2022 decline. On a different window the same delay could skip a rally instead.

Comparing the rule with cash and with longer bonds

The category table gives two reference points. SGOV, another fund in the bond group, made 3.22% a year under this rule with a 0.02% drawdown and no round trips. IEI under the rule made 1.43%. In this window the rule on IEI finished behind SGOV, a fund that barely moved, and ahead of the other five bond funds in the group.

The longer funds show the stop at work. IEF made -2.13% with a 21.47% drawdown and 1 round trip. TLT made -7.11% with a 38.76% drawdown and 3 round trips. A fund that falls far enough triggers the 15% trail, and the rule then has to decide when to re-enter. IEI never fell far enough. Its low of 14.21% below the January 2021 peak is the nearest it came, and that peak sat outside the period when the rule held the fund.

The exposure figure is 64.7% of sessions. It tells the same story as the monthly grid: the rule was in cash for the first two years and fully invested after that. The 0.0% months in the grid are literal zeros for the cash period.

What the zero-round-trip result does and does not show

A zero in the round-trip column can look like a failure to trade. Here it means the rule worked as described: enter on the trend condition, then stay until a 15% fall from the high. One entry and no exit is a valid path for a quiet fund in a window with no 15% drawdown.

What the result does show is limited. It shows that waiting for the 200-day filter on IEI kept the account out of the 2022 decline, which cost buy and hold 9.3% that year. It shows that holding after the entry earned the same as buy and hold for 2024, 2025 and 2026 to within a tenth of a point. It does not show that the 15% stop protects against anything, because the stop was never tested.

The comparison with other rules points the same way. The golden cross and the 200-day regime filter, which both sell on a trend break, made 1.09% and 1.03%. The trailing-stop version made 1.43%, and the difference between them is the timing of one entry and the absence of later exits.

Other rules and other bond funds

Among the 7 bond ETFs, the rule made 3.22% on SGOV with a 0.02% drawdown, 1.43% on IEI, 0.06% on IGIB, -1.08% on BND, -1.1% on AGG, -2.13% on IEF and -7.11% on TLT. The category median was -1.08%. IEF had a 21.47% drawdown and 1 round trip. TLT had a 38.76% drawdown and 3.

On IEI itself, RSI(2) snapback made 1.42% with a 6.87% drawdown. SMA 10/50 trend made 1.24% with the shallowest drawdown of the active rules, 3.21%. The golden cross made 1.09%, the 200-day regime filter 1.03% and EMA 12/26 trend 0.87%. The dip buyer and momentum breakout both made 0%, since neither traded. RSI(14) mean reversion made -0.2%, weekly 7% target -0.26%, 3-month momentum -0.59% and the monthly cycle -0.84% with a 15% drawdown.

The trailing-stop rule leads this table by a narrow margin. Its 1.43% and RSI(2)'s 1.42% are within a hundredth of a point.

Limits of the test

The window is 5.74 years. The rule made one trade, so there is no sample of trades to judge. The result depends on one entry date. The headline run has no fees or slippage, and the stop width had no effect on this fund. Results are hypothetical and do not predict future returns.

Run trend + trailing stop 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 trend + trailing stop beat buy-and-hold on IEI?

Over 2021-01-04 to 2026-10-02, trend + trailing stop on IEI returned 1.4% annualized vs −0.4% for buy-and-hold: it beat buy-and-hold by 1.8% per year, with a maximum drawdown 8.6 points shallower than holding (5.2% vs 13.8%).

How many trades did it make?

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

Why 15% rather than 10%?

A wider trail survives routine corrections and gives back more at the end. Both numbers are one-field edits in DeployQuant, so you can backtest both and compare.

Did the trend plus trailing stop beat buy and hold on IEI?

Yes, in this window. The rule made 1.43% a year against -0.36% for buy and hold, and ended at $10,850 against $9,793. Its maximum drawdown was 5.2% against 13.8%.

Why are there zero round trips on IEI?

The rule bought once, on 2023-01-12 at $104.13, and the 15% trailing stop never triggered. The position was still open on 2026-10-02, marked at 8.68%.

Why did the rule return 0% in 2021 and 2022?

It held no position in those years. It buys only when yesterday's close is above the 200-day average, and the first buy came in January 2023. Buy and hold lost 2.5% in 2021 and 9.3% in 2022.

Does changing the trailing stop to 10% or 25% matter on IEI?

No. The 10%, 20% and 25% versions all made 1.43% with a 5.2% maximum drawdown and 0 trades. The stop never came into play.

What was the maximum drawdown?

The rule's was 5.2%, from 2023-05-04 to 2023-10-19, recovered on 2023-12-27. Buy and hold's was 13.8%, from 2021-01-04 to 2022-10-20.

How does IEI compare with other bond ETFs under this rule?

IEI made 1.43%, second among the 7 bond ETFs behind SGOV at 3.22%. The category median was -1.08%, and TLT made -7.11%.

Related

SMA-200 Trend + 15% 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.