Learn › Strategies › SMA-200 Trend + 15% Trailing Stop › IGIB

SMA-200 Trend + 15% Trailing Stop on IGIB

iShares 5-10 Year Investment Grade Corporate Bond ETF: investment-grade corporate credit. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.

Result: trend + trailing stop on IGIB turned $10,000 into $10,034 (0.3% total, 0.1% CAGR): it trailed buy-and-hold by 0.1% per year, with a maximum drawdown 2.3 points shallower than holding (17.8% vs 20.1%).

The SMA-200 trend rule with a 15% trailing stop made $34 on IGIB between 2021-01-04 and 2026-10-02. A $10,000 account ended at $10,034, a total return of 0.34% and a CAGR of 0.06%. Buying and holding the fund ended at $10,121, a CAGR of 0.21%. The rule finished about $87 behind holding, and its maximum drawdown was 17.82% against 20.13% for holding.

IGIB is the iShares 5-10 Year Investment Grade Corporate Bond ETF. Over the window it returned 1.26% in total with annualized volatility of 6.29%, which is the profile of a bond fund that went through a rate shock and got most of the way back. The rule has two parts. It buys at the open when the previous close is above the 200-day average, and it sells only when a stop 15% below the position's high-water mark is hit. On this fund that produced 1 closed round trip, a loss of 14.3%, and a second trade that has been open since 2022-12-14.

The result is close to buy-and-hold for a plain reason: for most of the window the rule was holding the fund. Exposure was 76.8%. The two stretches in cash, from the start of the window to 2021-10-28 and from 2022-06-13 to 2022-12-14, account for most of the difference in the year table. Background on the template sits on the trend plus trailing stop hub, and the fund has its own IGIB page. Everything here comes from a single 2021 to 2026 window, with decisions once a day and no slippage in the headline numbers.

0.1%CAGR
0.2%buy & hold CAGR
−17.8%max drawdown
0.04Sharpe ratio
1round trips
0%win rate
■ trend + trailing stop   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

Yeartrend + trailing stopbuy & hold
2021−0.1%−1.6%
2022−15.7%−13.6%
20239.0%8.9%
20243.4%3.4%
20259.4%9.3%
2026−3.3%−3.3%

Year by year against holding

The rule returned -0.1% in 2021, -15.7% in 2022, 9% in 2023, 3.4% in 2024, 9.4% in 2025 and -3.3% in 2026 to date. Holding returned -1.6%, -13.6%, 8.9%, 3.4%, 9.3% and -3.3%.

The two columns agree to within a tenth of a point in 2023, 2024, 2025 and 2026, which is what two positions in the same fund should do. The gaps were +1.5 points in 2021, -2.1 in 2022, +0.1 in 2023, 0 in 2024, +0.1 in 2025 and 0 in 2026. The rule beat holding in 2021, 2023 and 2025, and the second and third of those margins are a tenth of a point each.

2021 is the year the rule did something different. Every month from January to September is 0.0%, because the price was below its 200-day average and the rule had no position. It entered on 2021-10-28 at an adjusted $48.79, and the last three months show -0.2%, -0.2% and +0.3%. Holding lost 1.6% over the full year. The cash months saved 1.5 points relative to holding, and that saving is the largest positive gap in the table.

2022 is where the rule lost ground. The fund fell sharply that year, with a worst day of -1.76% on 2022-06-13. The rule lost 15.7% against 13.6% for holding, because it held a position from the start of the year, took the full early decline, and only sold when the trailing stop triggered on 2022-06-13, after the position had lost 14.3%. The months January to June read -2.4%, -1.5%, -3.1%, -4.6%, +1.2% and -4.2%. Then July to November read 0.0%, because the rule was in cash, while holding lost further in September 2022, -4.67% in that month alone.

The stop did its job in one sense: it ended the loss at 14.3% on a fund that kept falling through the autumn. It did not prevent the loss, because a trailing stop that sits 15% below the peak lets the first 15% happen. This is the cost the template's description names when it says every exit gives back 15% from the peak.

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%−0.2%−0.2%0.3%
2022−2.4%−1.5%−3.1%−4.6%1.2%−4.2%0.0%0.0%0.0%0.0%0.0%−2.1%
20234.2%−3.1%3.1%0.7%−1.2%0.0%0.4%−0.6%−2.5%−1.7%5.7%4.0%
20240.0%−1.3%1.3%−2.2%2.0%0.7%2.5%1.6%1.6%−2.4%1.3%−1.5%
20250.7%1.9%0.0%0.4%0.4%1.8%0.1%1.3%1.2%0.3%0.9%−0.1%
20260.2%1.3%−2.0%0.6%0.4%0.1%−1.2%0.2%−3.0%0.0%––

The months

The month table has long runs of zeros at both ends of the first two years, 2021 from January to September and 2022 from July to November. The rest is small numbers of one to five percent in either direction, which is the normal range of a bond fund.

The best month was November 2023 at +5.71%, and holding's best month was the same one at +5.68%. The worst was April 2022 at -4.64%, against -4.67% for holding in September 2022. In November 2023 the fund had its strongest stretch of the window, and the rule collected it fully because it had been in the position since 2022-12-14. The sequence of 2023 months is 4.2%, -3.1%, 3.1%, 0.7%, -1.2%, 0.0%, 0.4%, -0.6%, -2.5%, -1.7%, 5.7% and 4.0%. The rule lost money in each month from August to October and then gained in November and December, and the position sat through all of it.

2024 and 2025 are quieter. In 2024 the months ran between -2.4% in October and +2.5% in July. In 2025 only December was negative, at -0.1%, and the rest ran from 0.0% to 1.9%. 2026 has two weak months, March at -2.0% and September at -3.0%.

The fund's month-of-year averages show November as the standout, +2.58 across 5 observations, with September at -1.44 and October at -0.96. The rule's own September and October results, -2.5% and -1.7% in 2023, -3.0% and 0.0% in 2026, follow that seasonal weakness, though five or six observations per month is a small base for a pattern.

Every trade

trend + trailing stop on IGIB made 1 closed round trip and one position still open at the end of the test, an average hold of 228 days, an average loser of −14.30%, a longest losing streak of 1. It held a position at the close on 76.8% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-10-28$48.792022-06-13$41.81−14.3%228
2022-12-14$42.86open–17.0%–

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.

Two trades in six years

The trade list has two lines. The first trade entered on 2021-10-28 at $48.79 and exited on 2022-06-13 at $41.8115 for -14.3% over 228 days. It is the only closed round trip, so the win rate is 0% and the profit factor is 0. The second trade entered on 2022-12-14 at $42.86 and has not exited. It was marked at +17.02% on 2026-10-02.

The prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. The second entry at $42.86 was below the first entry at $48.79, and the position gained 17.02% from there.

Seen as one account, a loss of 14.3% followed by a gain of 17.02% nets out to a small positive number, and the account's total return was 0.34%. The rule came out nearly flat because the stop cut the first loss at 14.3% and the re-entry then caught a recovery. The entry was a bet on the 200-day average, and the exit was a bet on the stop. Neither is informative on its own with one closed trade.

The headline statistics are not meaningful at this sample size. A 0% win rate and a profit factor of 0 come from one trade, and the average hold of 228 days is that trade's length. The open trade is the larger part of the story, and it is not in the win rate. The closed list shows one loser, while the equity curve ended slightly higher than it started.

The second trade also shows the limit of a 15% stop on a low-volatility fund. IGIB's average daily range was 0.37% and its largest daily drop was -1.76%. A decline of 15% from a peak on this fund takes months. Since 2022-12-14 the fund's price has not fallen that far from any high, so the stop has stayed silent for the whole stretch.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2021-11-052023-10-19−17.8%7132025-08-01652
2026-02-272026-09-30−4.8%215not yet–
2025-10-282025-11-05−1.2%82025-11-2621

Buy-and-hold's deepest drawdown ran from 2021-08-03 to 2022-10-20 and reached −20.1%.

Drawdown: the 2021 to 2023 stretch

The deepest drawdown was 17.82%. It began at a peak on 2021-11-05, a week after the first entry, and reached its low on 2023-10-19, 713 days later. It recovered on 2025-08-01 after another 652 days. That is a long time under water for a position that was in cash for six of those months.

The low in October 2023 comes well after the stop-out in June 2022. The second trade entered on 2022-12-14 at $42.86, and the drawdown figure shows the account lower on 2023-10-19 than it was after the stop-out. The fund's own low came on 2022-10-20, a year earlier, so the rule's trough reflects the position it bought after that low. The monthly figures of -2.5% for September 2023 and -1.7% for October 2023 are the final leg.

Two later drawdowns are small. One was 4.8% from 2026-02-27 to 2026-09-30, not yet recovered, and the other was 1.21% from 2025-10-28 to 2025-11-05, recovered on 2025-11-26. Holding shows the same 2026 decline at 4.78% over the same dates.

Holding's maximum drawdown was 20.13%, from 2021-08-03 to 2022-10-20, recovering on 2025-06-26 after 980 days. The rule's was 2.31 points shallower. The two numbers describe the same bond-market decline, and the rule's earlier cash days and the stop together cut about two points from it. The Sharpe ratio was 0.04 for the rule and 0.07 for holding, which means neither earned much return for the volatility.

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.1%−17.8%$10,0340.04
5 basis points0.0%−17.9%$10,0210.03
10 basis points0.0%−18.0%$10,0080.03

Costs

With 3 fills in the whole window, costs barely register. At 5 basis points per fill the CAGR was 0.04%, the drawdown 17.91% and the final value $10,021. At 10 basis points the CAGR was 0.01%, the drawdown 18.01% and the final value $10,008. The headline was $10,034.

The Sharpe ratio moved from 0.04 to 0.033 and then 0.028. At 10 basis points the account was a few dollars above its starting value, so the margin between a gain and a loss here is smaller than the slippage assumption. IGIB had an average daily dollar volume of $90,382,863 and a median minute volume of 1,684 shares. A small account buys at the open without a visible footprint, and the test does not cover larger sizes.

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules0.1%−17.8%10%$10,034
10% trailing stop1.0%−13.1%10%$10,606
20% trailing stop−1.0%−22.5%10%$9,462
25% trailing stop0.5%−19.2%0–$10,273

The width of the stop

Three variants changed the trailing stop. A 10% stop gave a CAGR of 1.03%, a drawdown of 13.12% and a final value of $10,606, with 1 closed trade that lost. A 20% stop gave -0.96%, 22.52% and $9,462, also with 1 closed trade. A 25% stop never triggered. It shows 0 closed trades, a CAGR of 0.47%, a drawdown of 19.24% and a final value of $10,273.

The result is odd at first glance because wider stops are not monotonic. The 10% stop did best and the 20% stop did worst, while the 25% stop sat between them. Each variant is a different path through the same price series. The tighter stop exited earlier in 2022 and re-entered at a better time. The 20% stop held longer into the decline, took a deeper loss, and then re-entered. The 25% stop was never hit, so it was invested from the first entry to the end, and its result is the return of holding from 2021-10-28.

The drawdown column follows the width more closely: 13.12% for 10%, 17.82% for the 15% base, 22.52% for 20% and 19.24% for the 25% version that held throughout. A wider trail permits a deeper loss before the exit, which is its definition. With one or zero closed trades in every variant, the table tells how the stop width changes a single exit and says nothing about statistical reliability.

How IGIB behaved

MeasureIGIB
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold1.3%
Annualized volatility6.3%
Deepest drawdown−20.6% (2021-08-03 to 2022-10-20)
Up days50.0%
Average daily range0.37%
Average overnight gap0.21%
Correlation to SPY0.35
Correlation to QQQ0.34
Correlation to TLT0.84
Sessions above the 200-day average66.3%
Crossings of the 200-day average52
Falls of 10% or more from a 20-day high0

What a bond fund does to a trend stop

IGIB returned 1.26% in total over 1,444 sessions, a CAGR of 0.22%, with annualized volatility of 6.29%. It was up on 49.97% of days. The average up day was 0.3% and the average down day was -0.31%. The average intraday range was 0.37% and the average overnight gap was 0.21%. The fund's own drawdown was 20.62% from 2021-08-03 to 2022-10-20 and it took until 2025-06-26 to recover.

Its correlation to TLT was 0.84 and to SPY was 0.35, with a beta of 0.14 to SPY. It sat above its 200-day average on 66.27% of sessions and crossed it 52 times, a high count for a low-volatility fund. Each crossing is a potential entry for a rule that buys above the 200-day, but the trailing stop means the rule only enters again after it has been stopped out. The 52 crossings therefore did not turn into 52 trades. The 200-day regime filter exits on the average itself and trades far more often.

No day in the data fell more than 1.76%, and the fund never had a 10% drop from a 20-day high. That is why a 15% stop took until June 2022 to trigger. The fund spent months declining by small daily amounts, and a trail needed that much accumulated loss.

RSI(14) was below 30 on 66 sessions. The median 20-day return after them was -1.91%, against a baseline of 0.22%. Oversold readings in this fund tended to be followed by further losses, so dip buying had no help here, and a trend rule with a wide stop acts late.

The rules

Enter when price is above the 200-day average; exit only when a 15% trailing stop is hit.

  1. WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
  2. WHILE invested · a managed trailing stop follows 15% below the position's high-water mark

A hybrid of the regime filter and the trailing stop. The 200-day average decides when to get in, and a 15% trail from the position's high-water mark decides when to get out. Winners can run well past the point where a crossover would have exited, and the position gives back 15% from every peak.

Good for: long trends with moderate pullbacks; the 15% trail is wide enough to survive normal corrections.
Watch out: every exit gives back 15% from the peak, and on choppy assets it re-enters above the 200-day repeatedly after each stop-out.

Rank, peers and limits

Among the 12 templates on IGIB the rule ranked 7th. The EMA 12/26 trend returned 2.35% with a drawdown of 5.33%, the golden cross returned 1.84% with 5.63%, and the SMA 10/50 trend returned 1.73%. These faster exits all had drawdowns under 7%, and this rule's was 17.82%, among the deepest in the group. The moving-average rules exit when an average turns down, and the trailing stop waits for a 15% fall. At the bottom, the RSI mean reversion rule returned -0.48% and the monthly cycle returned -0.27%.

Across all 59 funds the rule had a median CAGR of 2.61%, and IGIB ranked 38th. Among the 7 bond funds the median was -1.08%. SGOV returned 3.22% with no round trips and a drawdown of 0.02%. IEI returned 1.43% and TLT returned -7.11% with 3 round trips and a 38.76% drawdown. BND and AGG returned -1.08% and -1.1%, with drawdowns near 18.7%, which are close to IGIB's.

The sample is short: one stretch of 5.74 years, dominated by the 2022 bond decline, with 1 closed trade and 1 open one. What it records is how a 15% trail behaved on a quiet fund during that stretch.

Run trend + trailing stop on IGIB 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 trend + trailing stop beat buy-and-hold on IGIB?

Over 2021-01-04 to 2026-10-02, trend + trailing stop on IGIB returned 0.1% annualized vs 0.2% for buy-and-hold: it trailed buy-and-hold by 0.1% per year, with a maximum drawdown 2.3 points shallower than holding (17.8% vs 20.1%).

How many trades did it make?

1 completed round trips over 5.7 years (3 fills), with 0% of round trips closing profitably.

Why 15% rather than 10%?

A wider trail survives routine corrections and gives back more at the end. Both numbers are one-field edits in DeployQuant, so you can backtest both and compare.

How did the trend plus trailing stop rule do on IGIB?

It ended at $10,034 from $10,000, a CAGR of 0.06%. Buy-and-hold ended at $10,121, a CAGR of 0.21%. The rule's maximum drawdown was 17.82% against 20.13% for holding.

How many trades did the rule make?

One closed round trip and one open trade. The closed trade entered on 2021-10-28 and exited on 2022-06-13 for -14.3%. The open trade entered on 2022-12-14 at an adjusted $42.86 and was marked at +17.02% at the end of the data.

Why is the win rate 0% if the account made money?

The win rate counts only closed trades. The single closed trade lost 14.3%. The trade that has made 17.02% is still open and left out of the count, and its gain is included in the final equity of $10,034.

Does a tighter or wider stop help on IGIB?

A 10% stop gave a CAGR of 1.03% and a drawdown of 13.12%. A 20% stop gave -0.96% and 22.52%. A 25% stop never triggered and gave 0.47% with a drawdown of 19.24%. Each variant has 1 or 0 closed trades.

Why did the 15% stop take so long to trigger?

IGIB moves slowly. Its average daily range was 0.37% and its worst day was -1.76%, so a 15% fall from a peak takes months. The position that opened on 2021-10-28 was stopped out on 2022-06-13 after losing 14.3%.

Do trading costs matter here?

Very little, since there were 3 fills. At 10 basis points per fill the final value was $10,008, against $10,034 in the headline run. The margin between a small gain and no gain is smaller than the cost assumption.

Which other templates did better on IGIB?

The EMA 12/26 trend returned 2.35% a year, the golden cross returned 1.84% and the SMA 10/50 trend returned 1.73%. All three had drawdowns under 7%, because they exit on an average crossing and not on a 15% fall.

Related

SMA-200 Trend + 15% Trailing Stop on all 59 ETFsfull results table All strategies on IGIB12 templates compared RSI(14) Mean Reversion on IGIBsame ETF, different rulesRSI(2) Dip Snapback on IGIBsame 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.