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

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

Result: 200-day regime filter on IEF turned $10,000 into $9,152 (−8.5% total, −1.5% CAGR): it beat buy-and-hold by 0.8% per year, with a maximum drawdown 10.3 points shallower than holding (11.5% vs 21.8%).
−1.5%CAGR
−2.3%buy & hold CAGR
−11.5%max drawdown
-0.33Sharpe ratio
30round trips
20%win rate
■ 200-day regime filter   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Year200-day regime filterbuy & hold
2021−0.3%−3.3%
2022−1.1%−14.8%
2023−5.6%3.5%
2024−2.3%−0.6%
20253.7%7.8%
2026−2.9%−4.5%

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.3%−0.7%
2022−1.1%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%
2023−1.9%−1.2%0.6%0.8%−2.5%−1.5%−1.7%0.0%0.0%0.0%0.0%1.9%
20240.1%−2.0%0.7%−2.1%−0.1%1.2%2.8%1.3%1.3%−3.3%0.3%−2.3%
20250.0%0.9%0.3%1.0%−2.6%1.5%−0.6%1.6%0.7%0.7%1.0%−0.8%
2026−0.2%2.4%−3.5%−0.1%−1.0%−0.3%−0.2%0.0%0.0%0.0%––

Every trade

200-day regime filter on IEF made 30 closed round trips, an average hold of 32 days, an average winner of 1.56%, an average loser of −0.76%, a profit factor of 0.49, a longest losing streak of 6. It held a position at the close on 45.7% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-11-08$99.112021-11-11$98.52−0.6%3
2021-11-29$98.432021-12-30$98.840.4%31
2021-12-31$99.022022-01-04$97.73−1.3%4
2023-01-13$86.952023-01-17$86.43−0.6%4
2023-01-19$87.472023-01-24$86.66−0.9%5
2023-01-25$87.142023-01-31$86.78−0.4%6
2023-02-01$87.042023-02-06$85.93−1.3%5
2023-03-14$86.292023-03-15$87.181.0%1
2023-03-16$87.572023-05-26$85.31−2.6%71
2023-05-31$86.342023-06-14$85.60−0.9%14
2023-06-16$85.712023-06-30$85.35−0.4%14
2023-07-03$85.512023-07-05$85.16−0.4%2
2023-07-13$85.832023-07-25$85.07−0.9%12
2023-07-27$85.222023-07-28$84.79−0.5%1
2023-12-04$84.212023-12-05$84.560.4%1
2023-12-06$85.022023-12-11$84.33−0.8%5
2023-12-13$84.912024-04-11$83.89−1.2%120
2024-05-06$84.342024-05-30$84.11−0.3%24
2024-05-31$84.472024-11-07$86.902.9%160
2024-11-08$87.482024-11-13$87.07−0.5%5
2024-11-19$87.122024-12-19$86.32−0.9%30
2025-02-06$87.612025-02-11$87.09−0.6%5
2025-02-18$87.202025-02-19$86.97−0.3%1
2025-02-24$87.782025-05-15$88.641.0%80
2025-05-16$89.242025-05-22$88.16−1.2%6
2025-05-27$88.932026-03-27$92.153.6%304
2026-03-31$93.302026-04-30$93.12−0.2%30
2026-05-01$93.062026-05-05$92.90−0.2%4
2026-05-07$93.572026-05-12$92.80−0.8%5
2026-06-25$93.572026-07-01$93.06−0.6%6

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
2021-12-032024-05-29−11.5%908not yet–
2021-11-092021-11-10−0.8%12021-11-3020
2021-11-052021-11-08−0.2%32021-11-091

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2023-10-19 and reached −21.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.5%−11.5%$9,152-0.33
5 basis points−2.0%−13.1%$8,884-0.45
10 basis points−2.5%−15.2%$8,629-0.56

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules−1.5%−11.5%3020%$9,152
100-day SMA−0.1%−9.3%3030%$9,920
150-day SMA−0.9%−9.3%3421%$9,500
250-day SMA−0.8%−10.3%2821%$9,555

How IEF behaved

MeasureIEF
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold−12.9%
Annualized volatility7.4%
Deepest drawdown−22.2% (2021-01-04 to 2023-10-19)
Up days48.5%
Average daily range0.42%
Average overnight gap0.26%
Correlation to SPY0.09
Correlation to QQQ0.10
Correlation to TLT0.91
Sessions above the 200-day average53.0%
Crossings of the 200-day average60
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 IEF 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 IEF?

Over 2021-01-04 to 2026-10-02, 200-day regime filter on IEF returned −1.5% annualized vs −2.3% for buy-and-hold: it beat buy-and-hold by 0.8% per year, with a maximum drawdown 10.3 points shallower than holding (11.5% vs 21.8%).

How many trades did it make?

30 completed round trips over 5.7 years (60 fills), with 20% 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 IEF12 templates compared RSI(14) Mean Reversion on IEFsame ETF, different rulesRSI(2) Dip Snapback on IEFsame 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.