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%).

Over the test window the EMA 12/26 trend rule ended below its starting cash on UST, though the loss was much smaller than the one from holding the fund. From 2021-01-04 to 2026-10-02, $10,000 became $8,654.72, a total return of -13.45% and a CAGR of -2.49%. Holding UST, the ProShares Ultra 7-10 Year Treasury fund, over the same dates left $6,000.58 and a CAGR of -8.51%. The rule beat holding by 6.02 points of CAGR and ended $2,654.14 ahead.

The maximum drawdown of the rule was 23.28%, against 44.51% for buy-and-hold. The Sharpe ratio was -0.23, so neither path paid for the risk it carried. The strategy made 26 round trips and won 7 of them, a win rate of 27%. The average win was 4.15% and the average loss was -2.24%, and the profit factor was 0.64.

The result is a case of a trend rule limiting a loss without finding a gain. UST doubles the daily move of intermediate Treasuries, and its price fell for most of the window as rates moved. A long/flat switch on the 12-day and 26-day exponential averages kept the account invested only 42.2% of the time, and that is where the difference against holding came from. The trades it did take were mostly small losers, because the fund spent long periods moving sideways between larger swings. The years, the trade list, the drawdown, the parameter variants and the fund's own behaviour each add to that picture.

−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%

Year by year

Calendar by calendar, the strategy returned -2.9% in 2021, -8.1% in 2022, 3.6% in 2023, -10.6% in 2024, 7.3% in 2025 and -2.5% so far in 2026. Holding the fund gave -7.7%, -29.6%, 0.4%, -7.3%, 11.4% and -11.3% for those years.

The rule came out ahead in 2021, 2022, 2023 and 2026. The 2022 gap was the widest at 21.5 points. The fund fell about 30% that year while the rule lost 8.1%, since cash covered most of the slide. It bought on 2022-03-08, sold on 2022-03-10 for -2.06%, tried again on 2022-05-31 and was out the next day, then held from 2022-07-06 to 2022-08-23 for -3.89%. The year's five round trips were all losses, and they still cost far less than staying invested.

The rule lagged in 2024 and 2025, by 3.3 and 4.1 points. In 2024 the fund fell 7.3% and the rule fell 10.6%, which is the one year in which trading the crossover cost more than holding in a down market. January to March 2024 lost 3.27%, 4.22% and 3.32%, and they came from a cluster of fast trades: a loss of 4.32% from 2024-02-01 to 2024-02-09, then a loss of 3.4% from 2024-03-11 to 2024-03-15. In 2025 the fund gained 11.4% and the rule took 7.3% of that, with four of its six round trips winning.

The 2023 result of 3.6% against 0.4% for holding came from one trade near the end of the year. The rule entered on 2023-11-09 at an adjusted price of 37.46 and held to 2024-01-25 at 40.03, a gain of 6.86%. That trade tops the list and accounts for why why a year with only two completed round trips finished positive.

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%––

Month by month

Many cells in the month table are zero because the strategy was in the fund for only 42.2% of the time. The best month was 2023-12 at 7.31%. The worst was 2022-08 at -6.03%, from the 48-day hold that ended on 2022-08-23. The held fund peaked in 2023-11 at 8% and bottomed in 2022-09 at -9.66%, a month the rule sat out.

Losing months far outnumber winning ones in the table, in line with a 27% win rate. A run of small negatives, typically between -1% and -4%, forms the usual month in the table. The positive months are fewer and sometimes large: 4.2% in July 2021, 4.81% in July 2024, 5.08% in February 2025 and 3.33% in June 2025.

For the fund itself, the average return in September across the 6 Septembers in the data was -4.02%, and November averaged 4%. The rule has no calendar logic, so those averages are context only. They show how uneven the fund's months were, and how few of them a trend rule would have time to catch.

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.

Trades that mattered, and the losing pattern

The first trade started on 2021-04-23 at an adjusted price of 58.51 and ended on 2021-04-30 at 57.83, a loss of 1.16%. The rule did not trade at all from 2021-01-04 until then, so it sat in cash through the first three months. The last trade ran from 2026-06-25 to 2026-07-10 for -1.94%.

The five best trades were:

The five worst were:

The winners lasted between 77 and 125 days, and the losers were mostly short. That is the signature of a trend rule: a few long trades pay, and many short whipsaws cost. The median trade lasted 16 days and returned -1.26%. Holds ran from 1 day to 125 days, and the mean of 34 days is lifted by the winners.

The longest loss streak was 9 trades and the longest win streak was 3. A nine-trade run of losses is the kind of stretch that tests whether a person keeps following a rule. By exit year, 2021 closed 5 round trips with 1 win, 2022 had 5 with none, 2023 had 2 with none, 2024 had 6 with 2 wins, 2025 had 6 with 4 wins and 2026 had 2 with none.

The list shows adjusted prices, so the early 2021 entries near 58 and 59 sit below the quotes printed then.

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%.

The drawdown

The deepest drawdown for the strategy began at the 2021-08-02 peak and bottomed on 2024-06-10 at 23.28%, after 1,043 days. The account never got back to that peak before the data ended. Two smaller ones followed: 3.25% from 2021-04-23 to 2021-05-12, recovered by 2021-07-06, and 1.63% in July 2021, recovered within 2 days of the trough.

The long drawdown is a staircase of small losses rather than one big hit. Each failed crossover took 1% to 4% of the account, and no rally was long enough to repay them. The peak came on 2021-08-02, during the 106-day winning trade that ran to 2021-09-08, and no new high came before the window closed.

For the held position one drawdown mattered: 2021-01-04 to 2023-10-19 at 44.51%, never recovered. The fund's raw series shows 45.49% over those dates with 1,427 sessions spent in drawdown. Cutting that depth roughly in half is the job of a trend filter on a falling asset, and it did that without producing a gain.

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

What trading costs do

The headline run carries no fees or slippage. Charging 5 basis points on each fill, CAGR falls from -2.49% to -2.92% and the ending equity from $8,654.72 to $8,436.92. With 10 basis points, CAGR is -3.35% and the account ends at $8,222.2. The maximum drawdown widens to 24.33% and then 25.37%, and the Sharpe ratio goes from -0.23 to -0.276 and then -0.325.

The rule makes 52 fills, so every basis point of cost is paid 52 times. The cost is a steady drag and it is small beside the trend result itself. Even with 10 basis points the rule ends well ahead of buy-and-hold at $6,000.58.

There is a second reason to treat these cost runs as a floor. UST is thinly traded: average daily dollar volume of $640,787 and a median minute of 223 shares. Those are small figures for any fund, and a real order in UST could meet a wider spread than the 5 or 10 basis points modelled here. The test does not measure that spread. Fills in the test are on minute bars at the bar price, plus the stated slippage.

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

Changing the parameters

Three alternative pairs were run beside the published 12/26.

All three lost money, as the published rule did. The slower pairs lost slightly less, and the faster pair lost slightly more. The 20/50 version made the fewest trades and ended with the most money, which fits the pattern that fewer crossovers mean fewer whipsaws in a market without a clean trend. The 8/21 version made the most trades, 34, and finished lowest of the four on ending equity but had the shallowest drawdown at 19.54%.

The spread between the variants is narrow, with CAGR between -1.97% and -2.69%. No setting turned a negative CAGR into a positive one, which suggests that the sign of the result came from the fund and not from the particular choice of 12 and 26. The differences among the four should be read as noise around a negative result, since each rests on a few dozen trades or fewer.

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

What UST is, and why it makes a poor trend vehicle

UST is the ProShares Ultra 7-10 Year Treasury fund, a 2x daily leveraged fund on intermediate Treasuries, and it sits in the leveraged ETF category.

Over the window the fund returned -41.18% with a CAGR of -8.83% and annualized volatility of 15.05%. Calendar years ran -7.9%, -30.3%, 0.36%, -7.56%, 11.78% and -11.64% so far in 2026. Up days were 48% of sessions. The average up day was 0.72% and the average down day was -0.74%. The best day was 4.89% on 2022-11-10 and the worst was -3.55% on 2022-06-13.

The fund tracks 7-10 year Treasuries through IEF with a nominal leverage of 2. Its realized beta to IEF was 1.91 with an R-squared of 0.89. Over the common window IEF returned -12.95%, and twice that is -25.9%, while UST returned -41.18%. The decay gap was -15.28 percentage points. Leverage that resets daily loses ground when the underlying moves up and down a lot, and the gap shows it. In 2023, for example, the fund returned 0.36% while IEF gained 3.64%, so a fund with 2x leverage fell short of even the single-leverage return.

Its correlation to SPY was 0.09 and to QQQ 0.1, and to TLT 0.86. Its most correlated funds were IEF at 0.94, BND at 0.92, AGG at 0.92, IEI at 0.91 and IGIB at 0.87. Its least correlated were TBF at -0.86 and KMLM at -0.43. A bond fund with a beta to stocks near zero gives no help from equity trends and depends on the rate moves behind it.

The intraday behaviour matters for this rule. The overnight log return was -15.21% and the intraday log return was -37.35%, so most of the loss came during trading hours. The average intraday range was 0.68% and the average overnight gap was 0.58%. The rule buys and sells at the open, so it takes the gap on each trade.

RSI(14) closed below 30 on 73 sessions, with median forward returns of -0.25% after 5 days and -2.13% after 20 days, against baselines of -0.19% and -0.38%. Oversold readings were followed by further weakness, which is the reverse of what a bounce-buying rule needs. The fund had 7 events in which it fell 10% or more from a 20-day high, spread over 14 days.

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.

What the rule asks of the fund

The EMA 12/26 trend rule is two instructions. When flat at the open with the 12-day exponential average above the 26-day, it puts 98% of the sleeve into the fund. When invested at the open with the 12-day average under the 26-day, it sells everything. An exponential average weights recent closes more heavily, which makes the two lines cross earlier than a simple pair of equal length would.

The rule makes money when the fund trends for long enough that the gain from a trend exceeds the cost of the late entry and late exit. It loses when the fund moves back and forth around its recent average, because each crossover sends it in near a local high and out near a local low. The strategy notes make the same point, that quicker reaction brings extra trades and extra whipsaws compared with a 50/200 cross.

UST gives the rule a hard task. The fund lost 41.18% over the window on its own prices, with 35.64% of sessions above its 200-day average and 68 crossings of that average. A fund that lives below its long average and keeps crossing it seldom gives a clean trend. The rule spent the window buying short-lived rallies.

How the other templates did on UST

Among the 12 templates the EMA 12/26 trend places 3rd on this fund, and UST places 45th of 59 funds for the rule. Across all 59 funds the rule's median CAGR was 2.76%, and across leveraged funds it was 17.3%.

Only the SMA 10/50 trend finished positive here, at 0.68% CAGR with a 10.58% drawdown. The golden cross lost 2.38% with a 22.42% drawdown, and the EMA rule lost 2.49% with 23.28%. The RSI(2) snapback lost 2.73% with 31.08%, the 3-month momentum rule 4.02% with 26.23%, and the momentum breakout 4.27% with 24.65%.

Further down, the RSI mean reversion rule lost 5.04% and the dip buyer lost 5.12%. The 200-day regime filter lost 6.68% with a 35.65% drawdown. The weekly 7% target, the trend plus trailing stop rule and the monthly cycle lost between 8.16% and 8.88%, with drawdowns above 41%.

Every template except one lost money on this fund, and the best of them gained under 1% a year. The same EMA rule on the other leveraged funds did very differently. SOXL returned 26.2% a year with a 65.38% drawdown, TECL 19.83%, SPUU 19.12% with a 22.88% drawdown and TQQQ 15.25%. Only TMF, another leveraged Treasury fund, did worse than UST, at -13.9% with a 65.06% drawdown.

The comparison shows that the leveraged label says little about the result. The same rule gained on leveraged equity funds in a rising market and lost on leveraged Treasury funds in a falling bond market. The underlying asset and the rate path decided the sign.

Limits of this result

The test covers 5.74 years and a single fund, during which Treasuries fell for most of the period. UST has 1,428 sessions in its series, fewer than most funds in the library, so a few days are missing. Fills are on minute bars with prices adjusted for splits and dividends, and the headline run charges nothing for trading. A sample of 26 round trips is small, and a stretch with a sustained bond rally would test the rule differently. Backtests are hypothetical and nothing here is investment advice.

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.

Did the EMA 12/26 rule come out ahead of holding UST?

Yes on every measure, but both lost money. The rule had a CAGR of -2.49% and ended at $8,654.72, while buy-and-hold had -8.51% and ended at $6,000.58. The rule's maximum drawdown was 23.28% against 44.51%.

How often did the rule trade UST?

It made 26 completed round trips with 52 fills over 5.74 years, and 7 of the round trips were winners. Half the holds lasted 16 days or less, and the longest run of losers was 9 trades.

Why did the rule lose money on UST?

UST dropped 41.18% across the window and spent most sessions under its 200-day average. The crossover rule bought short rallies and sold the pullbacks, so most of the round trips lost. The best trade gained 6.86% and the worst lost 4.32%.

Do other EMA settings work better on UST?

None changed the sign. The EMA 20/50 variant lost 1.97% a year, the EMA 12/50 lost 2.3% and the EMA 8/21 lost 2.69%. All three had losing results, so the fund drove the outcome more than the settings did.

How much do costs change the UST result?

Charging 5 basis points a fill moves the CAGR to -2.92%, and 10 basis points moves it to -3.35%. The rule still finishes above the held fund. UST trades a median of 223 shares a minute, so actual costs could exceed the modelled ones.

Which template did best on UST?

The [SMA 10/50 trend](/learn/strategies/sma-10-50-trend/ust/) was the only template with a positive CAGR, at 0.68% with a 10.58% drawdown. The EMA 12/26 rule ranked third of 12. The [full list for the fund](/learn/etf/ust/) shows all 12 templates.

How much did leverage cost UST over the window?

IEF, the fund UST doubles, returned -12.95% and twice that is -25.9%, while UST returned -41.18%. The gap of -15.28 percentage points is the decay from daily resetting. On the EMA rule, UST lost 2.49% a year and [TMF](/learn/strategies/ema-12-26-trend/tmf/) lost 13.9%.

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.