Learn › Strategies › SMA 10/50 Trend › IEF

SMA 10/50 Trend 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: SMA 10/50 trend on IEF turned $10,000 into $10,788 (7.9% total, 1.3% CAGR): it beat buy-and-hold by 3.6% per year, with a maximum drawdown 16.1 points shallower than holding (5.7% vs 21.8%).

IEF holds Treasury bonds with 7 to 10 years left to maturity, and over the test window it lost money for anyone who held it. The fund fell 12.95% in total, a CAGR of -2.39% on the fund's own price series, and the buy-and-hold run that invests 98% at the first open returned -2.29% a year, ending at $8,756. Its drawdown ran from the very first day, 2021-01-04, to 2023-10-19 and reached 21.77%. It never recovered inside the data, which makes the longest drawdown on the page 1,443 sessions out of 1,444.

The SMA 10/50 trend rule is a faster cousin of the golden cross. It buys when the 10-day average is above the 50-day and sells when the 10-day falls below the 50-day. On IEF it earned a CAGR of 1.33% and finished at $10,788, a total return of 7.88%. The maximum drawdown was 5.67%, the Sharpe ratio 0.31 and the profit factor 1.94. It beat holding by 3.62 points of CAGR, finished $2,033 ahead, and had a drawdown 16.1 points shallower than the fund's.

That makes IEF one of the funds where the trend rule did what a trend rule is meant to do. It was ahead of holding in 2021, 2022, 2023, 2024 and 2026, and behind only in 2025. The profit is small in absolute terms, a gain of 7.88% over 5.74 years, and it came from avoiding most of a falling market rather than from capturing a rising one. The rule held a position on 46.7% of trading days.

It made 14 closed round trips and 28 fills, with nothing open at the end. Six of the 14 won, a win rate of 43%. The average winner was 2.7% and the average loser -1.02%, and the best trade returned 4.26% against a worst of -1.98%. Among the 12 templates on IEF this one ranks second by CAGR, behind the RSI(2) snapback at 1.84%. IEF ranks 34th of 59 funds for the rule and third of the 7 bond funds. All numbers are from one window, with daily decisions and no costs in the headline run.

1.3%CAGR
−2.3%buy & hold CAGR
−5.7%max drawdown
0.31Sharpe ratio
14round trips
43%win rate
■ SMA 10/50 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearSMA 10/50 trendbuy & hold
20213.1%−3.3%
2022−3.1%−14.8%
20235.4%3.5%
2024−0.5%−0.6%
20255.3%7.8%
2026−2.3%−4.5%

Year by year

The yearly table shows a rule that earned its keep in down years and lagged in the one strong year. In 2021 the rule earned 3.1% against -3.3% for holding. In 2022, the year bond prices fell hardest, holding IEF lost 14.8% and the rule lost 3.1%, a lead of 11.7 points that is the largest in the table. In 2023 the rule earned 5.4% against 3.5%. In 2024 it lost 0.5% against 0.6%. In 2025 it earned 5.3% against 7.8%, and in 2026 so far it has lost 2.3% against 4.5%.

2022 deserves the detail. The rule was flat from February to June, which the monthly table shows as five zero months, then earned 2.2% in July. It lost 3.2% in August, which was the worst month of the test, then held cash in September and October and earned 1.0% in November. December lost 1.4%. The July trade bought at $89.05 on 2022-07-12 and sold at $88.08 on 2022-08-29 for a loss of 1.1%. Holding lost 4.56% in September 2022, the fund's worst month, while the rule sat in cash.

The rule bought on 2023-11-15 at $82.57, held 91 days, and sold on 2024-02-14 at $84.72 for 2.6%. In that year it earned 3.5% in January, lost 2.8% in February and lost 2.1% in May, and its November and December returns were 1.4% and 3.7%. The best month of the test was December 2023 at 3.66%.

2025 is the one year the rule trailed. It earned 5.3% against 7.8%. The monthly table shows a loss in May of 2.1% and in December of 1.0%, and the long trade from 2025-06-13 to 2025-12-15, 185 days and 4.1%, did most of the work. January 2025 shows 0.0%, and the first entry of the year came on 2025-02-07.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.4%0.4%1.0%1.9%−0.4%0.1%0.0%0.0%−0.3%
2022−1.6%0.0%0.0%0.0%0.0%0.0%2.2%−3.2%0.0%0.0%1.0%−1.4%
20233.5%−2.8%0.9%0.8%−2.1%0.0%0.0%0.0%0.0%0.0%1.4%3.7%
20240.1%−2.6%−0.3%0.0%−0.5%1.2%2.8%1.3%1.3%−2.0%0.0%−1.8%
20250.0%2.3%0.3%1.0%−2.1%1.4%−0.6%1.6%0.7%0.7%1.0%−1.0%
2026−0.5%1.6%−2.4%0.0%0.0%−0.3%−0.7%0.0%0.0%0.0%––

Month by month

The month table has many zeros because the rule spends more than half its time out of the fund. The zero stretches are 2021 January to March, 2022 February to June, 2023 June to October, and 2026 April to May and August to October. A zero month means the rule held no position at the close of each session in that month. The long 2023 stretch from June to October is the one that sat through the fund's lows, which the profile dates to 2023-10-19.

The worst month of the test was August 2022 at -3.16%. The best was December 2023 at 3.66%. For holders the worst was September 2022 at -4.56% and the best November 2023 at 4.47%. The rule's months are smaller in both directions, and no negative month for the rule in the table is worse than -3.16%.

The rule's negative months are scattered: February 2023 at -2.8%, May 2023 at -2.1%, February 2024 at -2.6%, October 2024 at -2.0%, December 2024 at -1.8%, May 2025 at -2.1% and March 2026 at -2.4%. Most are single losing months inside a longer trade. IEF's calendar averages show September at -1.79%, October at -1.31% and November at +2.24%, though each month has only 5 or 6 observations.

IEF's biggest days and where the rule was positioned

IEF's five worst days were 2022-06-13 at -1.77%, 2022-09-26 at -1.68%, 2022-03-02 at -1.52%, 2022-09-22 at -1.5% and 2022-08-05 at -1.45%. The rule was in cash on four of those, since its monthly returns for February to June 2022 and for September 2022 are all zero. Only the 2022-08-05 loss fell inside a trade, the one that ran from 2022-07-12 to 2022-08-29, and August 2022 was the rule's worst month at -3.16%.

The best days were 2.26% on 2022-09-28, 2.24% on 2022-11-10, 1.83% on 2023-03-10, 1.51% on 2024-08-02 and 1.48% on 2023-11-14. The rule missed the first three. The 2022-11-10 gain came before the 2022-11-21 entry, and the 2023-03-10 day came after the 2023-02-16 exit and before the 2023-03-21 entry. The 2024-08-02 day fell inside the 146-day winner that began on 2024-05-17. The 2023-11-14 day came one session before the 2023-11-15 entry, so the rule bought just after the fund's biggest rally day of that month.

The weekday averages for IEF were -0.08% on Mondays, 0.01% on Tuesdays, 0.05% on Wednesdays, -0.02% on Thursdays and -0.01% on Fridays, which is no usable pattern. RSI(2) closed below 10 on 186 sessions, and the median 5-day return after them was 0.05% against -0.04% for any day. The median 20-day return was -0.21% against -0.02%. A bond fund in a falling market gave oversold readings no edge.

Every trade

SMA 10/50 trend on IEF made 14 closed round trips, an average hold of 70 days, an average winner of 2.70%, an average loser of −1.02%, a profit factor of 1.94, a longest losing streak of 3. It held a position at the close on 46.7% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-29$97.002021-09-14$100.443.5%138
2021-12-03$99.212022-01-06$97.25−2.0%34
2022-07-12$89.052022-08-29$88.08−1.1%48
2022-11-21$84.252023-02-16$84.470.3%87
2023-03-21$86.362023-05-23$85.99−0.4%63
2023-11-15$82.572024-02-14$84.722.6%91
2024-03-14$85.362024-03-20$85.12−0.3%6
2024-05-17$85.042024-10-10$88.664.3%146
2024-12-10$88.252024-12-20$86.66−1.8%10
2025-02-07$87.332025-05-15$88.641.5%97
2025-06-13$89.642025-12-15$93.284.1%185
2025-12-31$93.512026-01-21$92.83−0.7%21
2026-02-12$93.872026-03-20$93.08−0.8%36
2026-06-25$93.572026-07-16$92.63−1.0%21

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

The trades split into long ones that won and short ones that lost. The winners were 2021-04-29 to 2021-09-14 (138 days, 3.5%), 2022-11-21 to 2023-02-16 (87 days, 0.3%), 2023-11-15 to 2024-02-14 (91 days, 2.6%), 2024-05-17 to 2024-10-10 (146 days, 4.3%), 2025-02-07 to 2025-05-15 (97 days, 1.5%) and 2025-06-13 to 2025-12-15 (185 days, 4.1%). Their holds ranged from 87 to 185 days.

The losers were mostly short. 2024-03-14 to 2024-03-20 lasted 6 days and lost 0.3%. 2024-12-10 to 2024-12-20 lasted 10 days and lost 1.8%. 2025-12-31 to 2026-01-21 lasted 21 days and lost 0.7%, and 2026-06-25 to 2026-07-16 lasted 21 days and lost 1.0%. The longest losers were 2021-12-03 to 2022-01-06, 34 days for -2.0%, the worst of the test, and 2026-02-12 to 2026-03-20, 36 days for -0.8%. Two others, from 2022-07-12 and 2023-03-21, lasted 48 and 63 days and lost 1.1% and 0.4%.

The average hold was 70.2 days, with the fund held on 46.7% of sessions. The longest winning streak was 2 trades and the longest losing streak 3, so no run of results was long enough to dominate the record. A bond fund that fell for almost three years gave the rule few chances to win, and four of the six winners were entered after the fund's October 2023 low.

The profit factor of 1.94 comes from the asymmetry. The average winner was 2.7% and the average loser -1.02%, so a win rate of only 43% still left gains larger than losses. The rule cuts its losses at a fast crossover and holds winners until the averages cross back. That is the structure the strategy page describes, and on a smooth bond fund with a 7.39% volatility it kept the whipsaw losses small.

The last three trades, entered at $93.51, $93.87 and $93.57, lost 0.7%, 0.8% and 1.0%. Those are the highest entry prices in the trade list. Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time.

What each exit saved and cost on re-entry

Setting each sale against the following purchase shows what the cash periods were worth. After the 2022-01-06 sale at $97.25 the rule waited until 2022-07-12 and bought at $89.05, a much lower price. The sale at $88.08 on 2022-08-29 was followed by a purchase at $84.25 on 2022-11-21. The sale at $85.99 on 2023-05-23 was followed by a purchase at $82.57 on 2023-11-15. Those three gaps are where the rule earned its lead over holding, and each is a case of selling and then buying back lower.

The short gaps tell the opposite story. The sale on 2024-03-20 at $85.12 and the purchase on 2024-05-17 at $85.04 were nearly level. The sale on 2024-12-20 at $86.66 was followed by a buy on 2025-02-07 at $87.33, slightly higher. The sale on 2025-12-15 at $93.28 and the purchase on 2025-12-31 at $93.51 were two weeks apart and cost a little. Late in the record the rule was trading in a range, with exits at $92.83, $93.08 and $92.63 against entries at $93.51, $93.87 and $93.57. Each cycle paid a small loss to the crossover.

The long decline produced the gaps that favoured the rule. The later stretches were flatter, and the rule's three trades in 2026 all lost, at 0.73%, 0.84% and 1.0%.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2024-09-162025-02-12−5.7%1492025-09-08208
2024-02-012024-05-29−4.8%1182024-07-3163
2022-08-012022-11-21−4.2%1122023-01-1858

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2023-10-19 and reached −21.8%.

Drawdowns

The rule's largest drawdown was 5.67%, from 2024-09-16 to 2025-02-12, 149 days to the low, and it recovered on 2025-09-08 after another 208 days. The second was 4.76%, from 2024-02-01 to 2024-05-29, recovering on 2024-07-31. The third was 4.18%, from 2022-08-01 to 2022-11-21, recovering on 2023-01-18 after 58 days.

Holding has a single drawdown in the table. It started on the first day of the test, reached 21.77% on 2023-10-19 and never recovered. The fund's own series shows 22.23% over the same dates. Every drawdown of the rule is a shallow dip inside a period when holding was falling or flat. The 2022 drawdown of 4.18% compares with a 14.8% loss for holders that year, and the rule's deepest drawdown began in 2024, a year when holding lost only 0.6%.

The rule's deepest drawdown therefore came in 2024 and 2025, not in 2022. The 2024 trades included a 6-day trade and a 10-day trade that both lost money. A fast average gives early signals in a trend and false ones in a range.

The Sharpe ratio was 0.31 against -0.29 for holding. The rule's return was low, and so was its drawdown.

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.3%−5.7%$10,7880.31
5 basis points1.1%−5.8%$10,6430.26
10 basis points0.8%−6.0%$10,4960.21

Trading costs

The rule made 28 fills, so the cost runs matter here. The headline CAGR of 1.33% fell to 1.09% with 5 basis points of slippage per fill and to 0.85% with 10 basis points. The final value fell from $10,788 to $10,643 and $10,496. The maximum drawdown went from 5.67% to 5.85% and 6.03%, and the Sharpe ratio from 0.31 to 0.261 and 0.207.

Even at 10 basis points the rule stays ahead of holding, which had a CAGR of -2.29%. The size of the edge over buy-and-hold shrinks from 3.62 points to a smaller margin, and the absolute return is thin. IEF is among the most liquid ETFs in the data, with an average daily dollar volume of $675,908,601 and a median minute volume of 7,536 shares. The cost runs use flat slippage, so they do not model spread or order size.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules1.3%−5.7%1443%$10,788
SMA 5/500.4%−7.0%2335%$10,254
SMA 20/500.8%−7.1%1436%$10,441
SMA 10/100−0.8%−12.8%1136%$9,560

Changing the parameters

All three variants did worse than the published 10/50 on return. SMA 5/50 gave a CAGR of 0.44% with 23 trades, 8 wins and a 7.02% drawdown. SMA 20/50 gave 0.75% with 14 trades and 5 wins, and a 7.06% drawdown. SMA 10/100 gave -0.78% with 11 trades, 4 wins and a 12.76% drawdown, ending at $9,560.

A faster fast average, 5 days, made more trades and lost more of the return to whipsaw. A slower fast average, 20 days, made the same 14 trades as the published rule and earned less. A slower slow average, 100 days, produced the worst result and the deepest drawdown, and it signals later than the other windows. The published 10/50 is the best of the four, and the reason is partly luck of timing: with 11 to 23 trades each, one or two signals decide the difference. Nothing here shows that 10/50 is better than 10/60 or 15/50 on another window.

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

How IEF behaved

IEF is an intermediate Treasury fund with annualized volatility of 7.39%. The average intraday range was 0.42% and the average overnight gap 0.26%, with 48.51% up days and an average up day and down day of 0.36% in each direction. Its beta to SPY was 0.04 and its correlation to SPY 0.09. It tracked TLT closely, with a correlation of 0.91 and a beta of 0.44, and BND, AGG and IEI at 0.98, 0.97 and 0.97.

The calendar years show why trend rules had something to find. IEF returned -3.35% in 2021, -15.16% in 2022, 3.64% in 2023, -0.63% in 2024, 8.03% in 2025 and -4.58% so far in 2026. IEF slid through 2022 and into late 2023, which is the stretch a moving-average rule is built to sit out. The fund spent 53.01% of sessions above its 200-day average and crossed that line 60 times.

The RSI statistics are weak. RSI(14) fell below 30 on 64 sessions, and the median 20-day return after those sessions was -1.0%, against a baseline of -0.02%. A bounce was not typical in this fund and window. IEF never fell 10% from a 20-day high, with 0 events, so the dip buyer made 0 trades and finished at 0%. The momentum breakout also made 0 trades.

Bond funds in the data cover a range. SGOV, a cash-like fund, earned 3.21% with a 0.05% drawdown under this rule. IGIB earned 1.73%, IEI 1.24%, AGG 0.79% and BND 0.52%, while TLT, the long-dated fund, lost 0.85% with a 14.24% drawdown. IEF at 1.33% is in the middle of the group.

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 the rules fit this fund

A crossover of two averages needs a trend and a smooth path. IEF in 2022 and 2023 offered the first, a long decline with small daily moves, and its low volatility offered the second. The fast average of 10 days reacted within weeks, so the rule left the fund on 2022-01-06 and again on 2022-08-29 and avoided most of the year's losses.

The other templates on IEF show how much of that is the rule and how much is the fund. The RSI(2) snapback earned 1.84% with a 12.86% drawdown, deeper than the trend rule's 5.67%. The dip buyer and the momentum breakout both finished at 0% with no trades. The golden cross lost 0.29% with an 8.52% drawdown, and the EMA 12/26 trend lost 0.39% with 10.63%. The golden cross and the EMA 12/26 trend rule both lost money. At the bottom, the monthly cycle lost 2.69% with a 24.73% drawdown and the trend with trailing stop lost 2.13% with 21.47%. See every template on the IEF hub.

The test is one window of 5.74 years that covers one long bond decline. It has 14 trades. The result says what the rule did in that decline, with daily decisions and no costs in the headline run, and says nothing about a window in which bonds rise.

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

Over 2021-01-04 to 2026-10-02, SMA 10/50 trend on IEF returned 1.3% annualized vs −2.3% for buy-and-hold: it beat buy-and-hold by 3.6% per year, with a maximum drawdown 16.1 points shallower than holding (5.7% vs 21.8%).

How many trades did it make?

14 completed round trips over 5.7 years (28 fills), with 43% 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.

Did the SMA 10/50 trend rule beat buy-and-hold on IEF?

Yes. It earned a 1.33% CAGR against -2.29% for holding and finished at $10,788 against $8,756. The maximum drawdown was 5.67% against 21.77%. It was behind holding in 2025 only.

How many trades did the rule make on IEF?

It made 14 closed round trips and 28 fills, and six of the 14 won. The average winner was 2.7% and the average loser -1.02%. The rule was invested on 46.7% of trading days.

Why was the win rate only 43% with a profit factor of 1.94?

Winners averaged 2.7% and held for months, while losers averaged -1.02% and were often exited within weeks. A few large winners offset a larger number of small losses.

What happened in 2022?

Holding IEF lost 14.8% in 2022. The rule lost 3.1% by sitting in cash from February to June and in September and October. The lead of 11.7 points is the largest of any year.

How much do costs matter?

At 5 basis points per fill the CAGR fell to 1.09%, and at 10 basis points to 0.85%. The rule made 28 fills. IEF is very liquid, with an average daily dollar volume of $675,908,601.

Would a different pair of averages work better?

SMA 5/50 gave 0.44%, SMA 20/50 gave 0.75% and SMA 10/100 gave -0.78%. None beat the published 10/50 at 1.33%. With 11 to 23 trades each, the differences reflect a few crossing dates.

How does it compare with other templates on IEF?

It ranks second of 12 by CAGR. The RSI(2) snapback earned 1.84%, and the dip buyer and momentum breakout made no trades. The monthly cycle was last at -2.69%.

Related

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