20-Day Momentum + Trailing Stop on IAU
iShares Gold Trust: physical gold exposure, a common crisis hedge. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The momentum breakout template bought IAU six times in the test and one of those trades made nearly all of the money. A 560-day position from 2024-04-16 to 2025-10-28 returned 64.73%. The other five trades returned 3.74%, 3.33%, -7.77%, -3.17% and -5.54%. The whole run took $10,000 to $14,798, a CAGR of 7.06%, while buy-and-hold on IAU reached $20,857 at 13.66% a year. The maximum drawdown was 18.54% against 26.16% for holding the fund, and the Sharpe ratio was 0.58 against 0.80.
The rules are two lines. A 20-day return over +10% triggers a buy at the open using 98% of the sleeve. After that a managed trailing stop trails 10% under the position's high-water mark. There is no profit target, so a position stays open until the stop is hit. The sleeve held a position on 48.1% of trading days, with an average hold of 168.3 days. Three of six round trips won, and the average win of 23.93% against an average loss of -5.49% gave a profit factor of 3.28.
IAU holds physical gold. The test window runs from 2021-01-04 to 2026-10-02 and covers a large rally in 2025 and a sharp reversal in 2026. The template ranks ninth of 12 on IAU, and IAU ranks 16th of 59 funds for this template. Over all 59 funds this template's median CAGR is 0%. A 7.06% result is a good one for the rule, though it still trails the fund.
Only IAU is traded, with no margin, over one 5.74-year window, and the headline run applies no fees or slippage. Six trades is a small sample, and one trade carries most of the weight.
Year by year
| Year | momentum breakout | buy & hold |
|---|---|---|
| 2021 | 0.0% | −6.0% |
| 2022 | −5.7% | −0.6% |
| 2023 | 1.5% | 12.6% |
| 2024 | 9.9% | 26.3% |
| 2025 | 48.5% | 62.9% |
| 2026 | −5.3% | −3.9% |
How the years split
The rule beat buy-and-hold in 2021 and trailed it in the five years after. In 2021 the strategy was flat at 0.0% while IAU lost 6.0%, a lead of 6 points. In 2022 it lost 5.7% against 0.6% for the fund, in 2023 it gained 1.5% against 12.6%, in 2024 9.9% against 26.3%, in 2025 48.5% against 62.9%, and in 2026 so far it lost 5.3% against 3.9%.
The first buy came on 2022-03-08, well into the window. The rule needs a 20-day gain above 10%, and gold did not produce one in 2021. Sitting in cash for more than a year cost nothing against a fund that lost 6.0% that year, and the fund's first drawdown of 13.6% from 2021-01-05 to 2021-03-08 passed without the sleeve.
The first position was a loss. The entry at $38.36 on 2022-03-08 was stopped out at $35.38 on 2022-05-02, a loss of 7.77% over 55 days. That entry came at the peak of the fund's own drawdown, which ran from 2022-03-08 to 2022-09-26 and reached 20.53%. The rule bought strength on the day the strength ended. The stop limited the damage to 7.77%, and the sleeve was in cash for the lower prices of the summer.
In 2023 the sleeve gained 1.5% on a trade bought on 2022-12-02 and sold on 2023-09-29. The fund returned 12.6% in the year. The hold lasted 301 days and returned only 3.74%, so the position stayed open through the whole stretch without much gain.
The 2024 and 2025 rows hold the main trade. The 2024-04-16 entry at $44.97 was held through the whole run of the gold rally and sold at $74.07 on 2025-10-28. The rule earned 9.9% in 2024, which trailed the fund's 26.3% because the entry came in mid-April, and 48.5% in 2025 against 62.9%.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2022 | 0.0% | 0.0% | −3.9% | −2.1% | −1.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 2.1% |
| 2023 | 5.6% | −5.2% | 7.8% | 0.9% | −1.3% | −2.2% | 2.3% | −1.3% | −4.3% | 0.0% | 0.0% | 0.0% |
| 2024 | 0.0% | 0.0% | 0.0% | −3.6% | 1.6% | −0.1% | 5.2% | 2.1% | 5.0% | 4.3% | −3.1% | −1.4% |
| 2025 | 6.6% | 1.9% | 9.2% | 5.4% | −0.1% | 0.4% | −0.6% | 4.9% | 11.6% | 1.8% | 0.0% | 0.0% |
| 2026 | 3.3% | 11.1% | −12.8% | 0.0% | 0.0% | 0.0% | 0.0% | 1.5% | −6.8% | 0.0% | – | – |
Month by month
The monthly grid has long blank stretches. There were no positions from January 2021 to February 2022, from October 2023 to March 2024, in November and December 2025, and from April to July 2026. Blank months read 0.0%.
The best month was September 2025 at 11.59%, with March 2025 at 9.21% and February 2026 at 11.14% behind it. The worst was March 2026 at -12.8%. That month shows the character of a momentum rule. The strategy bought on 2026-02-02 at $88.92 after a 20-day gain above 10% and held through a February that returned 11.14%. March then gave back more than February had made, and the trailing stop sold on 2026-03-19 at $86.10, for a trade loss of 3.17%. The fund's high on 2026-01-29 began its 26.16% drawdown, and the strategy's own peak came on 2026-03-02.
The last trade of the window shows the same pattern in a smaller form. The entry on 2026-08-18 at $82.42 was sold on 2026-09-28 at $77.86 for -5.54%, and the strategy's September return was -6.83%. August returned 1.53%.
Calendar patterns in the fund are not sharp. IAU's average January return across five years was 4.39% and its average June return across six years was -3.72%. The strategy's June returns were 0.0% in 2021, 2022 and 2026, because it held no position, -2.17% in 2023, -0.12% in 2024 and 0.36% in 2025. Five or six observations for each month cannot support a seasonal rule, and the strategy has none.
Every trade
momentum breakout on IAU made 6 closed round trips, an average hold of 168 days, an average winner of 23.93%, an average loser of −5.49%, a profit factor of 3.28, a longest losing streak of 2. It held a position at the close on 48.1% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2022-03-08 | $38.36 | 2022-05-02 | $35.38 | −7.8% | 55 |
| 2022-12-02 | $33.87 | 2023-09-29 | $35.14 | 3.7% | 301 |
| 2024-04-16 | $44.97 | 2025-10-28 | $74.07 | 64.7% | 560 |
| 2026-01-22 | $90.93 | 2026-01-30 | $93.96 | 3.3% | 8 |
| 2026-02-02 | $88.92 | 2026-03-19 | $86.10 | −3.2% | 45 |
| 2026-08-18 | $82.42 | 2026-09-28 | $77.86 | −5.5% | 41 |
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 six trades
The first trade lost 7.77% in 55 days, from 2022-03-08 to 2022-05-02. The second ran from 2022-12-02 at $33.87 to 2023-09-29 at $35.14 for 3.74% over 301 days. The third was the large one: 2024-04-16 at $44.97 to 2025-10-28 at $74.07, up 64.73% in 560 days. Split and dividend adjustment makes these prices lower than the quotes shown on the day.
The last three trades came in 2026 and look different from the first three. The first of them ran from 2026-01-22 at $90.93 to 2026-01-30 at $93.96 for 3.33% in 8 days. The stop sold it on the day of the fund's worst session in the window, a drop of 10.09% on 2026-01-30. The next trade started on 2026-02-02 at $88.92 and lost 3.17% over 45 days. The last started on 2026-08-18 at $82.42 and lost 5.54% in 41 days.
The median return was 3.33% and the median hold was 55 days, against an average hold of 168.3 days. The gap between those two holds shows how lopsided the sample is. One position held for 560 days and the other five for between 8 and 301. The shortest was 8 days.
By exit year there was one round trip in 2022 with no win, one in 2023 with one win, one in 2025 with one win, and three in 2026 with one win. The best run was 3 wins in a row and the worst was 2 losses in a row.
Because the stop sits 10% under a high-water mark that never moves down, a position gives back up to 10% of its best close before it exits, plus any gap. The first trade shows this: it lost 7.77% from entry, because the high-water mark had risen a little above the entry before the stop was reached. The 64.73% winner exited about 10% below its peak close, and that is where the exit on 2025-10-28 came from. The sleeve's 10.06% drawdown ran from 2025-10-20 to that exit.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2026-03-02 | 2026-09-28 | −18.5% | 210 | not yet | – |
| 2023-05-04 | 2024-06-07 | −12.8% | 400 | 2024-09-24 | 109 |
| 2025-10-20 | 2025-10-28 | −10.1% | 8 | 2026-01-29 | 93 |
Buy-and-hold's deepest drawdown ran from 2026-01-29 to 2026-07-16 and reached −26.2%.
Drawdowns for the sleeve and the fund
The sleeve's worst drawdown was 18.54%, from a peak on 2026-03-02 to a low on 2026-09-28, 210 days later, and it had not recovered by 2026-10-02. The second was 12.78%, from 2023-05-04 to 2024-06-07 after 400 days, recovered on 2024-09-24. The third was 10.06%, from 2025-10-20 to 2025-10-28, recovered on 2026-01-29 after 93 days.
The second drawdown is a long one. It sits inside the 301-day trade from 2022-12-02 to 2023-09-29 and extends past it, because the sleeve held cash after the exit and equity did not reach its old high until September 2024. A trailing stop that sells in the middle of a flat spell leaves the account below its peak for a year.
Buy-and-hold on IAU had a deeper record. Its worst drawdown was 26.16%, from 2026-01-29 to 2026-07-16, still open at the end of the data. Its second was 20.53% from 2022-03-08 to 2022-09-26, which took until 2023-12-01 to recover, 431 days after the low. Its third was 13.6% in early 2021. The strategy's worst drawdown overlaps the fund's 2026 decline, and was shallower because the stop took the sleeve out at $86.10 on 2026-03-19, though it re-entered in August and lost again.
The sleeve's 10.06% drawdown over 8 days in October 2025 matches the fund's own worst day pattern: IAU fell 6.17% on 2025-10-21 and 10.09% on 2026-01-30. A trailing stop is placed at a percentage under the high, and a single large down day can pass through it. The limit of the test is its length. The drawdowns shown come from a window that includes a large gold rally and the unwinding of part of it.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 7.1% | −18.5% | $14,798 | 0.58 |
| 5 basis points | 7.0% | −18.7% | $14,721 | 0.58 |
| 10 basis points | 6.8% | −18.8% | $14,619 | 0.57 |
Costs
The strategy made 12 fills, 2 per round trip. With 5 basis points of slippage per fill the CAGR was 6.97%, the maximum drawdown 18.72% and the final value $14,721. With 10 basis points the CAGR was 6.84%, the drawdown 18.84% and the final value $14,619. The headline run, with no costs, ended at $14,798.
The cost effect is small because there are few trades. IAU trades $383,606,697 on an average day, with 7,446 shares in the median minute, and a $10,000 sleeve is tiny next to that. A strategy that made 12 round trips instead of 6 would be exposed to more of the same cost.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 7.1% | −18.5% | 6 | 50% | $14,798 |
| 5% trailing stop | 1.5% | −17.8% | 12 | 42% | $10,905 |
| 15% trailing stop | 13.5% | −20.6% | 3 | 33% | $20,668 |
| 20% return entry | −1.8% | −9.7% | 1 | 0% | $9,034 |
The trailing stop and entry settings
The three variants show how much the result depends on the stop. A 5% trailing stop returned 1.52% with a drawdown of 17.82%, a final value of $10,905, and 12 trades with 5 wins. The tighter stop is hit by ordinary movement, so it exits and re-enters more often. A 15% trailing stop returned 13.48%, with a 20.58% drawdown, $20,668 at the end, and 3 trades with 1 win. That version came close to buy-and-hold's 13.66% CAGR, with a drawdown of 20.58% against the fund's 26.16%.
A wider stop kept the 2024 to 2025 position through the same rally and kept the sleeve in the fund for the whole run. The published 10% stop returned 7.06%. The widening is the only change that closed the gap to the fund, and it did so by trading less: 3 trades against 6.
The entry variant raised the required 20-day gain to 20%. That version made one trade, which lost, for a CAGR of -1.75%, a drawdown of 9.66% and a final value of $9,034. The fund rarely rose 20% in 20 sessions, so the rule found a single entry.
Three variants on one fund are a small test. The 15% stop won here, in a window with one huge trend, and its result depends mostly on a trade that is also in the published run. The 5% stop shows the opposite case. The table shows that the stop width decides whether the template captures a trend or churns, and each setting has only a handful of trades behind it.
How IAU behaved
| Measure | IAU |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 110.3% |
| Annualized volatility | 18.3% |
| Deepest drawdown | −26.4% (2026-01-29 to 2026-07-16) |
| Up days | 53.3% |
| Average daily range | 0.98% |
| Average overnight gap | 0.61% |
| Correlation to SPY | 0.16 |
| Correlation to QQQ | 0.16 |
| Correlation to TLT | 0.21 |
| Sessions above the 200-day average | 78.0% |
| Crossings of the 200-day average | 44 |
| Falls of 10% or more from a 20-day high | 7 |
How IAU suited a momentum rule
IAU returned 110.28% over the window, a CAGR of 13.82%, with annualized volatility of 18.26%. IAU lost 6.12% in 2021 and 0.57% in 2022, then gained 12.83% in 2023 and 26.84% in 2024. 2025 was the big year at 63.89%, and 2026 so far is -3.96%. Most of the gain came in two years, which is why a rule that was in cash through 2021 and most of 2022 could still earn a solid result.
Gold's correlation to the stock market was low. Its beta to SPY was 0.18 and its correlation to SPY 0.16, to QQQ 0.16 and to TLT 0.21. The funds most correlated with it were UDN at 0.44, FXE at 0.4 and QAI at 0.34. IAU closed over its 200-day average on 77.99% of sessions and crossed it 44 times. Frequent crossings point to chop, and a rule that waits for a 10% burst skips most of it.
Momentum exists in the fund's data, but it is concentrated. A 10% fall from a 20-day high occurred 7 times, covering 20 days. The worst days, -10.09% on 2026-01-30 and -6.17% on 2025-10-21, were both single-session shocks in the strategy's period of exposure, and a trailing stop cannot sell before such a day. The best days were 6.23% on 2026-02-03, which the sleeve caught after buying on 2026-02-02, and 4.13% on 2026-08-05, which it missed because it was in cash until 2026-08-18.
About 108.93% of the fund's log return arrived overnight and the intraday log return was -6.66, so gold earned its return across the gaps. The strategy buys at the open, so it takes the overnight move after a signal.
No other commodity fund is among the 59, which leaves IAU without category peers. The template's median CAGR across all 59 funds is 0%. At 7.06%, IAU is better than most funds for this template.
The rules
Buy after a +10% four-week burst and let a 10% trailing stop manage the exit.
- WHEN the market opens · IF not invested AND the 20-day return > +10% · THEN buy with 98% of the sleeve
- WHILE invested · a managed trailing stop follows 10% below the position's high-water mark
Momentum entry, trailing-stop exit. A +10% gain over 20 sessions marks a burst of momentum. The template buys the strength and exits on a 10% trailing stop that ratchets up beneath the highest close and never moves down. There is no profit target, so winners run until the trail is hit.
Good for: high-momentum assets where trends extend, such as semiconductor and leveraged tech ETFs.
Watch out: buying strength means buying high; when a burst immediately reverses, the trail exits about 10% below the entry.
Where the rule sat among the templates on IAU
The weekly 7% target led on IAU with 16.35% and a 27.66% drawdown. Three rules made 12.5% or more. Trend with a trailing stop made 13.09% at a 30.44% drawdown, the 200-day regime filter 12.98% at 20.02%, and EMA 12/26 trend 12.5% at 14.97%. Below those, the monthly cycle made 11.85%, the golden cross 10.79% and the SMA 10/50 trend 10.75%. 3-month momentum returned 8.51%.
The momentum breakout, at 7.06%, ranked behind all of them. Only three rules trailed it: RSI mean reversion with 4.99%, the RSI(2) snapback with 4.74% and the dip buyer with -0.78%. The trend-following rules all did better than the momentum breakout on IAU. The difference is the entry. The trend rules were in the fund through the long rise, while the breakout needed a 20-day burst of 10% and had to wait for one.
The momentum breakout's drawdown of 18.54% was the third-shallowest of the twelve templates on IAU. Only the EMA 12/26 trend, at 14.97%, and RSI mean reversion, at 15.68%, were shallower, and the EMA rule also earned more. The weekly rule earned more with a deeper drawdown.
All of this is one fund in one window. The template fits assets that trend after a burst, and IAU supplied one such trend and several bursts that reversed. Nothing here projects what the rule does on the next burst.
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 momentum breakout beat buy-and-hold on IAU?
Over 2021-01-04 to 2026-10-02, momentum breakout on IAU returned 7.1% annualized vs 13.7% for buy-and-hold: it trailed buy-and-hold by 6.6% per year, with a maximum drawdown 7.6 points shallower than holding (18.5% vs 26.2%).
How many trades did it make?
6 completed round trips over 5.7 years (12 fills), with 50% of round trips closing profitably.
How does the trailing stop work in the backtest?
The stop sits 10% below the highest price since entry and only ratchets up. When a bar trades through it, the position sells at the stop, or at the open if the price gaps below it. Trailing-stop exits can be backtested now; deploying them live is not available yet.
Did the momentum breakout beat buy-and-hold on IAU?
No. It returned 7.06% a year against 13.66% for buy-and-hold, ending at $14,798 against $20,857. Its maximum drawdown was shallower, 18.54% against 26.16%. It led the fund only in 2021, when it held cash.
How many trades did the rule make on IAU?
Six closed round trips with 12 fills. Three won. One trade, from 2024-04-16 to 2025-10-28, returned 64.73%, and the average hold was 168.3 days.
Why did one trade matter so much?
The 560-day trade returned 64.73%, while the other five ranged from -7.77% to 3.74%. The average win was 23.93%, and the average loss was -5.49%. Without that trade the result would look very different.
What happens with a tighter or wider trailing stop?
A 5% stop returned 1.52% with 12 trades, and a 15% stop returned 13.48% with 3 trades. The published 10% stop returned 7.06%. The wider stop stayed in the 2024 to 2025 trend and traded less.
Do costs change the result?
Only slightly. With 5 basis points per fill the final value was $14,721, and with 10 basis points it was $14,619. The headline run ended at $14,798.
What was the worst stretch for the strategy?
An 18.54% drawdown from 2026-03-02 to 2026-09-28, which had not recovered by the end of the data. It included a 3.17% losing trade and a 5.54% losing trade. Buy-and-hold fell 26.16% in a similar period.
Related
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.