EMA 12/26 Trend on VIXM
ProShares VIX Mid-Term Futures ETF: mid-term VIX futures, a slower-decaying volatility position. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
This page tests the EMA 12/26 trend rule on VIXM, the ProShares VIX Mid-Term Futures ETF. The rule holds the fund while the 12-day exponential average sits above the 26-day average and goes to cash when it drops below. The window runs from 2021-01-04 to 2026-10-02, starts with $10,000, uses no margin, and the headline run has no fees or slippage.
The result is a loss. The rule compounded at -12.95% a year, turned $10,000 into $4,510, and went through a maximum drawdown of 58.55%. Of 31 round trips, 3 made money, a win rate of 10%. The profit factor was 0.14, which means the winning trades paid back a small share of what the losing trades took.
Buy and hold on VIXM did worse over the same window: -16.06% a year, an ending value of $3,660, and a drawdown of 68.59%. The rule lost money more slowly than the fund it was trading. That is the only sense in which it helped, and the gap is a small one.
VIXM is a poor match for a long-only trend rule, and the data shows the reason. The fund holds futures that roll forward every month, and the roll is a steady drag when volatility is calm. A fund like that falls most of the time and jumps on a few days. A moving average crossover needs sustained moves in one direction to make money, and VIXM rarely supplies them on the upside.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | −9.5% | −18.8% |
| 2022 | −14.4% | −0.8% |
| 2023 | −17.7% | −43.7% |
| 2024 | −25.5% | −13.0% |
| 2025 | −5.7% | 5.2% |
| 2026 | 0.7% | −14.6% |
Year by year against buy and hold
The rule lost money in five of the six calendar periods and made 0.7% in 2026, a partial year. The yearly figures were -9.5% in 2021, -14.4% in 2022, -17.7% in 2023, -25.5% in 2024, -5.7% in 2025 and 0.7% in 2026.
Buy and hold lost money in four of those years and finished 2025 up 5.2%. The rule beat the fund in 2021, 2023 and 2026, and lost to it in 2022, 2024 and 2025. The yearly gaps were 9.3 points in 2021, 26 points in 2023 and 15.3 points in 2026 in the rule's favour, against 13.6 points in 2022, 12.5 points in 2024 and 10.9 points in 2025 in the fund's favour.
2023 is where the rule did its best work. The fund fell 43.7% that year, and the rule lost 17.7%. It spent long stretches in cash: after the exit on 2023-05-12 there was no new entry until 2023-08-23. The monthly table shows 0 for June, July and September 2023. Staying out of a fund that is losing nearly half its value is the one thing a trend filter can do well here.
2022 shows the opposite. The fund was roughly flat for the year, down 0.8%, and the rule lost 14.4% of its value. The position was whipsawed. In 2022 the rule closed 7 round trips and only 1 of them was a winner. Entries on 2022-01-26, 2022-04-18 and 2022-06-14 all turned into losses of 5.61%, 4.51% and 7.74%. A fund that moves sideways with sharp spikes up and down is the hardest case for a crossover, because the average turns up after the spike has already happened and turns down after the fall has already happened.
2024 was the worst year for the rule at -25.5%, while the fund lost 13%. The rule closed 6 round trips that year with no winners. Several of them were short and sharp: 3 days in November for a loss of 8.59%, and 15 days in September for a loss of 7.07%. The August 2024 volatility spike, when the fund gained 21.09% on 2024-08-05 and then lost 13.32% on 2024-08-06, came and went without the rule holding the fund on the way up.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 2.0% | −4.7% | 0.0% | 0.0% | 0.0% | −0.5% | −2.5% | 3.5% | −5.3% | 5.0% | −6.9% |
| 2022 | −2.4% | −2.0% | −1.9% | 2.5% | −2.1% | −4.9% | −2.2% | 0.0% | 4.0% | −6.0% | 0.0% | 0.0% |
| 2023 | 0.0% | 0.0% | −0.2% | −2.0% | −4.6% | 0.0% | 0.0% | −3.3% | 0.0% | −0.4% | −8.4% | 0.0% |
| 2024 | 0.0% | 0.0% | −1.9% | −2.3% | 0.0% | 0.0% | −0.5% | 0.3% | −6.9% | −4.8% | −8.4% | −4.2% |
| 2025 | 3.0% | 3.0% | −1.8% | 13.5% | −11.0% | −3.2% | −1.3% | 0.0% | 0.0% | −3.2% | −2.9% | −0.2% |
| 2026 | 0.0% | 1.0% | 9.3% | −8.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | – | – |
The months that mattered
The best month was April 2025 at +13.49%. The worst was May 2025 at -11.01%. Those two months are adjacent, and together they show how the rule gets caught. The position was bought on 2025-03-31 at an adjusted price of 16.33, rode the April spike, and was sold on 2025-05-13 at 15.98 for a loss of 2.14% on that round trip. Within the single trade, the April gain was handed back in May.
Buy and hold had the same best month, April 2025, at +13.11%, and its worst month was June 2023 at -17.6%. The rule's best month was slightly better than the fund's because the position was sized at 98% of the sleeve and entered before the spike.
The other large monthly loss was November 2023 at -8.44%, which came from one trade: bought on 2023-10-04 at 20.41, sold on 2023-11-07 at 18.575, a loss of 8.99%. That was the worst single trade in the run. November 2024 lost 8.4% and September 2024 lost 6.93%, both from the short losing trades noted above.
Many months show 0. The rule was in cash for those months, and the exposure figure confirms how often: the position was held 33.5% of the time. The months with a 0 return are the months where the fast average sat below the slow average and no new buy signal appeared. A volatility fund in a long calm stretch sits under both averages for weeks, so the rule is out of the market during most of the quiet periods, which is when the fund bleeds most from the roll.
A third of the time invested and a loss every year but one is the pattern on this page. The time out of the market saved some money. The time in the market lost it back, often within a few weeks.
Every trade
EMA 12/26 trend on VIXM made 31 closed round trips, an average hold of 23 days, an average winner of 4.86%, an average loser of −3.33%, a profit factor of 0.14, a longest losing streak of 15. It held a position at the close on 33.5% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-10 | $40.46 | 2021-03-16 | $39.34 | −2.8% | 34 |
| 2021-07-21 | $31.85 | 2021-08-11 | $30.88 | −3.0% | 21 |
| 2021-09-14 | $31.19 | 2021-10-14 | $30.56 | −2.0% | 30 |
| 2021-11-23 | $31.23 | 2021-12-30 | $30.53 | −2.2% | 37 |
| 2022-01-26 | $31.37 | 2022-02-02 | $29.61 | −5.6% | 7 |
| 2022-02-22 | $31.73 | 2022-03-28 | $31.50 | −0.7% | 34 |
| 2022-04-18 | $32.84 | 2022-04-21 | $31.36 | −4.5% | 3 |
| 2022-04-22 | $32.69 | 2022-06-07 | $34.58 | 5.8% | 46 |
| 2022-06-14 | $37.49 | 2022-07-08 | $34.59 | −7.7% | 24 |
| 2022-09-19 | $33.94 | 2022-09-20 | $33.23 | −2.1% | 1 |
| 2022-09-22 | $33.39 | 2022-10-31 | $33.32 | −0.2% | 39 |
| 2023-03-14 | $26.85 | 2023-04-12 | $26.24 | −2.3% | 29 |
| 2023-05-04 | $27.45 | 2023-05-12 | $26.16 | −4.7% | 8 |
| 2023-08-23 | $20.41 | 2023-08-29 | $19.73 | −3.3% | 6 |
| 2023-10-04 | $20.41 | 2023-11-07 | $18.57 | −9.0% | 34 |
| 2024-03-12 | $16.13 | 2024-03-26 | $15.82 | −1.9% | 14 |
| 2024-04-08 | $16.25 | 2024-04-25 | $15.88 | −2.3% | 17 |
| 2024-07-22 | $14.46 | 2024-08-20 | $14.43 | −0.2% | 29 |
| 2024-09-05 | $15.69 | 2024-09-20 | $14.58 | −7.1% | 15 |
| 2024-10-02 | $15.55 | 2024-10-21 | $14.79 | −4.9% | 19 |
| 2024-11-04 | $15.60 | 2024-11-07 | $14.26 | −8.6% | 3 |
| 2024-12-19 | $15.10 | 2025-01-27 | $14.90 | −1.3% | 39 |
| 2025-02-04 | $14.50 | 2025-02-06 | $14.35 | −1.0% | 2 |
| 2025-02-10 | $14.51 | 2025-03-28 | $15.31 | 5.5% | 46 |
| 2025-03-31 | $16.33 | 2025-05-13 | $15.98 | −2.1% | 43 |
| 2025-06-16 | $17.18 | 2025-06-26 | $16.62 | −3.3% | 10 |
| 2025-07-23 | $16.82 | 2025-07-24 | $16.60 | −1.3% | 1 |
| 2025-10-16 | $16.25 | 2025-10-27 | $15.72 | −3.3% | 11 |
| 2025-11-04 | $16.60 | 2025-12-03 | $16.07 | −3.2% | 29 |
| 2026-02-06 | $15.48 | 2026-02-10 | $15.10 | −2.5% | 4 |
| 2026-02-11 | $15.17 | 2026-04-14 | $15.67 | 3.3% | 62 |
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.
What the 31 round trips looked like
Only 3 trades closed with a gain. The best was bought on 2022-04-22 at 32.69 and sold on 2022-06-07 at 34.58, a gain of 5.78% over 46 days. The second was bought on 2025-02-10 at 14.51 and sold on 2025-03-28 at 15.31, a gain of 5.51% over 46 days. The third was bought on 2026-02-11 and sold on 2026-04-14 for a gain of 3.3% over 62 days, the longest hold in the run.
The average winning trade returned 4.86% and the average losing trade lost 3.33%. A winner that is larger than the average loser looks fine until the counts are added: 3 winners against a far longer list of losers. The median trade lost 2.3% and the median hold was 21 days. The average hold was 22.5 days, and the shortest hold was a single day.
The longest losing streak was 15 trades in a row, and the longest winning streak was 1. Fifteen straight losses is the kind of sequence a person running this rule would feel in the account. Equity fell from the 2021-02-22 peak and never recovered. The first drawdown in the table runs 1,813 days from that peak to the trough on 2026-02-09, with no recovery date.
Some of the losses were fast reversals after a signal. The entry on 2022-09-19 was sold the next day at a loss of 2.09%, and the entry on 2025-07-23 was sold the day after at a loss of 1.31%. An exponential average reacts to price quickly, so a spike that fades within days can push the fast line over the slow line and pull it back under before the position has a chance to earn anything. The rule is built to react quickly, and on VIXM the quick reaction mostly bought spikes near their tops.
The list of trades also shows how the entry prices sit relative to the exit prices. In 2021 the fund traded around 31 to 40, and by 2024 it traded around 14 to 16. Prices here are adjusted for splits and dividends, and the downward slide in the price is the visible form of the roll cost. Most entries were bought into a fund that was drifting lower on a long horizon, and the rule had no way to see that drift. It only compares two averages of recent prices.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-02-22 | 2026-02-09 | −58.5% | 1813 | not yet | – |
| 2021-02-16 | 2021-02-17 | −0.2% | 1 | 2021-02-18 | 1 |
Buy-and-hold's deepest drawdown ran from 2021-02-22 to 2026-09-22 and reached −68.6%.
The drawdown that never ended
The deepest drawdown was 58.55%. It began at the 2021-02-22 peak, reached its low on 2026-02-09 after 1,813 days, and had not recovered by the end of the window. Buy and hold had its own peak on the same date, 2021-02-22, and fell 68.59% to a low on 2026-09-22 after 2,038 days, also without recovery.
Both lines peaked in February 2021 and neither returned to that level. The rule's drawdown was 10.04 points shallower than the fund's, which is the one measured benefit of using it. The rule's final equity was $850 higher than buy and hold. Neither number is a result anyone would aim for.
The fund's own statistics explain why. VIXM fell 65.95% over the window, a CAGR of -17.11%, and its longest drawdown ran 1,410 sessions. A long-only rule on a fund like that is playing from behind. It can only choose when to hold, and the fund's central tendency over the period was down.
The second drawdown in the table is only 0.19%, from 2021-02-16 to 2021-02-17, recovered in a day. It sits in the first weeks of the run before the rule had bought anything. After 2021-02-22 the account was in one long underwater period, so the table has no other entries to list.
The cost runs add to that. At 5 basis points per fill the CAGR was -13.42% and the drawdown 59.76%, with ending equity of $4,372. At 10 basis points the CAGR was -13.88%, the drawdown 60.91% and the ending value $4,242. With 62 fills in the run, each extra basis point costs a little, but the cost is small next to the loss the rule was already taking. Costs did not change the result. The rule loses money before costs and loses a bit more after them.
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) | −12.9% | −58.5% | $4,510 | -0.49 |
| 5 basis points | −13.4% | −59.8% | $4,372 | -0.51 |
| 10 basis points | −13.9% | −60.9% | $4,242 | -0.53 |
Cost runs and Sharpe
The Sharpe ratio of the headline run was -0.49, the same as buy and hold at -0.49. The rule lost less in total, but its risk-adjusted return was no better, because it also earned less on the days it was invested. At 5 basis points the Sharpe fell to -0.509, and at 10 basis points it fell to -0.531.
The low trade count keeps costs from mattering much. The fund's average daily dollar volume was $3,186,899 and its median minute volume was 362 shares, so the fund is thinly traded. The test assumes fills at the minute bar price. In a live account a thin fund like this can fill at a worse price than the bar suggests, which means the cost runs here are a floor on what real trading would show.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | −12.9% | −58.5% | 31 | 10% | $4,510 |
| EMA 8/21 | −12.6% | −58.6% | 39 | 23% | $4,629 |
| EMA 20/50 | −14.5% | −65.0% | 17 | 12% | $4,067 |
| EMA 12/50 | −13.3% | −57.6% | 23 | 9% | $4,392 |
Faster and slower pairs
Three other settings were tested. EMA 8/21 returned -12.55% a year with a 58.64% drawdown, ending at $4,629, with 39 trades and 9 wins. EMA 20/50 returned -14.51% with a 64.95% drawdown, ending at $4,067, with 17 trades and 2 wins. EMA 12/50 returned -13.35% with a 57.62% drawdown, ending at $4,392, with 23 trades and 2 wins.
The faster pair, 8/21, did best by CAGR and Sharpe at -0.459, and it had the most winning trades, 9 of 39. It traded more often, and on a fund that spikes and fades, getting in and out faster caught a little more of each move and gave back a little less. The slowest pair, 20/50, did worst by CAGR at -14.51% and by Sharpe at -0.704, and its drawdown of 64.95% was the deepest of the four. By the time the slow average turned, the spike was largely over.
The 12/50 variant had the shallowest drawdown at 57.62%, a shade below the 58.55% of the default. The spread across all four settings is narrow. Every one of them lost money, every one ended far below the $10,000 start, and every one had a Sharpe below zero. No setting turned the rule into a winner. That tells you the loss comes from the fund and the long-only structure, and the choice of 12/26 is not the cause. The test covers one window and four settings, so it cannot say whether some other pair would work, but the pattern across these four gives no reason to expect one.
How VIXM behaved
| Measure | VIXM |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | −66.0% |
| Annualized volatility | 29.8% |
| Deepest drawdown | −69.9% (2021-02-22 to 2026-09-22) |
| Up days | 45.3% |
| Average daily range | 2.06% |
| Average overnight gap | 0.77% |
| Correlation to SPY | -0.73 |
| Correlation to QQQ | -0.66 |
| Correlation to TLT | -0.01 |
| Sessions above the 200-day average | 30.2% |
| Crossings of the 200-day average | 60 |
| Falls of 10% or more from a 20-day high | 30 |
How VIXM behaved
VIXM had 1,444 sessions in the window and an annualised volatility of 29.83%. It rose on 45.25% of days. The average up day was 1.35% and the average down day was -1.26%, so the fund's average move on an up day was only slightly larger than on a down day, while the count of down days was higher.
The best day was 2024-08-05 at +21.09%, followed by 2025-04-10 at +12.18% and 2025-04-03 at +11.01%. The worst day was 2024-08-06 at -13.32%. A crossover rule cannot be in the fund on those days unless it was already holding, and a signal built from averages of past closes usually turns on after the first large up day.
The overnight share of the fund's return was 81.99%, and the intraday share was 18.01%. The overnight log return was -85.58% and the intraday log return was -18.8%. Most of the decay happened between the close and the next open, which suggests the fund loses ground when the US session is closed. The rule buys at the market open, so it takes the overnight gap each time it holds.
The correlation to SPY was -0.73 and the beta to SPY was -1.32. The fund moves against the stock market, which is the reason people hold it as a hedge, and it explains why a hedge held under a trend rule can look like a bet against an uptrend. The fund's lag-1 autocorrelation was -0.07, a slightly negative figure, which points to mild reversal from one day to the next. Trend rules want positive autocorrelation. The fund's price was above its 200-day average on 30.2% of sessions and crossed it 60 times, which is a lot of crossings for under six years.
The RSI statistics point the same way. RSI(14) fell below 30 on 122 sessions, and the median 20-day forward return after those sessions was -1.32%, against a baseline median of -1.11%. RSI(2) fell below 10 on 233 sessions, with a median 5-day forward return of -0.4%, against a baseline of -0.39%. Oversold readings on VIXM did not lead to a bounce on average. Neither did overbought ones occur often, with only 13 sessions above 70 on RSI(14).
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.
Where this rule sits among the 12
On VIXM, the EMA 12/26 trend rule ranked 7th of the 12 strategies by CAGR. Only RSI(2) snapback made a profit, at 0.13% a year with a 52.36% drawdown. The golden cross lost 1.81% a year with a drawdown of 24.81%, the shallowest drawdown on the list. RSI mean reversion lost 7.38% and trend with a trailing stop lost 10.18%.
The SMA 10/50 trend rule lost 13.07%, a little worse than the exponential version. The dip buyer was last at -16.68% with a 65.3% drawdown, and momentum breakout was next to last at -15.88%.
The pattern is that slow rules lost the least. The golden cross trades the least and sat out most of the window, so it avoided most of the decay. Fast trend rules lost the most because they bought rallies in a falling fund. The one rule that made a profit, the RSI(2) snapback, is a mean reversion rule that buys sharp one-day drops, and a volatility fund often gives back a spike within a few days.
Among volatility products, the EMA 12/26 rule on VXZ returned -11.26% a year with a 53.71% drawdown, and on UVXY it returned -39.04% with a 96.01% drawdown. VIXM sits in the middle of the three. Across all 59 ETFs the median CAGR for this rule was 2.76%, and VIXM ranked 52nd of 59 for it, so the loss is specific to this kind of fund. Within the volatility category the median was -12.95%, which is VIXM's own figure. The rule works as a simple trend switch on funds that trend up, and the VIXM fund page lays out the fund's behaviour in full. The strategy page shows how the rule did on the other 58 funds.
The test stops at one window of 5.74 years, daily decisions, long-only positions and no short side. A rule that could short the fund, or one that used a different volatility instrument, would give different results and is not tested here. These are hypothetical backtest results and do not predict what the rule would do going forward.
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 VIXM?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on VIXM returned −12.9% annualized vs −16.1% for buy-and-hold: it beat buy-and-hold by 3.1% per year, with a maximum drawdown 10.0 points shallower than holding (58.5% vs 68.6%).
How many trades did it make?
31 completed round trips over 5.7 years (62 fills), with 10% 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.
Does the EMA 12/26 trend rule work on VIXM?
No, not in this test. It returned -12.95% a year from 2021-01-04 to 2026-10-02 and turned $10,000 into $4,510. Only 3 of 31 round trips made money. It lost less than buy and hold, which returned -16.06% a year, but it still lost money in five of six calendar periods.
How much did the EMA 12/26 rule lose at its worst on VIXM?
The maximum drawdown was 58.55%, from the 2021-02-22 peak to a low on 2026-02-09. The account had not recovered by the end of the window. Buy and hold on VIXM fell 68.59% from the same peak date.
Why does a trend rule struggle on a VIX futures fund?
VIXM holds futures that roll forward, and the fund fell 65.95% over the window. It spikes for a few days and then fades, so a crossover tends to buy after the spike has started and sell after it has faded. The rule was invested 33.5% of the time, and the position lost money on all but 3 of 31 round trips.
Did a different EMA pair do better on VIXM?
Not by much. EMA 8/21 returned -12.55% a year, EMA 12/50 returned -13.35% and EMA 20/50 returned -14.51%. Every setting lost money, so the loss comes from the fund and the long-only rule structure, and the 12/26 choice is not the cause.
What happens to the result with trading costs?
At 5 basis points per fill the CAGR was -13.42% and ending equity was $4,372. At 10 basis points the CAGR was -13.88% and ending equity was $4,242. The rule made 62 fills, so costs add a modest extra loss on top of a result that was already negative.
Which strategy made money on VIXM in this test?
RSI(2) snapback was the only one, at 0.13% a year with a 52.36% drawdown. The golden cross lost 1.81% a year, and the other ten lost more than that. The EMA 12/26 rule ranked 7th of 12 on VIXM.
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.