Learn › Strategies › EMA 12/26 Trend › IAU

EMA 12/26 Trend 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.

Result: EMA 12/26 trend on IAU turned $10,000 into $19,666 (96.7% total, 12.5% CAGR): it trailed buy-and-hold by 1.2% per year, with a maximum drawdown 11.2 points shallower than holding (15.0% vs 26.2%).
12.5%CAGR
13.7%buy & hold CAGR
−15.0%max drawdown
0.89Sharpe ratio
23round trips
48%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−4.3%−6.0%
20223.4%−0.6%
20235.8%12.6%
202413.3%26.3%
202554.1%62.9%
20267.7%−3.9%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%−0.2%7.5%−6.6%0.0%−2.2%−3.3%−0.1%−0.7%1.8%
2022−1.6%4.9%1.4%−2.3%0.0%0.0%0.0%−3.3%0.0%0.0%1.6%2.9%
20235.6%−4.8%2.5%0.9%−0.8%0.0%−0.6%−1.2%−1.0%1.7%2.5%1.3%
2024−1.9%−1.7%8.5%3.0%1.6%−0.6%3.1%2.1%5.0%4.3%−6.6%−3.2%
20254.8%1.9%9.2%5.3%−0.1%0.4%−1.0%1.7%11.5%3.5%5.3%2.1%
202612.3%8.4%−11.4%0.0%0.0%0.0%0.0%2.2%−2.2%0.0%––

Every trade

EMA 12/26 trend on IAU made 23 closed round trips, an average hold of 54 days, an average winner of 9.01%, an average loser of −1.68%, a profit factor of 5.49, a longest losing streak of 2. It held a position at the close on 59.3% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-19$33.762021-06-18$33.820.2%60
2021-08-05$34.452021-08-06$33.68−2.2%1
2021-08-30$34.542021-09-17$33.37−3.4%18
2021-10-21$33.942021-12-01$33.970.1%41
2021-12-28$34.472022-02-02$34.29−0.5%36
2022-02-08$34.642022-04-27$35.943.8%78
2022-08-09$34.142022-08-23$33.01−3.3%14
2022-11-10$33.042023-02-15$34.785.3%97
2023-03-15$36.442023-05-22$37.392.6%68
2023-07-19$37.432023-08-07$36.75−1.8%19
2023-09-05$36.602023-09-07$36.39−0.6%2
2023-09-21$36.302023-09-22$36.470.5%1
2023-09-25$36.422023-09-26$36.08−0.9%1
2023-10-19$36.942024-01-23$38.293.6%96
2024-02-02$38.432024-02-13$37.83−1.6%11
2024-02-29$38.742024-06-11$43.7312.8%103
2024-07-08$44.892024-11-14$48.387.8%129
2024-12-12$50.692024-12-19$49.02−3.3%7
2025-01-13$50.372025-07-10$62.6324.4%178
2025-07-14$63.272025-07-31$62.33−1.5%17
2025-08-06$63.522025-08-20$62.98−0.8%14
2025-08-25$63.412026-03-20$87.6138.2%207
2026-08-07$81.912026-09-16$81.81−0.1%40

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.

Largest drawdowns

PeakLow pointDepthDays to lowRecoveredDays to recover
2026-01-292026-09-14−15.0%228not yet–
2021-06-022022-01-06−13.0%2182024-03-20804
2024-10-302025-01-13−11.1%752025-03-1864

Buy-and-hold's deepest drawdown ran from 2026-01-29 to 2026-07-16 and reached −26.2%.

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)12.5%−15.0%$19,6660.89
5 basis points12.1%−15.1%$19,2470.86
10 basis points11.6%−15.1%$18,8060.83

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules12.5%−15.0%2348%$19,666
EMA 8/2112.8%−15.4%3241%$19,974
EMA 20/5014.8%−22.3%967%$22,035
EMA 12/5013.5%−21.7%1258%$20,711

How IAU behaved

MeasureIAU
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold110.3%
Annualized volatility18.3%
Deepest drawdown−26.4% (2026-01-29 to 2026-07-16)
Up days53.3%
Average daily range0.98%
Average overnight gap0.61%
Correlation to SPY0.16
Correlation to QQQ0.16
Correlation to TLT0.21
Sessions above the 200-day average78.0%
Crossings of the 200-day average44
Falls of 10% or more from a 20-day high7

The rules

Hold while the 12-day exponential average is above the 26-day, the core of the MACD used as a position switch.

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

The 12/26 exponential moving average pair is the core of the MACD indicator. Exponential averages weight recent days more than simple averages, so this crossover reacts faster than an SMA pair of the same length. Used as a long/flat switch, it gives you a position you can hold and measure.

Good for: traders who like MACD logic but want it expressed as a simple, testable long/flat rule.
Watch out: faster reaction means more trades and more whipsaws than a 50/200 cross; check the trade count on each backtest page.

Run EMA 12/26 trend on IAU 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 EMA 12/26 trend beat buy-and-hold on IAU?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on IAU returned 12.5% annualized vs 13.7% for buy-and-hold: it trailed buy-and-hold by 1.2% per year, with a maximum drawdown 11.2 points shallower than holding (15.0% vs 26.2%).

How many trades did it make?

23 completed round trips over 5.7 years (46 fills), with 48% of round trips closing profitably.

Is this the same as trading MACD signals?

It uses the MACD's underlying trend component. Classic MACD trades the signal-line crossover of the 12/26 spread. This template trades the spread's sign directly, which is simpler and can be built fully in blocks.

Related

EMA 12/26 Trend on all 59 ETFsfull results table All strategies on IAU12 templates compared RSI(14) Mean Reversion on IAUsame ETF, different rulesRSI(2) Dip Snapback on IAUsame 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.