Learn › Strategies › Golden Cross (SMA 50/200) › IEF

Golden Cross (SMA 50/200) 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: golden cross on IEF turned $10,000 into $9,833 (−1.7% total, −0.3% CAGR): it beat buy-and-hold by 2.0% per year, with a maximum drawdown 13.3 points shallower than holding (8.5% vs 21.8%).

Golden cross on IEF ended the window with $9,833 from $10,000, a CAGR of -0.29% and a total return of -1.67%. That is a small loss, and it is a better result than the one buy-and-hold produced on the same fund, which ended at $8,756 with a CAGR of -2.29%. The window runs from 2021-01-04 to 2026-10-02, about 5.74 years. IEF is the iShares 7-10 Year Treasury Bond ETF, and over this window it was a losing asset. The strategy did not change that. It lost less.

The rules are the golden cross rules: buy with 98% of the sleeve at the open when the 50-day simple average is above the 200-day, and sell the whole position at the open when the 50-day falls below the 200-day. The test makes no other decisions. It has no stop, no target and no position sizing beyond the 98%.

Four round trips and eight fills came out of the whole window. Two of the four trades won and two lost, so the win rate is 50%. The profit factor is 0.62, which says the losers were larger than the winners: the average win was 1.44% and the average loss was -2.25%. Max drawdown was 8.52%, against 21.77% for holding the fund. Sharpe was -0.05, against -0.29 for buy-and-hold.

The result has two sides and this page treats them separately. The first is that the rules avoided most of the 2022 bond selloff. The second is that the rules did not earn anything on the way back, and lost money in 2023, when the fund recovered. Years, trades, drawdowns, parameter variants, cost runs and the fund's own behavior each get a section. The test is one fund in one window with daily decisions, and the headline run has no fees or slippage.

−0.3%CAGR
−2.3%buy & hold CAGR
−8.5%max drawdown
-0.05Sharpe ratio
4round trips
50%win rate
■ golden cross   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeargolden crossbuy & hold
20210.1%−3.3%
20220.0%−14.8%
2023−3.7%3.5%
20240.6%−0.6%
20252.3%7.8%
2026−1.0%−4.5%

How each year played out

In 2021 the strategy returned 0.1% and buy-and-hold returned -3.3%. The strategy sat in cash until 2021-10-19, when the 50-day average finally crossed above the 200-day. It bought at an adjusted price of $98.00 and sold on 2021-11-22 at $98.11, a gain of 0.11% over 34 days. October added 0.31% and November took back 0.2%. The fund was falling through most of the year, and the 200-day average was still above the 50-day for most of that stretch, so the filter kept the account out.

In 2022 the strategy returned 0.0% and buy-and-hold returned -14.8%. This is the year that explains the whole result. IEF fell 15.16% by calendar year, and the golden cross account was in cash for all twelve months. Every monthly figure in the 2022 row is zero. The death cross had already pushed the strategy to cash in November 2021, and the averages did not cross back up at any point in 2022. The fund had its two worst single days of the window in that year, -1.77% on 2022-06-13 and -1.68% on 2022-09-26, and the account took neither.

In 2023 the strategy returned -3.7% and buy-and-hold returned 3.5%. This is the cost of the filter. The strategy bought on 2023-04-25 at $87.78, after the averages crossed, and sold on 2023-08-07 at $84.47. That trade lost 3.77% in 104 days and is the worst trade in the test. May lost 1.4%, June lost 1.2%, and July and August each lost 0.61%. The fund had its best stretch of the year later: the best month for buy-and-hold in the whole window was 2023-11 at 4.47%, and the strategy was in cash for it. The best single day for IEF in 2023 was 2023-03-10 at 1.83% and 2023-11-14 at 1.48%. The strategy missed both.

In 2024 the strategy returned 0.6% and buy-and-hold returned -0.6%. The strategy entered on 2024-01-17 at $85.85 and held until 2025-01-14, selling at $85.22 for a loss of 0.73% over 363 days. Inside that year the monthly figures swung between gains of 2.82% in July and losses of 3.05% in April and 3.28% in October. The year ended slightly ahead of holding mostly because of the first half. The position went through large monthly swings and came out about flat.

In 2025 the strategy returned 2.3% and buy-and-hold returned 7.8%. The strategy was out in February and March, then bought on 2025-04-01 at $89.90. The fund rose through the rest of the year, but the account was in cash for the first three months and missed that part of the rise. The trade lagged buy-and-hold by a wide margin, and 2025 and 2023 are the two years where the strategy fell short.

In 2026 the strategy returned -1.0% and buy-and-hold returned -4.5%. The trade bought in April 2025 closed on 2026-05-22 at $92.39 for a 2.77% gain, the best of the four, after 416 days, the longest hold. The account was in cash from late May and the monthly figures for June onward are zero. The 2026 figures cover a partial year through 2026-10-02.

Counting years, the strategy finished ahead of buy-and-hold in 2021, 2022, 2024 and 2026, and behind in 2023 and 2025. The margins were not symmetric. The 2022 gap was the largest in the strategy's favour, and the two years it lost were years in which the fund rose.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.3%−0.2%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.0%0.0%0.0%0.1%−1.4%−1.2%−0.6%−0.6%0.0%0.0%0.0%0.0%
20241.3%−2.0%0.7%−3.0%1.8%1.2%2.8%1.3%1.3%−3.3%1.0%−2.2%
2025−1.3%0.0%0.0%0.8%−1.2%1.5%−0.6%1.6%0.7%0.7%1.0%−0.8%
2026−0.2%2.4%−2.3%−0.1%−0.7%0.0%0.0%0.0%0.0%0.0%––

What the monthly figures show

The month-by-month table has more zeros than any other feature. The account was in cash for the whole of 2022 and most of 2021, and out of the market again from September 2023 to the end of 2023, in February and March 2025, and from June 2026 to the end of the window. The headline says the strategy held a position at the close on 43.7% of trading days. On the remaining days it earned nothing and lost nothing.

The active months are concentrated in 2024 and 2025. In 2024 the strategy traded a position that moved by 2% or more in a month in six of twelve months. The best was 2.82% in 2024-07 and the worst was -3.28% in 2024-10. October 2024 was the worst month of the whole test, and it came while the strategy was in a position it had held since January. The drawdown that started on 2024-09-16 is the same event. It started one month before.

For comparison, buy-and-hold had its best month in 2023-11 at 4.47% and its worst in 2022-09 at -4.56%. The strategy's monthly range is narrower: from -3.28% to 2.82%. A rule that is in cash for more than half of the days will usually show a narrower range, and that is what this table shows.

Five of the six calendar years contain at least one month with a loss, and the only year with no loss at all is 2022, which has no activity. The winning months and losing months in 2024 alternated, which fits the fund's 48.5% share of up days and a lag-1 autocorrelation of -0.01. A fund whose daily returns do not carry from one day to the next gives a trend rule very little to ride. The monthly table is consistent with that: runs of two good months in a row are rare in the active periods.

Every trade

golden cross on IEF made 4 closed round trips, an average hold of 229 days, an average winner of 1.44%, an average loser of −2.25%, a profit factor of 0.62, a longest losing streak of 2. It held a position at the close on 43.7% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-19$98.002021-11-22$98.110.1%34
2023-04-25$87.782023-08-07$84.47−3.8%104
2024-01-17$85.852025-01-14$85.22−0.7%363
2025-04-01$89.902026-05-22$92.392.8%416

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

There are only four trades, so each one is a large fraction of the result.

The median trade returned 0.11% and the median hold was 363 days. The longest losing streak was 2, and the longest winning streak was 1. The average hold was 229 days, which is a long time for a position that returned a median of 0.11%.

Two of the four trades won, but the profit factor of 0.62 shows that the dollars lost were larger than the dollars won. The lone big loser of 3.77% outweighed the 0.11% winner and nearly outweighed the 2.77% winner. With four trades the win rate has little statistical meaning. One different entry date would move the win rate a long way, and the CAGR would change by more than the difference between most parameter variants on this page.

The prices are adjusted for splits and dividends. They are lower than the quotes printed at the time, and the adjustment matters for a bond fund whose return is mostly interest. The entry and exit prices above are the adjusted ones, and the return percentages come from the adjusted series.

Each trade followed the rules mechanically. Entry came at the open after the 50-day moved above the 200-day, so the position is always built after the trend is visible in the averages, which are slow. In a bond fund that fell for most of this window, that lag was costly on the entry side and helpful on the exit side. The 2021 entry arrived late in a downtrend. The death cross that followed in the fall of 2021 was early relative to the full 2022 decline, and it kept the account out through the worst of it.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2024-09-162025-05-21−8.5%247not yet–
2021-11-092024-04-25−8.0%8982024-09-04132
2021-10-182021-10-21−0.5%32021-10-276

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

Drawdowns

The largest drawdown for the strategy was 8.52%, from a peak on 2024-09-16 to a low on 2025-05-21, 247 days later. It had not recovered by the end of the window. The second was 7.99%, from a peak on 2021-11-09 to a low on 2024-04-25, which took 898 days to reach the low and 132 days to recover, with the recovery on 2024-09-04. The third was a 0.51% dip over three days in October 2021.

Buy-and-hold had a single drawdown that mattered. It started on the first day of the window, 2021-01-04, hit 21.77% on 2023-10-19, and never recovered. The fund itself had a deepest drawdown of 22.23% over the same dates, 1443 sessions long. The golden cross cut the depth, but the second drawdown shows a flaw in the comparison: the strategy was in cash from late 2021 and through 2022, so most of the 898 days between the peak and the low contained no exposure at all. The account value did not fall during those months. The drawdown number kept running because the strategy lost 0.73% in 2024 and 3.77% in 2023, which kept it from setting a new high.

The 2024 to 2025 drawdown is the more instructive one. The peak on 2024-09-16 came after a run of gains: July added 2.82%, August 1.33% and September 1.32%. October then lost 3.28% and December lost 2.2%. January 2025 lost another 1.33%, at which point the death cross ended the trade on 2025-01-14. The account was in cash for February and March, and the low came on 2025-05-21 after the re-entry on 2025-04-01 and a 1.16% loss in May. A strategy that sells on a lagging signal and buys on a lagging signal can give back gains in both directions. The drawdown stayed open at the end of the window.

The Sharpe ratio of -0.05 is close to zero and the fund's own annualized volatility was 7.39%. Neither figure is large. A bond fund moves slowly day to day, with an average up day of 0.36% and an average down day of -0.36%. The drawdown here came from direction, not from volatility: the fund lost value for nearly three years.

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)−0.3%−8.5%$9,833-0.05
5 basis points−0.4%−8.6%$9,796-0.07
10 basis points−0.4%−8.7%$9,755-0.09

Slippage runs

Adding 5 basis points of slippage per fill lowered the CAGR from -0.29% to -0.36% and the final value from $9,833 to $9,796. Adding 10 basis points lowered it to -0.43% and $9,755. Max drawdown moved from 8.52% to 8.58% and then to 8.67%, and Sharpe from -0.05 to -0.068 and -0.086.

Eight fills carry the cost in each run. The effect is small because the strategy trades rarely. A rule that makes four round trips in 5.74 years pays slippage eight times. The same 10 basis points on a strategy that traded every week would add up faster, and the cost runs on the weekly profit target page are a place to see that on the same fund.

The cost runs do not change the ranking against buy-and-hold. Even at 10 basis points the strategy finished with $9,755 against $8,756 for holding. The costs also do not change the sign of the result: all three runs are slightly negative. The test uses a simple fixed slippage on each fill. It does not model a bid-ask spread that varies with the time of day, and IEF's median minute volume of 7,536 shares and average daily dollar volume of 675,908,601 suggest the fund is liquid enough that a small account would not move the price. The fund has traded more than enough volume for these sizes.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules−0.3%−8.5%450%$9,833
SMA 40/200−0.4%−8.1%540%$9,773
SMA 50/150−0.3%−8.0%540%$9,818
SMA 60/2500.2%−8.9%250%$10,140

Parameter variants

Three variants are shown beside the published 50/200 rules.

The 40/200 and 50/150 variants are within a few hundredths of the original on CAGR. Both use a faster crossover or a shorter slow average, and both produced 5 trades instead of 4. The extra trade did not add return. Max drawdown improved slightly in each case, from 8.52% to 8.12% and 8.01%, which is within the range that one different exit date would produce.

The 60/250 variant is the only one that finished positive, at $10,140 and a CAGR of 0.24%. It made only 2 trades. A slower pair of averages crosses less often, and in a fund that spent most of the window in a slow downtrend, fewer crosses meant fewer chances to buy a failed rally. Its drawdown was 8.95%, the deepest of the four, so the slower variant took a bigger loss in exchange for a better end value.

The reading is cautious. Three variants on four to five trades each is not a parameter study. The 60/250 result is one parameter pair that happened to avoid the 2023 trade. The data does not show that slower averages work better on bond funds. The golden cross hub page lists the same rules on all 59 funds, and the range across those funds says more about the sensitivity than three variants on one.

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 moved little each day. Annualized volatility was 7.39% and the average intraday range was 0.42%. The fund was up on 48.51% of sessions, with an average up day of 0.36% and an average down day of -0.36%. Its total return over the window was -12.95%, a CAGR of -2.39%, and its calendar-year returns were -3.35% in 2021, -15.16% in 2022, 3.64% in 2023, -0.63% in 2024, 8.03% in 2025 and -4.58% in 2026 so far.

The overnight gap is the biggest feature of the return. The average overnight gap was 0.26%, and the overnight share of the log return was 81.25% against 18.75% for the intraday portion. The overnight log return was -11.05% and the intraday log return was -2.55%. Most of the fund's loss came between the close and the next open. A rule that buys at the open and holds for months is exposed to that, and the golden cross did buy at the open.

The fund correlates 0.09 with SPY and 0.10 with QQQ, and has a beta of 0.04 to SPY. Its correlation with TLT is 0.91. Its closest peers are BND at 0.98, AGG at 0.97 and IEI at 0.97. The least correlated fund is TBF at -0.91, an inverse Treasury product. IEF is a rate-sensitive fund, not an equity-linked one. The IEF page has the full profile.

Trend rules need persistence. IEF's lag-1 autocorrelation is -0.01, and it crossed its own 200-day average 60 times in 1444 sessions while spending 53.01% of sessions above it. Sixty crossings of the 200-day in under six years is frequent, and golden cross uses two averages that smooth some of that, but the underlying series does flip across its long average often. The 50/200 pair made only 4 trades because it requires the averages to cross each other, not the price.

Mean-reversion indicators did not help in this fund either. The RSI(14) fell below 30 on 64 sessions, and the median forward 20-day return after those was -1.0% across 55 observations, against a baseline median of -0.02%. A bond fund in a rate-driven decline kept falling through oversold readings. The fund had no 10% drops from a 20-day high at all.

The rules

Hold while the 50-day average is above the 200-day; step aside when it crosses below (the death cross).

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

A widely used trend filter. When the 50-day simple moving average is above the 200-day, the asset is in a long-term uptrend and the strategy holds. When it crosses below, the strategy moves to cash. It trades rarely, with a handful of signals per decade on an index. Its use is skipping the deepest bear markets, and it will lag some rallies.

Good for: long-horizon investors who want to hold trends but sidestep multi-year bear markets.
Watch out: crosses lag at turning points: the strategy gives back the first leg of a crash and misses the first leg of a recovery, and choppy sideways markets whipsaw it.

How the rules met this fund

The golden cross is built for assets that trend for months and then reverse. IEF trended down for three years and then moved sideways with swings of a few percent. The rules did one useful thing, which was to keep the account in cash through the 2022 slide. They did one costly thing, which was to buy the 2023 bounce late and sell it lower.

The cross also uses the 98% sizing of the sleeve, so the account was almost fully invested when in. There is no partial position. When the fund went through its 2024 swings the account took them in full. The fund's low volatility meant those swings were small in absolute terms, and that is why the max drawdown stayed under 9% despite a position held for a year.

Against the other templates on IEF, golden cross ranks 5 of 12. The four ahead of it are RSI(2) snapback with a CAGR of 1.84%, SMA 10/50 trend with 1.33%, dip buyer at 0% and momentum breakout at 0%. The last two never traded in this fund. Golden cross at -0.29% beat the EMA 12/26 trend at -0.39%, RSI mean reversion at -0.84%, 3-month momentum at -1.35% and the 200-day regime filter at -1.53%. The SMA 10/50 trend page shows a faster pair of averages on the same fund, and the RSI(2) snapback page shows a short-term rule.

Among bond funds IEF ranks 42 of 59 funds for this strategy. The category peers show a wide spread: SGOV at 3.22% with no round trips, IGIB at 1.84%, IEI at 1.09%, AGG at 0.78% and BND at 0.72%, with TLT at -2.46% and a drawdown of 20.58%. The median CAGR for golden cross over all 59 funds was 2.05% and the median for the bond category was 0.78%. IEF at -0.29% sat under both. Longer-duration funds such as TLT did worse, and the shorter and cash-like funds such as SGOV and IEI did better.

The limits of the test are the usual ones. It is one 5.74-year window that starts near a peak in bond prices and ends with the fund still below its start. Four trades cannot support a general claim about the golden cross on Treasuries. The strategy also has one setting per rule and no tuning in the headline. Backtests are hypothetical and the test does not forecast anything.

Run golden cross 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 golden cross beat buy-and-hold on IEF?

Over 2021-01-04 to 2026-10-02, golden cross on IEF returned −0.3% annualized vs −2.3% for buy-and-hold: it beat buy-and-hold by 2.0% per year, with a maximum drawdown 13.3 points shallower than holding (8.5% vs 21.8%).

How many trades did it make?

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

How often does a golden cross happen?

On a broad index, roughly every couple of years. The backtest pages show the exact trade count for each ETF over the 2021 to 2026 window.

Golden cross vs buy and hold: which does better?

It depends on the asset and the window. Every backtest page here shows the same-window buy-and-hold comparison.

Did golden cross beat buy-and-hold on IEF?

Yes, over 2021-01-04 to 2026-10-02. The strategy ended at $9,833 with a CAGR of -0.29%, and buy-and-hold ended at $8,756 with a CAGR of -2.29%. Both lost money. The strategy beat holding in 2021, 2022, 2024 and 2026, and trailed it in 2023 and 2025.

How many trades did golden cross make on IEF?

It made 4 round trips and 8 fills. Two of the round trips won and two lost. The best trade returned 2.77% and the worst returned -3.77%. The average hold was 229 days.

Why was 2022 flat for the strategy when IEF fell 15%?

The 50-day average was below the 200-day throughout 2022, so the rules held cash. The account sold on 2021-11-22 and did not buy again until 2023-04-25. Buy-and-hold lost 14.8% in 2022 and the strategy lost nothing.

What was the maximum drawdown for golden cross on IEF?

8.52%, from a peak on 2024-09-16 to a low on 2025-05-21. It had not recovered by the end of the window. Buy-and-hold had a 21.77% drawdown that began on 2021-01-04 and also had not recovered.

Does slippage change the result?

Slightly. At 5 basis points per fill the final value was $9,796 and at 10 basis points it was $9,755, against $9,833 with no slippage. The strategy made only 8 fills, so the cost stays small.

Did a different moving average pair work better on IEF?

Only the 60/250 pair finished positive, at $10,140 with a CAGR of 0.24% and 2 trades. The 40/200 and 50/150 pairs ended at $9,773 and $9,818. With 2 to 5 trades each, these differences rest on a few entry dates.

How does golden cross on IEF compare with other strategies on the same fund?

It ranked 5 of 12 on IEF. RSI(2) snapback had the best CAGR at 1.84%, followed by SMA 10/50 trend at 1.33%. Golden cross at -0.29% was ahead of the 200-day regime filter at -1.53% and the monthly cycle at -2.69%.

Related

Golden Cross (SMA 50/200) 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.