Learn › Strategies › 200-Day SMA Regime Filter › IEI

200-Day SMA Regime Filter 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: 200-day regime filter on IEI turned $10,000 into $10,608 (6.1% total, 1.0% CAGR): it beat buy-and-hold by 1.4% per year, with a maximum drawdown 9.2 points shallower than holding (4.6% vs 13.8%).
1.0%CAGR
−0.4%buy & hold CAGR
−4.6%max drawdown
0.36Sharpe ratio
21round trips
33%win rate
■ 200-day regime filter   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Year200-day regime filterbuy & hold
20210.0%−2.5%
20220.0%−9.3%
2023−0.1%4.3%
20241.5%1.9%
20256.1%6.6%
2026−1.3%−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.1%−0.9%1.1%0.6%−0.9%−1.2%−1.0%−0.6%0.0%0.0%0.5%2.3%
20240.3%−1.3%0.4%−1.9%1.1%0.9%2.1%1.1%1.0%−2.1%0.6%−0.7%
2025−0.1%1.6%0.6%1.3%−0.7%1.0%−0.4%1.4%0.1%0.5%0.7%−0.2%
20260.0%1.4%−1.5%0.0%−0.6%−0.1%−0.4%−0.2%0.0%0.0%––

Every trade

200-day regime filter on IEI made 21 closed round trips, an average hold of 51 days, an average winner of 1.55%, an average loser of −0.32%, a profit factor of 2.37, a longest losing streak of 4. It held a position at the close on 51.0% of trading days.

EntryEntry priceExitExit priceReturnDays held
2023-01-12$104.132023-02-07$103.24−0.8%26
2023-03-14$103.732023-07-05$103.06−0.7%113
2023-07-13$104.022023-07-28$103.19−0.8%15
2023-08-01$103.072023-08-02$102.97−0.1%1
2023-08-07$103.412023-08-08$103.640.2%1
2023-08-09$103.682023-08-11$102.88−0.8%2
2023-11-15$103.082023-11-16$103.340.3%1
2023-11-17$103.392023-11-20$103.27−0.1%3
2023-11-21$103.512023-11-27$103.38−0.1%6
2023-11-28$103.602024-04-17$104.190.6%141
2024-04-18$104.272024-04-26$104.12−0.1%8
2024-04-29$104.262024-05-01$104.22−0.0%2
2024-05-02$104.412025-01-13$107.673.1%256
2025-01-16$108.242026-05-15$115.246.5%484
2026-06-01$115.532026-06-02$115.790.2%1
2026-06-17$115.972026-06-18$115.74−0.2%1
2026-06-25$116.132026-07-02$115.95−0.1%7
2026-07-06$115.982026-07-08$115.55−0.4%2
2026-08-14$116.052026-08-17$115.81−0.2%3
2026-08-20$115.742026-08-21$115.760.0%1
2026-08-26$115.942026-08-27$115.940.0%1

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.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2023-05-042023-11-24−4.6%2042024-08-01251
2024-09-162025-01-13−3.5%1192025-04-0380
2026-02-272026-08-17−2.8%171not yet–

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

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.0%−4.6%$10,6080.36
5 basis points0.7%−5.3%$10,3950.24
10 basis points0.3%−6.1%$10,1850.12

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules1.0%−4.6%2133%$10,608
100-day SMA0.3%−5.8%3727%$10,183
150-day SMA0.6%−3.3%2825%$10,367
250-day SMA0.9%−4.7%2438%$10,558

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

The rules

Own the asset when price closes above its 200-day average; hold cash when it closes below.

  1. WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
  2. WHEN the market opens · IF invested AND yesterday's close < SMA(200) · THEN sell the whole position

One rule and one number. Price above the 200-day moving average has historically coincided with better returns and lower volatility than price below it. This template uses no crossovers and no oscillators, only which side of the long-term average the price is on.

Good for: a first systematic strategy, simple enough to audit every trade.
Watch out: price whips around the 200-day line during volatile bottoms, generating clusters of buy-sell pairs. Some traders add a small buffer band to reduce churn.

Run 200-day regime filter 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 200-day regime filter beat buy-and-hold on IEI?

Over 2021-01-04 to 2026-10-02, 200-day regime filter on IEI returned 1.0% annualized vs −0.4% for buy-and-hold: it beat buy-and-hold by 1.4% per year, with a maximum drawdown 9.2 points shallower than holding (4.6% vs 13.8%).

How many trades did it make?

21 completed round trips over 5.7 years (42 fills), with 33% of round trips closing profitably.

Why the 200-day average specifically?

It approximates a year of trading days and has been studied across decades of data. It is not the best window for every asset. The per-ETF backtests here show where it helped and where it didn't.

Related

200-Day SMA Regime Filter 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.