Learn › Strategies › EMA 12/26 Trend › SGOV

EMA 12/26 Trend on SGOV

iShares 0-3 Month Treasury Bond ETF: T-bills, often used as the cash leg of rotation strategies. 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 SGOV turned $10,000 into $11,991 (19.9% total, 3.2% CAGR): it trailed buy-and-hold by 0.0% per year, with a maximum drawdown of 0.1% (buy-and-hold: 0.0%).
3.2%CAGR
3.2%buy & hold CAGR
−0.1%max drawdown
13.86Sharpe ratio
17round trips
47%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
20210.0%0.0%
20221.5%1.5%
20235.0%5.0%
20245.2%5.2%
20254.1%4.1%
20262.7%2.7%

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.1%0.1%0.1%0.2%0.2%0.2%0.3%0.4%
20230.3%0.3%0.4%0.3%0.4%0.5%0.4%0.5%0.4%0.4%0.5%0.4%
20240.4%0.4%0.4%0.4%0.5%0.4%0.4%0.5%0.4%0.4%0.4%0.4%
20250.3%0.3%0.3%0.3%0.3%0.3%0.3%0.4%0.3%0.3%0.3%0.3%
20260.3%0.3%0.3%0.3%0.3%0.3%0.3%0.3%0.3%0.1%––

Every trade

EMA 12/26 trend on SGOV made 17 closed round trips and one position still open at the end of the test, an average hold of 18 days, an average winner of 0.01%, an average loser of 0.00%, a profit factor of 0.75, a longest losing streak of 8. It held a position at the close on 95.0% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-02-10$83.382021-05-10$83.390.0%89
2021-05-11$83.392021-05-14$83.390.0%3
2021-05-17$83.382021-05-18$83.380.0%1
2021-05-19$83.392021-05-20$83.390.0%1
2021-05-26$83.392021-05-27$83.38−0.0%1
2021-06-01$83.392021-08-12$83.38−0.0%72
2021-08-17$83.392021-08-18$83.390.0%1
2021-08-23$83.392021-08-25$83.390.0%2
2021-09-01$83.402021-09-28$83.39−0.0%27
2021-09-30$83.392021-10-01$83.400.0%1
2021-10-11$83.402021-10-13$83.39−0.0%2
2021-10-14$83.382021-10-15$83.390.0%1
2021-10-25$83.402021-10-26$83.400.0%1
2021-11-03$83.392021-12-06$83.390.0%33
2021-12-07$83.412021-12-09$83.410.0%2
2021-12-10$83.412022-01-25$83.410.0%46
2022-01-27$83.412022-02-16$83.410.0%20
2022-02-17$83.41open–20.4%–

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
2021-08-042021-10-25−0.1%822022-03-30156
2021-07-302021-08-02−0.0%32021-08-042
2021-03-022021-03-03−0.0%12021-03-041

Buy-and-hold's deepest drawdown ran from 2021-03-02 to 2021-03-03 and reached −0.0%.

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)3.2%−0.1%$11,99113.86
5 basis points2.9%−1.7%$11,78810.63
10 basis points2.6%−3.4%$11,5877.36

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules3.2%−0.1%1747%$11,991
EMA 8/213.2%−0.1%2752%$11,997
EMA 20/503.2%−0.0%450%$11,995
EMA 12/503.2%−0.1%863%$11,993

How SGOV behaved

MeasureSGOV
Data in this test2021-01-04 to 2026-10-02 (1444 sessions)
Total return, buy and hold20.5%
Annualized volatility0.2%
Deepest drawdown−0.0% (2021-03-01 to 2021-03-03)
Up days69.0%
Average daily range0.01%
Average overnight gap0.01%
Correlation to SPY-0.01
Correlation to QQQ-0.01
Correlation to TLT0.01
Sessions above the 200-day average99.5%
Crossings of the 200-day average10
Falls of 10% or more from a 20-day high0

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 SGOV 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 SGOV?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on SGOV returned 3.2% annualized vs 3.2% for buy-and-hold: it trailed buy-and-hold by 0.0% per year, with a maximum drawdown of 0.1% (buy-and-hold: 0.0%).

How many trades did it make?

17 completed round trips over 5.7 years (35 fills), with 47% 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 SGOV12 templates compared RSI(14) Mean Reversion on SGOVsame ETF, different rulesRSI(2) Dip Snapback on SGOVsame 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.