Learn › Strategies › SMA 10/50 Trend › IEI

SMA 10/50 Trend 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: SMA 10/50 trend on IEI turned $10,000 into $10,731 (7.3% total, 1.2% CAGR): it beat buy-and-hold by 1.6% per year, with a maximum drawdown 10.6 points shallower than holding (3.2% vs 13.8%).

The SMA 10/50 trend rule is a fast crossover. It holds a fund while the 10-day simple average sits above the 50-day, buying at the next open after the cross up and selling at the open after the cross down. IEI is the iShares 3-7 Year Treasury Bond ETF, a medium-duration Treasury fund with mild daily swings. From 2021-01-04 to 2026-10-02 the rule grew $10,000 to $10,731, a CAGR of 1.24% and a total return of 7.31%. A buy-and-hold account in IEI lost money over the same stretch: $9,793 at the end, a CAGR of -0.36%.

Sixteen round trips closed, and exactly half won. Wins averaged 1.56% and losses averaged -0.63%, so the profit factor was 2.43. The best trade made 3.64% and the worst lost 1.04%. The rule held IEI for 49.4% of days, and the average hold was 64.9 days. Max drawdown was 3.21% against 13.8% for holding, and the Sharpe ratio was 0.44 against -0.06.

On this fund the rule beat holding. IEI fell for nearly two years from the first day of the window, and the crossover spent long stretches of that decline in cash. The rule ranks 3rd of 12 strategies on IEI. IEI ranks 35th of 59 funds for this rule, and the category median CAGR for bond funds is also 1.24%. These are hypothetical results from 5.74 years, with no fees in the headline run, and the dollar gains are small in absolute terms.

1.2%CAGR
−0.4%buy & hold CAGR
−3.2%max drawdown
0.44Sharpe ratio
16round trips
50%win rate
■ SMA 10/50 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearSMA 10/50 trendbuy & hold
20210.4%−2.5%
2022−1.7%−9.3%
20233.9%4.3%
20241.3%1.9%
20255.3%6.6%
2026−1.8%−2.4%

How each year looked

Yearly figures for the rule were 0.4% in 2021, -1.7% in 2022, 3.9% in 2023, 1.3% in 2024, 5.3% in 2025 and -1.8% in 2026 so far. The fund held outright gave -2.5%, -9.3%, 4.3%, 1.9%, 6.6% and -2.4%. The rule's yearly gaps against holding were +2.9 points in 2021, +7.6 in 2022, -0.4 in 2023, -0.6 in 2024, -1.3 in 2025 and +0.6 in 2026.

2022 is the year that produced the result. IEI lost 9.3% and the rule lost 1.7%. The rule's activity that year was thin. It took trades on 2022-06-02 and 2022-07-12 and a smaller one that began 2021-12-23 and closed 2022-01-04. All three lost money: -0.63%, -0.68% and -0.72%. The monthly table shows the rule flat in February to May and again in September and October, which are the months when IEI dropped fastest. The rule's only 2022 gains were in July (1.37%) and November (0.71%), and August gave back 2.05%, the worst month of the run.

2021 is a smaller version of the same thing. IEI lost 2.5% and the rule made 0.4%, from a first buy on 2021-04-29 at 113.47 to an exit on 2021-06-28 at 113.81 and one further trade.

2023 to 2025 are the years when holding did better. IEI gained 4.3%, 1.9% and 6.6% and the rule gained 3.9%, 1.3% and 5.3%, trailing by 0.4, 0.6 and 1.3 points. A crossover that is out of the fund part of the time trails a rising fund by a little each year. Those small shortfalls are the price of the 7.6 point edge in 2022. 2026 is a partial year, and both lines are down, the rule by 1.8% and holding by 2.4%.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.2%0.3%−0.3%0.5%−0.2%−0.0%0.0%0.0%−0.1%
2022−0.5%0.0%0.0%0.0%0.0%−0.7%1.4%−2.0%0.0%0.0%0.7%−0.5%
20232.0%−1.8%0.8%0.6%−1.3%0.0%0.0%0.0%0.0%0.0%1.3%2.3%
20240.3%−1.2%−0.3%0.0%−0.4%0.9%2.1%1.1%1.0%−1.2%0.0%−1.0%
2025−0.0%1.6%0.6%1.3%−1.5%0.9%−0.4%1.4%0.1%0.5%0.7%−0.2%
2026−0.1%1.1%−1.7%0.0%0.0%−0.3%−0.4%−0.5%0.0%0.0%––

Months in the market and out

The monthly table is half zeros. January to March 2021, October and November 2021, February to May 2022, September and October 2022, June to October 2023, April 2024, November 2024, April and May 2026 and October 2026 all show 0, meaning the rule held no position that month. With exposure of 49.4%, the account is out of the fund as often as it is in.

The best month was December 2023 at 2.27% and the next was July 2024 at 2.11%. January 2023 gained 2.05%. Holding had its best month in March 2023 at 2.83%, a month in which the rule made 0.75%. The worst month for the rule was August 2022 at -2.05%, followed by February 2023 at -1.78% and March 2026 at -1.67%. Holding's worst was March 2022 at -3.04%, a month when the rule held nothing.

The rule's losing months are small. Only three lost more than 1.5%, and the largest was 2.05%. The gains are similarly small, with only four above 1.5%. This is a feature of the fund. IEI has an annualized volatility of 4.57%, and its average up day is 0.22% and its average down day is -0.21%. A fund that moves that little produces a rule with a narrow range of monthly outcomes, so every percentage point matters.

The zero runs also show how a fast average handles a quiet fund. The 10-day and 50-day averages of IEI sit close together, which is consistent with the 16 round trips in 5.74 years.

Every trade

SMA 10/50 trend on IEI made 16 closed round trips, an average hold of 65 days, an average winner of 1.56%, an average loser of −0.63%, a profit factor of 2.43, a longest losing streak of 3. It held a position at the close on 49.4% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-29$113.472021-06-28$113.810.3%60
2021-07-09$114.542021-09-15$114.760.2%68
2021-12-23$112.932022-01-04$112.22−0.6%12
2022-06-02$105.422022-06-09$104.70−0.7%7
2022-07-12$105.332022-08-26$104.57−0.7%45
2022-11-18$101.882023-02-16$102.300.4%90
2023-03-21$104.052023-05-25$104.130.1%65
2023-11-09$102.842024-02-15$105.582.7%98
2024-03-14$105.572024-03-19$105.29−0.3%5
2024-05-16$105.832024-10-11$109.683.6%148
2024-12-10$109.442024-12-23$108.30−1.0%13
2025-01-30$109.102025-05-21$111.322.0%111
2025-06-05$112.362026-01-26$115.903.1%235
2026-02-09$116.422026-03-20$115.74−0.6%39
2026-06-29$116.252026-07-21$115.52−0.6%22
2026-08-14$116.052026-09-03$115.47−0.5%20

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 sixteen trades

There were 16 round trips and none open at the end. Prices are adjusted for splits and dividends, so they are lower than the quotes printed at the time. The five best trades:

The five worst:

The median trade made 0.08% and the median hold was 60 days. The longest hold was 235 days and the shortest was 5. The first trade, from 2021-04-29 at 113.47 to 2021-06-28 at 113.81, made 0.3%. The last, from 2026-08-14 at 116.05 to 2026-09-03 at 115.47, lost 0.5%. Winners came at most 3 in a row and so did losers.

The four best trades all lasted more than three months and each gained between 2% and 3.64%. The worst trades were short, none longer than 45 days, and none lost more than 1.04%. That is the asymmetry a trend rule is built to produce, and it is the source of the 2.43 profit factor. With a 50% win rate the average win of 1.56% against an average loss of 0.63% does the work. The result is small in size: the whole account gained 7.31% in 5.74 years.

By exit year, the rule won 2 of 2 in 2021, 0 of 3 in 2022, 2 of 2 in 2023, 2 of 4 in 2024, 1 of 1 in 2025 and 1 of 4 in 2026. The 2022 trio of losses did not hurt much because each was a fraction of a percent.

Where the crossover sat against IEI's largest days

IEI's biggest daily moves were small, and where the crossover stood on each of them shows what it caught. The best day of the window, +1.45% on 2022-11-10, came eight days before the entry on 2022-11-18. The +1.37% on 2022-09-28 fell in a flat stretch with no position. The three strong sessions of March 2023, +1.2% on the 13th, +1.16% on the 10th and +1.12% on the 15th, all came before the entry on 2023-03-21. A fast average needs the recovery to be visible before it buys, so the rule was late for the sharpest rallies in the window and in each case entered after the jump.

The worst days were split. The -1.09% on 2022-06-13 came four days after the 7-day trade from 2022-06-02 had closed, and the -0.91% on 2022-03-02 and -0.98% on 2024-04-10 also fell while the account was in cash. The -0.97% on 2022-08-05 and -0.92% on 2022-08-02 fell inside the trade that ran from 2022-07-12 to 2022-08-26, which is why August 2022 was the worst month of the record at -2.05%.

The three entries of 2026 were at 116.42, 116.25 and 116.05, all close together near the top of the adjusted price range of the window, and they closed at -0.58%, -0.63% and -0.5%. A crossover that fires inside a narrow range pays the spread between its entry and exit each time. The single 2026 winner was the 2025-06-05 trade that closed on 2026-01-26 at 115.9.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2024-09-162025-02-12−3.2%1492025-04-0350
2026-02-272026-09-01−3.0%186not yet–
2021-06-102022-11-21−2.7%5292023-01-1858

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

Drawdowns against a fund that fell 13.8%

The rule's deepest drawdown was 3.21%. It ran from 2024-09-16 to a trough on 2025-02-12, 149 days later, and recovered on 2025-04-03 after 50 days. The second was 3.02%, from 2026-02-27 to 2026-09-01, and was still open at the end of the data. The third was 2.74%, from 2021-06-10 to 2022-11-21, which took 529 days to reach the bottom and recovered on 2023-01-18.

Buy-and-hold had three drawdowns: 13.8% from 2021-01-04 to 2022-10-20, which took 1,092 days to recover, ending on 2025-10-16; 3.88% from 2026-02-27 to 2026-09-28, still open at the end; and 0.73% from 2025-11-26 to 2025-12-09. The first of these is the bond market's decline of 2021 to 2022, and holding needed 1,092 days to get back to its starting level.

The rule's maximum was 10.59 points shallower than holding's, which is the largest edge on this page. The rule's third drawdown overlapped the bond decline and measured only 2.74%. That is what a trend filter does for a falling fund: it sat out the steep legs and the account barely moved. The rule's own deepest drawdown, in 2024 and 2025, includes the 2024-12-10 trade that lost 1.04% in 13 days and two weak months, October and December 2024, at -1.24% and -1.01%.

The rule's 2026 drawdown matches holding's 2026 drawdown in start date, 2026-02-27. Holding fell 3.88% to 2026-09-28 and the rule fell 3.02% to 2026-09-01. In this case the filter helped only a little.

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.2%−3.2%$10,7310.44
5 basis points1.0%−3.4%$10,5650.34
10 basis points0.7%−3.8%$10,4040.25

What trading costs did

Profits per trade are small on this fund, so costs show up quickly. The headline run has no fees. At 5 basis points per fill the CAGR fell to 0.96%, the max drawdown rose to 3.39% and end equity was $10,565. At 10 basis points the CAGR was 0.69%, the max drawdown 3.78% and end equity $10,404. The Sharpe ratio went from 0.44 to 0.342 and then to 0.249.

The Sharpe ratio fell the most. The rule made 32 fills, and each one costs the same fraction whatever the trade earns. An average win of 1.56% and a fill cost of 5 basis points each way is a visible bite, and it falls on a series with annualized volatility around 4.57%, so the ratio drops quickly. IEI traded an average of $172,230,207 a day with a median of 1,292 shares a minute, so size is not a constraint. The edge over buy-and-hold survives at 10 basis points, where the CAGR of 0.69% still beats the -0.36% from holding.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules1.2%−3.2%1650%$10,731
SMA 5/500.7%−5.6%2438%$10,404
SMA 20/501.3%−3.8%1553%$10,770
SMA 10/1000.5%−6.0%1225%$10,259

What changing the averages did

Three variants changed one average at a time.

The base 10/50 returned 1.24% with a 3.21% drawdown and 16 trades. All three variants stayed positive, and all three beat holding at -0.36%. The faster 5-day average made 24 trades, the most of any setting, and won only 9. The cost of the added trading shows up in the CAGR, 0.69%, and in the deeper 5.63% drawdown. The slower 20-day average made 15 trades with 8 wins and returned 1.3%, a hair above the base, with a Sharpe ratio of 0.472. A slower 100-day average made just 12 trades and won 3 of them, and gave the lowest CAGR of the four.

The spread from 0.45% to 1.3% is small in dollars. The 20/50 pair ended at $10,770 and the 10/100 pair at $10,259. What the variants show is that the sign of the edge over holding did not depend on the choice of averages in this window. The ordering says little, since a bond fund with 4.57% volatility and 16 trades gives a narrow range of outcomes under any of these settings.

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 lost 2.25% over the window, a CAGR of -0.39% at annualized volatility of 4.57%. Its calendar-year 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% so far in 2026. Its max drawdown was 14.21%, from 2021-01-04 to 2022-10-20, and recovery came on 2025-10-16. The longest drawdown lasted 1,201 sessions, close to the whole window.

The fund rose on 48.23% of sessions. The best day was +1.45% on 2022-11-10 and the worst was -1.09% on 2022-06-13. Beta to SPY was 0.02 and correlation was 0.08, so the fund barely moves with stocks, while its correlation to TLT was 0.8. IEI spent 59.2% of sessions above its 200-day average and crossed it 42 times.

RSI(14) fell below 30 on 64 sessions, with a median 5-day forward return of -0.11% and a median 20-day return of -0.65%, against baselines of -0.03% and 0.04%. RSI(2) fell below 10 on 183 sessions. Oversold readings on IEI were not followed by bounces. In a bond fund that trended lower, buying weakness did not pay on average.

The fund never had a 10% drop from its 20-day high. The count of such drawdown events was 0, a number that explains why the dip buyer and the momentum breakout both show a CAGR of 0 on this fund: the dip buyer had no entry to take. The overnight share of return was -220.47% and the intraday share 320.47%, an odd split caused by the small total return, where the overnight and intraday log returns of 4.78% and -6.95% have opposite signs. It tells little about which part of the day to hold.

How IEI compares with other bond funds

Among the seven funds in the bond category table, IEI's 1.24% sits in the middle and matches the category median. SGOV, a very short Treasury fund, returned 3.21% with a drawdown of 0.05% and 6 round trips. IGIB returned 1.73%, IEF 1.33%, AGG 0.79%, BND 0.52% and TLT -0.85% with a drawdown of 14.24%. Outside SGOV, IEI had the shallowest max drawdown in the table at 3.21%, with IEF at 5.67% and AGG at 6.46%. The median across all 59 funds was 2.12%.

Other rules on IEI finished around it. The trend with a trailing stop returned 1.43% with a drawdown of 5.2% and the RSI(2) snapback returned 1.42%. The SMA 10/50 came third. The golden cross made 1.09%, the 200-day regime filter 1.03% and the EMA 12/26 trend 0.87%. The dip buyer and momentum breakout both showed 0, which implies they never entered. RSI mean reversion lost 0.2%, the weekly 7% target lost 0.26%, 3-month momentum lost 0.59% and the monthly cycle lost 0.84% with a drawdown of 15%.

The trend rules clustered at the top because the fund trended down once and up once, and every rule that went to cash during the decline did better than holding. The rules that needed a big move to trigger, or that bought dips, either did nothing or lost money.

IEI by calendar month and day of week

By calendar month, November averaged 1.32% for the fund across 5 observations, July 0.67% and January 0.28%. September averaged -0.98% and October -0.72%, with February at -0.35% and March at -0.26%. For a fund with 4.57% annualized volatility those are sizeable monthly averages, and the small sample explains part of that: November's average rests on 5 years, and 2022's November, the month of the +1.45% day, is one of them. The rule's own November results were 0% in 2021, 0.71% in 2022, 1.25% in 2023, 0% in 2024 and 0.71% in 2025.

The weekday averages are almost flat: Monday -0.04%, Tuesday 0.01%, Wednesday 0.03%, Thursday 0% and Friday 0%. Lag-one autocorrelation was -0.01. IEI crossed its 200-day average 42 times in the window, and the 10/50 rule changed its position only 32 times, so the 10/50 pair traded less often than the fund crossed the long-run line.

The rule's round trips by exit year were 2 in 2021, 3 in 2022, 2 in 2023, 4 in 2024, 1 in 2025 and 4 in 2026. The one exit of 2025 was the trade from 2025-01-30 at 109.1 to 2025-05-21 at 111.32, a gain of 2.03%.

The rules

A faster moving-average crossover: hold while the 10-day average is above the 50-day.

  1. WHEN the market opens · IF not invested AND SMA(10) > SMA(50) · THEN buy with 98% of the sleeve
  2. WHEN the market opens · IF invested AND SMA(10) < SMA(50) · THEN sell the whole position

A faster version of the golden cross. The 10- and 50-day averages catch intermediate trends measured in weeks rather than years. It enters recoveries earlier and exits breakdowns earlier, with more whipsaw trades in sideways markets. Useful for seeing how signal speed changes a strategy's results.

Good for: trending assets with multi-week swings, such as leveraged index ETFs.
Watch out: several false signals a year is normal; each whipsaw costs a small loss and they add up in flat markets.

How a fast crossover handles a quiet bond fund

The strategy page says a fast average enters recoveries earlier, exits breakdowns earlier and produces more whipsaw trades in sideways markets. All three show up on IEI. The rule exited early enough in 2022 to avoid most of the decline, entered the 2023 recovery on 2023-11-09, and then took several small losses, among them a 13-day trade in December 2024.

The edge comes from one bond bear market. A longer window that did not include 2022 would test the filter differently, and a window that began after the rate rise could show the whipsaw cost without the protection. The test is one fund, one window of 5.74 years, a rule with fixed 10 and 50 day averages and no fees in the headline run. The figures are hypothetical and say nothing about how the rule would act in a future rate cycle.

Run SMA 10/50 trend 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 SMA 10/50 trend beat buy-and-hold on IEI?

Over 2021-01-04 to 2026-10-02, SMA 10/50 trend on IEI returned 1.2% annualized vs −0.4% for buy-and-hold: it beat buy-and-hold by 1.6% per year, with a maximum drawdown 10.6 points shallower than holding (3.2% vs 13.8%).

How many trades did it make?

16 completed round trips over 5.7 years (32 fills), with 50% of round trips closing profitably.

Why 10 and 50 days?

A common intermediate-trend pairing. It reacts within weeks and ignores single bad days. Both windows are editable parameters in DeployQuant.

How did the SMA 10/50 trend rule do on IEI?

Between 2021-01-04 and 2026-10-02 it grew $10,000 to $10,731, a CAGR of 1.24% with a max drawdown of 3.21%. It closed 16 round trips and won 8, with a profit factor of 2.43.

Did the rule beat buy-and-hold on IEI?

Yes. Holding IEI lost money, ending at $9,793 with a CAGR of -0.36% and a max drawdown of 13.8%. The rule led in 2021, 2022 and 2026, and most of the edge came from 2022, when the rule lost 1.7% and the fund lost 9.3%.

Why was the drawdown so small?

The rule held IEI only 49.4% of the time and sat in cash through much of the 2022 decline. Its deepest drawdown was 3.21%, from 2024-09-16 to 2025-02-12, against 13.8% for holding.

Which moving average settings worked best on IEI?

A 20/50 pair returned 1.3% with a max drawdown of 3.8% and ended at $10,770. The 5/50 pair returned 0.69% and the 10/100 pair 0.45%. All three variants beat holding at -0.36%.

Why do the dip buyer and momentum breakout show zero on IEI?

IEI never fell 10% from its 20-day high, so the dip buyer found no entry, and the momentum breakout shows no gain or loss either. Their CAGR and drawdown both read 0.

How much do costs matter on IEI?

At 5 basis points the CAGR was 0.96% and at 10 basis points it was 0.69%, and the Sharpe ratio fell from 0.44 to 0.249. The rule made 32 fills, and trade profits are small, so costs take a visible share.

Related

SMA 10/50 Trend 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.