EMA 12/26 Trend on RINF
ProShares Inflation Expectations ETF: tracks 30-year breakeven inflation expectations. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
EMA 12/26 trend on RINF ended the window at $9,873 from $10,000, a CAGR of -0.22%, while holding the fund made 6.63% a year and ended at $14,460. The test runs from 2021-01-04 to 2026-10-02 and has no fees or slippage in the headline run. Of the 12 templates in the library, this one ranks 8th on RINF. On the 59 funds in the library, this strategy ranks RINF 42nd.
RINF is the ProShares Inflation Expectations ETF, a fund that tracks 30-year breakeven inflation expectations. It moves slowly: annualized volatility is 12.41% and the average daily range is 0.61%. The rule switches between fully invested and cash when the 12-day exponential average crosses the 26-day. On a fund this quiet, the two averages sit close together and cross often. The result was 30 closed round trips, 12 of them winners, a 40% win rate and a profit factor of 0.89. The average winner was 2.2% and the average loser was -1.58%.
Three results frame the rest of the analysis. The maximum drawdown was 16.15%, against 13.32% for buy-and-hold, and the strategy had not recovered from it by the end. The Sharpe ratio was 0.02 against 0.59 for holding. The strategy never beat buy-and-hold in any calendar year on this fund. It came level in 2023 at 0.2% each.
For comparison, the library's median CAGR for this template across all 59 ETFs is 2.76%, and across the 6 alternative-strategy funds it is 4.27%. RINF sits below both. The strategy page for EMA 12/26 trend has the full table, and the RINF fund page ranks all 12 templates on this one fund.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | −1.4% | 14.7% |
| 2022 | −1.6% | 8.8% |
| 2023 | 0.2% | 0.2% |
| 2024 | 2.0% | 9.7% |
| 2025 | −3.2% | 1.5% |
| 2026 | 2.8% | 3.7% |
What each year did to the position
Buy-and-hold on RINF made 14.7% in 2021, 8.8% in 2022, 0.2% in 2023, 9.7% in 2024, 1.5% in 2025 and 3.7% in 2026, which is a partial year. The EMA rule made -1.4%, -1.6%, 0.2%, 2.0%, -3.2% and 2.8%. The gap was widest in 2021 at 16.1 points, and 2022 was next at 10.4 points. The strategy was behind in every year except 2023.
2021 is the clearest example of a late signal. The first trade was a buy on 2021-02-16 at $23.27 and a sale on 2021-06-21 at $24.16, a gain of 3.82% over 125 days. The fund gained 14.7% over the year, so the rule captured only part of it, because the entry came after the move had started and the exit came after the fund had stopped rising. The rest of the year was a run of short trades that each lost a little: -0.93% over 1 day in late June, -1.31% over 4 days in July, -2.39% over 7 days in August and -0.29% over 21 days in September. Six round trips closed in 2021 and 2 of them won.
2022 was a better test of what a trend rule is for. The fund made 8.8% for a holder, with a drawdown of 10.05% from June to June and a best month in October. The EMA rule ended the year at -1.6%. It lost 4.47% on a June entry at $29.30, and 1.74% on an October entry at $28.79 that closed in November. It did capture the March and April rise through a trade from 2022-03-01 at $25.83 to 2022-05-23 at $27.40, worth 6.08%, which is the second best trade of the run. Five round trips closed in 2022 and 2 won.
2023 was flat for the fund, at 0.2% for buy-and-hold, and the strategy matched it at 0.2%. That result hides a bad spring and a good summer. The two entries in February and April lost 3.92% and 2.21%. The entry on 2023-05-16 at $28.08 held for 185 days to 2023-11-17 and made 6.7%, the best trade of the run.
2024 made 2.0% against 9.7% for holding. 2025 was the worst year for the rule at -3.2%, with 9 round trips closing and only 3 winning, mostly in a string of trades under a week long. In 2026 the rule made 2.8% against 3.7%, with 3 round trips closing, 2 of them winning, and one position still open from 2026-07-15 at $32.09, up 1.78% at the last close.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.2% | 4.9% | −0.4% | 2.3% | −4.1% | 0.4% | −4.0% | −1.2% | 0.2% | 2.5% | −1.9% |
| 2022 | −2.8% | 0.0% | 5.3% | 5.2% | −4.4% | −4.4% | 0.0% | 3.6% | −1.9% | 4.2% | −5.6% | 0.0% |
| 2023 | 0.0% | 1.1% | −4.9% | −2.1% | −0.1% | 1.2% | 1.5% | 0.0% | 3.7% | 3.3% | −3.1% | 0.0% |
| 2024 | −1.9% | 0.1% | 0.1% | 2.8% | 0.5% | −1.6% | −0.9% | 0.0% | 0.2% | 3.0% | −1.4% | 1.1% |
| 2025 | 1.2% | −1.4% | 0.5% | −2.1% | 1.2% | −0.5% | 0.2% | −0.8% | −1.5% | −0.1% | −0.1% | 0.2% |
| 2026 | 0.3% | −0.7% | 0.1% | 1.0% | 1.0% | −0.6% | 1.2% | −0.2% | 1.0% | −0.3% | – | – |
The monthly pattern
The monthly table has 0.0% in many cells, and each of those is a month the strategy held cash for the whole month. January 2021, February 2022, July 2022, December 2022, January 2023, August 2023, December 2023 and August 2024 are all zeros. Exposure over the window was 63.3% of days, so a bit over a third of the time the rule had no position.
The best month was March 2022 at 5.34%, followed by April 2022 at 5.18%. Both sit inside the 83-day trade that began on 2022-03-01. Buy-and-hold's best month was October 2022 at 13.45%, and the EMA rule made 4.17% that month. The rule's worst month was November 2022 at -5.64%, which came from the long trade entered in October that the rule closed on 2022-11-23. Buy-and-hold's worst month was September 2022 at -6.11%.
May and June of 2022 each lost 4.37%. The same trade structure shows in March 2023, which lost 4.92%. These are the months where the fund fell after the crossover had already put the rule in.
Most of the negative months were small, between 0.1% and 2%. The few large ones, in 2021, 2022 and 2023, did most of the damage: June and August 2021 at -4.06% and -4.01%, May and June 2022 at -4.37%, November 2022 at -5.64% and March 2023 at -4.92%.
Every trade
EMA 12/26 trend on RINF made 30 closed round trips and one position still open at the end of the test, an average hold of 41 days, an average winner of 2.20%, an average loser of −1.58%, a profit factor of 0.89, a longest losing streak of 4. It held a position at the close on 63.3% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-16 | $23.27 | 2021-06-21 | $24.16 | 3.8% | 125 |
| 2021-06-29 | $24.76 | 2021-06-30 | $24.53 | −0.9% | 1 |
| 2021-07-30 | $24.44 | 2021-08-03 | $24.12 | −1.3% | 4 |
| 2021-08-11 | $24.70 | 2021-08-18 | $24.11 | −2.4% | 7 |
| 2021-09-01 | $24.34 | 2021-09-22 | $24.27 | −0.3% | 21 |
| 2021-09-28 | $24.91 | 2021-12-02 | $25.12 | 0.8% | 65 |
| 2021-12-30 | $26.11 | 2022-01-14 | $25.10 | −3.9% | 15 |
| 2022-03-01 | $25.83 | 2022-05-23 | $27.40 | 6.1% | 83 |
| 2022-06-06 | $29.30 | 2022-06-28 | $27.99 | −4.5% | 22 |
| 2022-08-18 | $27.16 | 2022-09-26 | $27.61 | 1.7% | 39 |
| 2022-10-17 | $28.79 | 2022-11-23 | $28.29 | −1.7% | 37 |
| 2023-02-17 | $28.09 | 2023-03-17 | $26.99 | −3.9% | 28 |
| 2023-04-13 | $28.05 | 2023-05-03 | $27.43 | −2.2% | 20 |
| 2023-05-16 | $28.08 | 2023-11-17 | $29.96 | 6.7% | 185 |
| 2024-01-19 | $29.39 | 2024-02-02 | $28.62 | −2.6% | 14 |
| 2024-02-20 | $29.05 | 2024-06-13 | $29.82 | 2.6% | 114 |
| 2024-07-02 | $30.24 | 2024-07-30 | $29.95 | −1.0% | 28 |
| 2024-09-24 | $29.81 | 2024-12-03 | $30.34 | 1.8% | 70 |
| 2024-12-17 | $30.63 | 2025-02-26 | $30.93 | 1.0% | 71 |
| 2025-03-31 | $30.90 | 2025-04-02 | $30.71 | −0.6% | 2 |
| 2025-04-25 | $30.88 | 2025-04-29 | $30.56 | −1.0% | 4 |
| 2025-05-06 | $31.01 | 2025-08-04 | $31.03 | 0.1% | 90 |
| 2025-08-28 | $31.55 | 2025-09-09 | $31.10 | −1.4% | 12 |
| 2025-09-23 | $31.38 | 2025-09-24 | $31.45 | 0.2% | 1 |
| 2025-09-25 | $31.37 | 2025-10-01 | $31.34 | −0.1% | 6 |
| 2025-10-10 | $31.28 | 2025-10-14 | $31.19 | −0.3% | 4 |
| 2025-11-04 | $31.27 | 2025-11-26 | $31.24 | −0.1% | 22 |
| 2025-12-08 | $31.40 | 2026-02-17 | $31.33 | −0.2% | 71 |
| 2026-03-19 | $31.45 | 2026-03-26 | $31.48 | 0.1% | 7 |
| 2026-04-08 | $31.53 | 2026-06-22 | $31.99 | 1.5% | 75 |
| 2026-07-15 | $32.09 | open | – | 1.8% | – |
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 trade list
The 30 closed round trips divide into a few long holds and many short ones. The median hold was 22 days and the longest was 185. The shortest was 1 day. The average hold was 41.4 days.
The five best trades were 6.7% from 2023-05-16, 6.08% from 2022-03-01, 3.82% from 2021-02-16, 2.65% from 2024-02-20 and 1.78% from 2024-09-24. All of them lasted at least 70 days. The pattern is the usual one for a crossover: the gains come from the few trades that catch a multi-month move.
The five worst were -4.47% from 2022-06-06, -3.92% from 2023-02-17, -3.87% from 2021-12-30, -2.62% from 2024-01-19 and -2.39% from 2021-08-11. They lasted between 7 and 28 days, and each is an entry that came just before the fund turned. The December 2021 entry at $26.11 closed on 2022-01-14 at $25.10. The February 2023 entry at $28.09 closed a month later at $26.99.
The longest losing streak was 4 round trips, and the longest winning streak was 2. A profit factor of 0.89 means the winners added up to less than the losers did. Average winner and loser sizes of 2.2% and -1.58% mean the rule did not need to win more than half the time to make money, but it won 40% and fell short.
A cluster in the autumn of 2025 shows what a whipsaw looks like in the data. Between 2025-09-23 and 2025-10-14 the rule entered and exited three times: a 1-day trade at +0.22%, a 6-day trade at -0.1% and a 4-day trade at -0.29%. Each fill is tiny on a fund priced near $31, and none of these trades mattered on its own. They are the cost of a signal that flips as the two averages lie almost on top of each other.
The count of 61 fills for 30 round trips and an open position matches the rule: each round trip is two fills and the open buy is a 61st. At 5 or 10 basis points per fill, those fills cost more, as the cost section shows.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-05-17 | 2023-06-02 | −16.1% | 746 | not yet | – |
| 2021-03-29 | 2021-04-09 | −4.0% | 11 | 2021-05-10 | 31 |
| 2021-02-17 | 2021-02-25 | −1.6% | 8 | 2021-02-26 | 1 |
Buy-and-hold's deepest drawdown ran from 2022-10-24 to 2023-02-03 and reached −13.3%.
The drawdown that did not recover
The deepest drawdown was 16.15%, from a peak on 2021-05-17 to a low on 2023-06-02, 746 days later. It had not recovered by 2026-10-02. The account ended below its starting $10,000, and that is why the recovery column is empty. Two smaller drawdowns are listed: 4.02% from 2021-03-29 to 2021-04-09, recovered by 2021-05-10, and 1.64% in February 2021.
Buy-and-hold had its worst drawdown later. The fund fell 13.32% from 2022-10-24 to 2023-02-03 and recovered on 2023-10-18, taking 257 days to recover. Its second worst, 10.05% from 2022-06-06 to 2022-06-30, recovered by 2022-10-20. The strategy was deeper than holding the fund, and it stayed down for years. A trend rule is expected to cut the deepest declines, and it did not here, because the declines in RINF were slow and the exits came after most of the damage.
The unusual part is the timing. The peak was in May 2021, before the fund's own worst stretch. The strategy's equity peaked while buy-and-hold was still rising, and the losses from the short June to September 2021 trades began the decline. Then 2022 trades lost more. By the time the fund had its largest advance, the strategy's account was already below its high.
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) | −0.2% | −16.1% | $9,873 | 0.02 |
| 5 basis points | −0.7% | −17.2% | $9,584 | -0.03 |
| 10 basis points | −1.3% | −18.3% | $9,301 | -0.09 |
What slippage did
The headline run fills at the bar price with no slippage. Charging 5 basis points per fill moved the CAGR to -0.74%, the maximum drawdown to 17.21% and the final value to $9,584, with a Sharpe ratio of -0.03. At 10 basis points the CAGR was -1.25%, the maximum drawdown 18.27%, the final value $9,301 and the Sharpe ratio -0.09.
The strategy has 61 fills, so costs apply often, and the average trade is small. The average winner was 2.2% and the average loser was -1.58%. A cost of 5 basis points on both sides of a trade is 0.1% of the position, which is a larger share of a 0.1% to 1% trade than of a 6.7% trade. RINF also has a low average daily dollar volume, $433,360, and a median minute volume of 300 shares. Thin trading usually means a wider spread than the 5 and 10 basis points modelled, so the cost runs are a lower bound for this fund.
The drop from the headline result to the 10 basis point run is smaller than the gap to buy-and-hold. Without any cost, the strategy already trailed by 6.85 points of CAGR.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −0.2% | −16.1% | 30 | 40% | $9,873 |
| EMA 8/21 | −1.6% | −17.1% | 42 | 31% | $9,142 |
| EMA 20/50 | −3.3% | −27.1% | 19 | 26% | $8,228 |
| EMA 12/50 | −2.8% | −24.1% | 27 | 33% | $8,514 |
Other averages on RINF
Three variants of the rule were tested. EMA 8/21, a faster pair, made -1.55% a year with a 17.06% drawdown, 42 trades and 13 wins. EMA 20/50, a slower pair, made -3.34% with a 27.07% drawdown, 19 trades and 5 wins. EMA 12/50, which keeps the fast average at 12 and slows the other to 50, made -2.76% with a 24.05% drawdown, 27 trades and 9 wins.
The published 12/26 pair made -0.22%, which is the best of the four, and it also had the shallowest drawdown at 16.15% against 17.06%, 27.07% and 24.05%. The two slow variants did worse than the fast ones on both measures. That runs against the usual argument that slower averages cut whipsaws. On RINF, slowing the averages made the exits later without avoiding the false entries, and the end value fell to $8,228 for 20/50 and $8,514 for 12/50.
The difference among the four is a few points of CAGR, and all four lost money. The finding is that no setting in this set made the rule work on this fund. A parameter search on a fund where every version is negative adds little evidence for a better setting.
How RINF behaved
| Measure | RINF |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1428 sessions) |
| Total return, buy and hold | 45.4% |
| Annualized volatility | 12.4% |
| Deepest drawdown | −13.5% (2022-10-24 to 2023-02-03) |
| Up days | 51.9% |
| Average daily range | 0.61% |
| Average overnight gap | 0.36% |
| Correlation to SPY | 0.13 |
| Correlation to QQQ | 0.09 |
| Correlation to TLT | -0.40 |
| Sessions above the 200-day average | 82.3% |
| Crossings of the 200-day average | 74 |
| Falls of 10% or more from a 20-day high | 1 |
Why RINF is hard for a crossover
RINF's total return over the window was 45.41%, a CAGR of 6.74% with 12.41% volatility. It was above its 200-day average on 82.26% of sessions, which suggests a steady uptrend, but it crossed that average 74 times. A fund that spends most of its time above its average and also crosses it often is one where the line is close to price much of the time. Price drifts upward in small steps, and every dip of a day or two pushes the faster average under the slower.
The up-day share was 51.93%, with an average up day of 0.55% and an average down day of -0.56%. The overnight gap averaged 0.36% against an average intraday range of 0.61%. The fund's return came overnight: the log return over the window was 76.2% from overnight moves and -38.62% intraday. A rule that decides at the open and trades through the day gets the day's moves and misses less of the gap than one that holds overnight, and this data says the day's own moves were negative for the fund as a whole.
The best days were 2022-03-02 at 4.35%, 2022-04-14 at 4.02% and 2022-03-08 at 3.8%. The worst were 2022-10-25 at -3.16% and 2022-05-19 at -3.11%. Most of the large days fell in 2022, the year the EMA rule lost 1.6% while holding made 8.8%.
RINF's correlation to SPY is 0.13 and to QQQ 0.09. Its correlation to TLT is -0.4. Bond funds such as TMF, TLT, IEF, UST and BND are its least correlated holdings, and TBF, the inverse bond fund, is its most at 0.41. The fund has had its own inflation-driven path. A trend rule on SPY does not transfer to it.
The fund had 1 fall of 10% or more from a 20-day high. A fund with few sharp declines gives a trend rule little to avoid, and the cost of the rule's late exits comes without that benefit.
The rules
Hold while the 12-day exponential average is above the 26-day, the core of the MACD used as a position switch.
- WHEN the market opens · IF not invested AND EMA(12) > EMA(26) · THEN buy with 98% of the sleeve
- 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.
How the rules fit the fund
The rule buys when EMA(12) is above EMA(26) and sells when it is below. Exponential averages weight recent days more, so the crossover reacts faster than a simple average of the same length. The template's own caveat is that a faster reaction means more trades and more whipsaws. On RINF that was 30 round trips and a median hold of 22 days.
The MACD connection is that the template trades the sign of the 12/26 spread. Classic MACD trades the crossover of that spread with its signal line. Here the rule is simpler.
Other templates did better on RINF. The library ranks RSI(2) snapback first at 8.52% with a 10.64% drawdown, weekly 7% target second at 6.57%, RSI mean reversion third at 6.34% with a 9.76% drawdown, and monthly cycle fourth at 5.19%. Trend + trailing stop made 4%, and golden cross made 2.38% with a 13.26% drawdown. Among the trend rules, the EMA rule beat SMA 10/50 at -2.12% and the 200-day filter at -2.11%. The mean-reversion rules led, which fits a fund that stepped up in small moves and snapped back after dips.
Among the alternative-strategy funds, this rule made 14.01% on CLSE, 5.11% on KMLM, 4.27% on ALTY, 3.13% on CTA and 2.76% on QAI, and -0.22% on RINF. CLSE, KMLM and the others made money under the same rule, so the rule is not the only factor, and RINF's choppy path is part of it.
The test stops at one fund and one window of 5.74 years, with daily decisions and no fees in the headline run. It shows that this rule did not work on RINF in this window. It does not show how the rule behaves in a different inflation regime. The results are hypothetical and are not advice.
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 RINF?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on RINF returned −0.2% annualized vs 6.6% for buy-and-hold: it trailed buy-and-hold by 6.8% per year, with a maximum drawdown of 16.1% (buy-and-hold: 13.3%).
How many trades did it make?
30 completed round trips over 5.7 years (61 fills), with 40% 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 EMA 12/26 trend beat buy-and-hold on RINF?
No. From 2021-01-04 to 2026-10-02 the rule made -0.22% a year and ended at $9,873, while buy-and-hold made 6.63% and ended at $14,460. The rule matched buy-and-hold in 2023 at 0.2% and was behind in every other year.
How many trades did EMA 12/26 trend make on RINF?
It closed 30 round trips with 61 fills, and one position was still open at the end. 12 of the 30 won, a win rate of 40%. The median hold was 22 days and the longest was 185.
What was the biggest drawdown?
16.15%, from a peak on 2021-05-17 to a low on 2023-06-02. It had not recovered by the end of the test. Buy-and-hold's deepest drawdown was 13.32%, from 2022-10-24 to 2023-02-03.
Do other EMA settings work better on RINF?
Not in the three tested. EMA 8/21 made -1.55% a year, EMA 20/50 made -3.34% and EMA 12/50 made -2.76%. The published 12/26 pair made -0.22%, the best of the four, and every version lost money.
What happens with trading costs?
At 5 basis points of slippage per fill the CAGR was -0.74% and the final value was $9,584. At 10 basis points it was -1.25% and $9,301. RINF trades thinly, with a median minute volume of 300 shares, so real costs could be higher than those runs.
Which strategy worked best on RINF?
In the library, RSI(2) snapback ranked first at 8.52% a year with a 10.64% drawdown. Weekly 7% target made 6.57% and RSI mean reversion made 6.34%. This EMA rule ranked 8th of 12.
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.