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

Golden Cross (SMA 50/200) 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: golden cross on IEI turned $10,000 into $10,644 (6.4% total, 1.1% CAGR): it beat buy-and-hold by 1.5% per year, with a maximum drawdown 8.3 points shallower than holding (5.5% vs 13.8%).

IEI holds US Treasuries with maturities of three to seven years. It is a quiet fund: annualized volatility was 4.57% over the test, the average daily move was about 0.2% in either direction, and its correlation to SPY was 0.08. The golden cross holds an asset while the 50-day average is above the 200-day average and sells when the 50-day falls below. On IEI from 2021-01-04 to 2026-10-02 it turned $10,000 into $10,644, a total return of 6.4% and a CAGR of 1.1%.

Buy-and-hold on IEI lost 0.4% a year and ended at $9,793. The golden cross was ahead by 1.5 points a year and its maximum drawdown was 5.5% against 13.8% for holding. Its Sharpe ratio was 0.40 against minus 0.06 for buy-and-hold. The rule made 2 round trips, one losing trade at minus 2.4% and one winning trade at 9.2%, and was invested on 49.8% of trading days.

The return is small in absolute terms. The gain over five and three quarter years is the result of one good holding period, and almost all the benefit over buy-and-hold comes from the two years in which the golden cross held no position at all, 2021 and 2022, when IEI lost 2.5% and 9.3% for a holder. On this fund, the rule's value in the window was avoidance.

The golden cross ranks 4th among the 12 templates on IEI by CAGR and IEI is 35th of 59 funds for this rule. The golden cross has a median CAGR of 2.05% across all 59 ETFs and a median of 0.78% across the seven bond funds. IEI's 1.09% is above the bond median and below the all-fund median.

1.1%CAGR
−0.4%buy & hold CAGR
−5.5%max drawdown
0.40Sharpe ratio
2round trips
50%win rate
■ golden cross   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeargolden crossbuy & hold
20210.0%−2.5%
20220.0%−9.3%
2023−2.3%4.3%
20242.2%1.9%
20256.7%6.6%
2026−0.1%−2.4%

Two years in cash, then one long hold

The first two rows of the yearly table are both 0.0%. The golden cross never bought IEI in 2021 or 2022. At the start of the test the 50-day average was not above the 200-day, and it stayed below through the fall in bond prices that began in 2022. IEI itself returned a loss of 2.55% in calendar 2021 and a loss of 9.54% in 2022, and buy-and-hold lost 2.5% and 9.3%. The golden cross avoided both. It is the clearest case on this page of the rule doing what its description says: skipping the deepest part of a bear market.

It carried a cost in the other direction. The first signal came on 2023-03-20, after IEI had been rebounding, so the rule missed the first leg of recovery. In 2023 the golden cross lost 2.3% while buy-and-hold gained 4.3%, and the 6.6 point gap is the only year in which it trailed. The fund's best month for buy-and-hold was March 2023 at a gain of 2.83%, and the golden cross entered on the 20th of that month, after much of it had passed. The crossover lagged the turn.

In 2024 the golden cross made 2.2% against 1.9% for buy-and-hold. It had a different entry in this year: the second trade began on 2024-01-02, at the first open of the year. In 2025 the two were nearly equal, 6.7% and 6.6%, because the rule was fully invested for the whole year. The hold continued into 2026, where the golden cross lost 0.1% and buy-and-hold lost 2.4%, as the rule exited on 2026-06-17 and sat in cash after that. The 2026 row is a partial year that ends on 2026-10-02.

The pattern is a rule that was out for the whole of the fund's worst stretch, in for most of the recovery, and out again for the weak months at the end. The yearly results beat buy-and-hold in five of six years. In three of those, 2021, 2022 and 2026, the margin came from holding cash while the fund fell. In 2024 and 2025 the margins were 0.3 and 0.1 points, which is what two nearly identical positions produce. The trend with trailing stop on IEI is another trend rule on the same fund and is useful for seeing how a different exit changed these years.

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.0%0.0%−0.3%0.6%−0.9%−1.2%0.0%−0.7%0.0%0.0%0.0%0.0%
20240.6%−1.3%0.4%−1.7%1.3%0.9%2.1%1.1%1.0%−2.1%0.6%−0.7%
20250.4%1.6%0.6%1.3%−0.7%1.1%−0.4%1.4%0.1%0.5%0.7%−0.2%
20260.0%1.4%−1.5%0.0%−0.1%0.1%0.0%0.0%0.0%0.0%––

The flat months and what filled the rest

The monthly grid is blank for a long stretch. Every month of 2021 and 2022 shows 0.0%, as do January, February, July, September, October, November and December 2023. The golden cross held cash in all of those months. Part of 2023 was also flat because the first trade ended on 2023-08-16 and the second did not begin until 2024-01-02.

The months that did move are small. In 2023 the first trade produced a gain of 0.6% in April and then losses of 0.3% in March, 0.9% in May, 1.2% in June and 0.7% in August. Those add up to the loss of 2.3% for the year. In 2024 the best month was July at a gain of 2.1%, and the worst was October at a loss of 2.1%. Other 2024 months ran between a loss of 1.7% in April and a gain of 1.3% in May. In 2025 the range was narrower, from a loss of 0.7% in May to a gain of 1.6% in February.

A bond fund with a typical daily range of 0.25% produces monthly figures of this size, and no single month on this page moved the result by more than about two points. The strategy's best month was July 2024 at 2.12%, and its worst was October 2024 at a loss of 2.07%. Buy-and-hold's best month was March 2023 at 2.83% and its worst was March 2022 at a loss of 3.04%, a month the golden cross spent entirely in cash.

The fund's own month-of-year averages are mixed. November averaged a gain of 1.32% and July a gain of 0.67%, while September averaged a loss of 0.98% and October a loss of 0.72%. Each month has only five or six observations, so these are descriptions of this window, not seasonal rules. The golden cross lost 2.1% in October 2024, in line with the fund's weak October average, and it was a handful of months like that which formed the drawdown described below.

Every trade

golden cross on IEI made 2 closed round trips, an average hold of 523 days, an average winner of 9.15%, an average loser of −2.36%, a profit factor of 3.79, a longest losing streak of 1. It held a position at the close on 49.8% of trading days.

EntryEntry priceExitExit priceReturnDays held
2023-03-20$105.122023-08-16$102.64−2.4%149
2024-01-02$106.252026-06-17$115.979.2%897

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 two closed trades

The first trade began on 2023-03-20 at an adjusted price of $105.12 and ended on 2023-08-16 at $102.64, a loss of 2.4% after 149 days. This is a typical golden cross loss: the 50-day average crossed above the 200-day late in a move, and the fund then lost ground, so the rule bought near the top of a short rally and sold below its entry when the averages crossed back.

The second trade began on 2024-01-02 at $106.25 and ended on 2026-06-17 at $115.97, a gain of 9.2% after 897 days. It is the trade that made the whole result. The exit on 2026-06-17 came after the fund peaked on 2026-02-27, so the rule held through a decline of 2.5% before the averages crossed. The sale happened after the fund had already given back part of its gain, which is the lag the template's caveat describes.

The summary numbers are a profit factor of 3.79, an average winner of 9.15%, an average loser of 2.36%, an average hold of 523 days and a median hold of 897 days. A profit factor of 3.79 looks strong and rests on one winner and one loser. Two trades is not a sample that supports a claim about the rule on IEI. It shows how the rule behaves on a low-volatility bond fund: it trades rarely, holds for a long time and gets its result from one extended position. The strategy hub page for the golden cross lists how many trades the rule made on each of the 59 funds.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2023-05-042024-04-16−5.5%3482024-08-02108
2024-09-162025-01-13−3.6%1192025-04-0178
2026-02-272026-05-19−2.5%81not yet–

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

Three drawdowns, one still open

The deepest drawdown for the strategy was 5.5%. It began at the peak on 2023-05-04, reached its low on 2024-04-16 and recovered on 2024-08-02. That is 348 days down and 108 days back. It straddles the two trades: the first trade ended in August 2023 at a loss, the account sat in cash from then until 2024-01-02, and the second trade began in a fund that was still below its earlier level. The drawdown therefore reflects both a losing trade and a stretch spent in cash waiting for a signal.

The second drawdown was 3.6%, from 2024-09-16 to a low on 2025-01-13, recovered on 2025-04-01 after 78 days. It happened during the long hold. The third began on 2026-02-27, reached a low of 2.5% on 2026-05-19 and has not recovered. The golden cross exited on 2026-06-17, after that low, and the account has been in cash since then, so the open drawdown is a marker of where the account stands compared with its earlier peak and no longer reflects a position.

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2022-10-20 and reached 13.8%. It took 654 days to reach the low and 1,092 days to recover, with the recovery date on 2025-10-16. The golden cross was in cash for the whole of that decline. The fund's own drawdown figure of 14.21% on the hub-page measure and the 1,201 sessions spent below the peak are for the unmanaged fund, and they are the basis for the comparison. A maximum drawdown of 5.5% against 13.8% is the main argument for the rule on this fund.

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.1%−5.5%$10,6440.40
5 basis points1.1%−5.6%$10,6250.38
10 basis points1.0%−5.7%$10,5950.37

Costs barely register

With 4 fills in the window, slippage changes little. At 5 basis points per fill the CAGR is 1.1% and the final value is $10,625, against $10,644 in the headline. At 10 basis points the CAGR is 1.0% and the final value is $10,595. The maximum drawdown moves from 5.5% to 5.6% and then 5.7%, and the Sharpe ratio goes from 0.40 to 0.38 and 0.37.

The rule trades rarely, and IEI has an average daily dollar volume of $172,230,207 and a median minute volume of 1,292 shares, so an order of this size is small against its liquidity. The cost runs say that the result does not depend on the assumption of free fills. They do not say anything about spreads on a day of stress, and the headline run is still a backtest at the bar price.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules1.1%−5.5%250%$10,644
SMA 40/2000.8%−5.6%250%$10,489
SMA 50/1500.1%−5.3%540%$10,061
SMA 60/2501.0%−5.5%250%$10,588

What the three variants change

Three variants change the moving-average lengths. SMA 40/200 produced a CAGR of 0.83% and $10,489, with 2 trades. SMA 60/250 produced 1.00% and $10,588, with 2 trades, which is close to the published 50/200. SMA 50/150 produced 0.11% and $10,061, with 5 trades and 2 wins.

The first two variants take nearly the same trades as the published rule, so they give similar results. The slower filter was close to the published rule in return and in drawdown, at 5.45% against 5.51%. The faster slow average, 150 days, crosses more often. It made 5 trades instead of 2 and returned much less, with a Sharpe ratio of 0.05. On a fund with a range of 0.25% a day, a shorter long average picks up more of the small swings that come with no follow-through, and each of those costs a bit.

The published 50/200 has the highest CAGR of the four versions. That says little about whether it is the right setting, since the window is short and the three alternatives are close to each other. Three variants cannot map the parameter surface. They do show that the result is stable when the lengths move a little and weaker when the long average is cut by a quarter.

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

Why a slow trend rule suited a short-duration Treasury fund

IEI lost 2.25% over the whole window and had a CAGR of a loss of 0.39%, with a maximum drawdown of 14.21% from 2021-01-04 to 2022-10-20 and a recovery on 2025-10-16. That is a fund that dropped in one clear stretch and then rose slowly. A rule built on the 50-day and 200-day averages is suited to a path like this, because it gives a few clean signals when a trend persists for months.

The fund spent 59.2% of sessions above its 200-day average and crossed that average 42 times. The 42 crossings of the 200-day average are many more than the golden cross's 4 fills, which shows what the slower 50/200 comparison filters out: a fund that hovers around its long average generates dozens of price crossings, and the golden cross waited for the two averages themselves to cross.

The daily numbers are small. Only 48.2% of sessions were up days. The average up day was 0.22% and the average down day was 0.21%. The largest gain was 1.45% on 2022-11-10 and the largest loss was 1.09% on 2022-06-13. The average intraday range was 0.25% and the average overnight gap was 0.16%. Intraday returns accounted for a log return of a loss of 6.95% and overnight returns for a gain of 4.78%, which means that holding through the close was where the fund made money.

RSI statistics show little edge for a dip-buying approach. The 14-day RSI was below 30 in 64 sessions, with a median five-day forward return of a loss of 0.11% and a median 20-day return of a loss of 0.65%, against baselines of a loss of 0.03% and a gain of 0.04%. A rule that buys weakness would have bought into those. The 20-day drawdown of 10% never occurred in the window, with 0 events, which is why the dip buyer on IEI and the momentum breakout on IEI both made no trades and show a CAGR of 0.0%.

The fund's correlation to TLT was 0.80, with a beta of 0.24, and to SPY 0.08. Its closest relatives were IEF at 0.97, AGG and BND at 0.94, UST at 0.91 and IGIB at 0.89. TBF at minus 0.80 was its opposite. The fund moved with bonds and had almost no link to equities. Its decline in 2022 was long and shallow, and the 50/200 filter was on the sidelines throughout.

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 golden cross compares with other rules on IEI

The trend with trailing stop led the 12 templates on IEI with a CAGR of 1.43% and a maximum drawdown of 5.2%. The RSI(2) snapback was second at 1.42% with a drawdown of 6.87%. The SMA 10/50 trend was third at 1.24% with a drawdown of 3.21%, the shallowest of the top four. The golden cross was fourth at 1.09% with 5.51%. The 200-day regime filter followed at 1.03% and 4.62%, and the EMA 12/26 trend was sixth at 0.87%. All six are trend or reversion rules that avoided the 2022 decline.

Below them, the dip buyer and the momentum breakout made no trades. The RSI mean reversion lost 0.2% a year, the weekly 7% target lost 0.26%, the 3-month momentum lost 0.59% and the monthly cycle lost 0.84% with a drawdown of 15.0%. The SMA 10/50 trend on IEI had the shallowest drawdown among the top group, and the 200-day regime filter on IEI is the closest relative of the golden cross, since it also uses the 200-day average.

Among the seven bond funds the golden cross made the most on SGOV at 3.22%, with no round trips, which is a cash-like fund. IGIB made 1.84% with 3 round trips, IEI made 1.09% with 2, AGG made 0.78% and BND 0.72%, each with 5 round trips, IEF lost 0.29% and TLT lost 2.46%. TLT had the deepest drawdown at 20.58%. The golden cross on IGIB and the golden cross on IEF are the nearest comparisons. IEI's drawdown of 5.51% was the shallowest of the funds that traded.

The limit of this test is one fund and one window of 1,444 sessions with 2 closed trades. It shows what the golden cross did on IEI between 2021-01-04 and 2026-10-02. The headline run has no fees or slippage, the results are hypothetical, and none of this forecasts how the rule would behave in another rate environment.

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

Over 2021-01-04 to 2026-10-02, golden cross on IEI returned 1.1% annualized vs −0.4% for buy-and-hold: it beat buy-and-hold by 1.5% per year, with a maximum drawdown 8.3 points shallower than holding (5.5% vs 13.8%).

How many trades did it make?

2 completed round trips over 5.7 years (4 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 the golden cross beat buy-and-hold on IEI?

Yes, on this window. The golden cross returned 1.1% a year and ended at $10,644, while buy-and-hold lost 0.4% a year and ended at $9,793. The maximum drawdown was 5.5% against 13.8%. Most of the gap came from the rule holding cash through 2021 and 2022.

How many trades did the golden cross make on IEI?

Two closed round trips. The first ran from 2023-03-20 to 2023-08-16 and lost 2.4%. The second ran from 2024-01-02 to 2026-06-17 and gained 9.2%. The rule held a position on 49.8% of trading days.

Why did the golden cross make nothing in 2021 and 2022?

The 50-day average was not above the 200-day average in those years, so the rule stayed in cash. IEI lost 2.5% in 2021 and 9.3% in 2022 for a buy-and-hold investor, so being in cash was the reason the rule finished ahead.

Do costs change the golden cross result on IEI?

Very little. With 5 basis points of slippage per fill the final value is $10,625, and with 10 basis points it is $10,595, against $10,644 without slippage. The rule made only 4 fills.

Which moving-average settings did better on IEI?

The published 50/200 returned 1.09% a year. SMA 60/250 returned 1.00%, SMA 40/200 returned 0.83% and SMA 50/150 returned 0.11% with 5 trades. The longer settings behaved like the published rule, and the shorter long average traded more and earned less.

Which strategy did best on IEI?

The trend with trailing stop had the highest CAGR at 1.43%, then the RSI(2) snapback at 1.42% and the SMA 10/50 trend at 1.24%. The golden cross ranked 4th of 12 at 1.09%. The differences among the top six are small.

Related

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