Learn › Strategies › EMA 12/26 Trend › UST

EMA 12/26 Trend on UST

ProShares Ultra 7-10 Year Treasury: 2x daily leveraged intermediate Treasuries. 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 UST turned $10,000 into $8,655 (−13.4% total, −2.5% CAGR): it beat buy-and-hold by 6.0% per year, with a maximum drawdown 21.2 points shallower than holding (23.3% vs 44.5%).
−2.5%CAGR
−8.5%buy & hold CAGR
−23.3%max drawdown
-0.23Sharpe ratio
26round trips
27%win rate
■ EMA 12/26 trend   ■ buy & hold, $10,000 invested 2021-01-04

Year by year

YearEMA 12/26 trendbuy & hold
2021−2.9%−7.7%
2022−8.1%−29.6%
20233.6%0.4%
2024−10.6%−7.3%
20257.3%11.4%
2026−2.5%−11.3%

Month by month

YearJanFebMarAprMayJunJulAugSepOctNovDec
20210.0%0.0%0.0%−1.1%−1.9%1.7%4.2%−1.2%−1.2%0.0%−1.2%−1.9%
2022−1.0%0.0%−2.0%0.0%−0.6%0.1%2.4%−6.0%0.0%0.0%1.8%−2.7%
20231.3%−3.5%−1.0%1.0%−3.9%0.0%0.0%0.0%0.0%0.0%2.8%7.3%
2024−3.3%−4.2%−3.3%0.0%−2.3%−0.0%4.8%2.5%1.8%−3.3%0.0%−3.3%
20250.0%5.1%−0.2%1.8%−4.0%3.3%−2.3%3.0%0.8%1.0%1.1%−2.3%
20260.0%3.1%−3.6%0.0%0.0%−0.4%−1.5%0.0%0.0%0.0%––

Every trade

EMA 12/26 trend on UST made 26 closed round trips, an average hold of 34 days, an average winner of 4.15%, an average loser of −2.24%, a profit factor of 0.64, a longest losing streak of 9. It held a position at the close on 42.2% of trading days.

EntryEntry priceExitExit priceReturnDays held
2021-04-23$58.512021-04-30$57.83−1.2%7
2021-05-07$58.862021-05-13$57.75−1.9%6
2021-05-25$58.572021-09-08$61.144.4%106
2021-09-15$61.692021-09-20$61.12−0.9%5
2021-11-10$59.762021-11-12$59.01−1.3%2
2021-12-02$60.402022-01-03$58.57−3.0%32
2022-03-08$56.312022-03-10$55.15−2.1%2
2022-05-31$48.282022-06-01$48.03−0.5%1
2022-07-06$48.622022-08-23$46.73−3.9%48
2022-11-17$41.832022-12-29$41.42−1.0%42
2023-01-11$43.382023-02-10$42.39−2.3%30
2023-03-16$44.182023-05-19$42.41−4.0%64
2023-11-09$37.462024-01-25$40.036.9%77
2024-02-01$41.472024-02-09$39.68−4.3%8
2024-03-11$40.302024-03-15$38.93−3.4%4
2024-05-15$38.682024-05-30$37.76−2.4%15
2024-06-04$38.972024-10-07$41.255.8%125
2024-12-06$40.732024-12-16$39.35−3.4%10
2025-02-04$38.722025-04-23$40.775.3%78
2025-04-28$40.972025-05-13$39.92−2.6%15
2025-06-16$40.202025-07-17$40.490.7%31
2025-07-23$40.812025-11-11$43.115.6%111
2025-11-13$43.032025-11-14$43.170.3%1
2025-11-24$43.502025-12-10$42.68−1.9%16
2026-02-12$43.122026-03-16$42.83−0.7%32
2026-06-25$42.272026-07-10$41.45−1.9%15

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-022024-06-10−23.3%1043not yet–
2021-04-232021-05-12−3.3%192021-07-0655
2021-07-082021-07-13−1.6%52021-07-152

Buy-and-hold's deepest drawdown ran from 2021-01-04 to 2023-10-19 and reached −44.5%.

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)−2.5%−23.3%$8,655-0.23
5 basis points−2.9%−24.3%$8,437-0.28
10 basis points−3.4%−25.4%$8,222-0.33

Changing the parameters

VersionCAGRMax drawdownRound tripsWin rateFinal value
Published rules−2.5%−23.3%2627%$8,655
EMA 8/21−2.7%−19.5%3426%$8,550
EMA 20/50−2.0%−20.3%1225%$8,920
EMA 12/50−2.3%−22.4%1631%$8,751

How UST behaved

MeasureUST
Data in this test2021-01-04 to 2026-10-02 (1428 sessions)
Total return, buy and hold−41.2%
Annualized volatility15.1%
Deepest drawdown−45.5% (2021-01-04 to 2023-10-19)
Up days48.0%
Average daily range0.68%
Average overnight gap0.58%
Correlation to SPY0.09
Correlation to QQQ0.10
Correlation to TLT0.86
Sessions above the 200-day average35.6%
Crossings of the 200-day average68
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 UST 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 UST?

Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on UST returned −2.5% annualized vs −8.5% for buy-and-hold: it beat buy-and-hold by 6.0% per year, with a maximum drawdown 21.2 points shallower than holding (23.3% vs 44.5%).

How many trades did it make?

26 completed round trips over 5.7 years (52 fills), with 27% 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 UST12 templates compared RSI(14) Mean Reversion on USTsame ETF, different rulesRSI(2) Dip Snapback on USTsame 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.