EMA 12/26 Trend on VOX
Vanguard Communication Services ETF: communication services: media, internet platforms and telecom. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The EMA 12/26 trend holds a fund while its 12-day exponential average sits above its 26-day average and sells into cash when the order flips. It is the core of the MACD turned into a long or flat switch. VOX, the Vanguard Communication Services ETF, holds media, internet platform and telecom companies. The fund fell 38.81% in 2022 and gained 44.73% in 2023, which gives a trend switch one large decline to avoid and one large rally to catch.
Between 2021-01-04 and 2026-10-02 the rule grew $10,000 to $13,825, which is 5.8% a year and 38.25% in total. Holding VOX ended at $16,467, a CAGR of 9.08%. The rule gave up return and cut risk sharply: its max drawdown was 19.38% against 45.59% for holding. The Sharpe ratio was 0.5 against 0.55.
The rule closed 24 round trips and 11 won, a win rate of 46%. The average winner made 7.33% and the average loser lost 3.18%, giving a profit factor of 1.82. It was invested 62.3% of the time, with an average hold of 52.6 days and a median hold of 26. One more position was open at the end.
The rule beat holding in one year, 2022, by 24.8 points. By CAGR the rule is ninth of 12 on VOX, and VOX is 23rd of 59 funds for the rule. Treat every figure as hypothetical: one window of 5.74 years, with no fees or slippage in the headline run.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | 3.0% | 15.2% |
| 2022 | −12.9% | −37.7% |
| 2023 | 16.7% | 42.8% |
| 2024 | 19.5% | 32.1% |
| 2025 | 19.4% | 25.6% |
| 2026 | −7.5% | −1.1% |
Year by year
The rule returned 3% in 2021, -12.9% in 2022, 16.7% in 2023, 19.5% in 2024, 19.4% in 2025 and -7.5% in 2026 to date. Holding returned 15.2%, -37.7%, 42.8%, 32.1%, 25.6% and -1.1%. The gaps were -12.2, +24.8, -26.1, -12.6, -6.2 and -6.4 points.
2021 was a mild year for the rule. The first trade bought at 124.07 on 2021-02-10 and sold at 126.7 on 2021-05-18 for 2.12%, and the second bought at 130.61 on 2021-05-25 and sold at 135.67 on 2021-09-22 for 3.87%. Between them the two trades lasted 97 and 120 days. The rule then made two 3-day trades in November, both small losses, and the year ended at 3% against 15.2% for holding.
2022 is the one year a trend switch is meant to help in, and it did. VOX lost 37.7% in the year and the rule lost 12.9%. The rule made four round trips that closed in 2022 and none won, so the saving came from the months in cash. The monthly table is flat in January and February, May and June, and September and October 2022. The losses from March, April, July, August and December came from short trades, the largest being 5.44% on the trade from 2022-03-29 to 2022-04-13.
2023 was the year of the largest gap. VOX returned 42.8% and the rule returned 16.7%. The rule did not buy until 2023-01-10, at 82.5, after the fund had already bounced from its November low. It then held a 151-day trade from 2023-03-23 at 90.49 to 2023-08-21 at 101.99 for 12.71%. In September and October the rule made three short trades, one flat, one at -2.46% and one at -7.28%, before the 166-day winner began on 2023-11-08. A trend rule pays for its caution in the first months of a recovery.
2024 and 2025 were years of 19.5% and 19.4% for the rule against 32.1% and 25.6% for holding. In 2024 the rule held a 120-day trade from 2024-09-17 at 137.74 to 2025-01-15 at 153.97 for 11.78%. In 2025 the best trade of the window ran from 2025-05-05 at 147.62 to 2025-10-14 at 179.82, a gain of 21.81% in 162 days. The rule sat out March and April 2025, which included the fall in early April, and it entered on 2025-05-05 after VOX had rebounded.
2026 is partial. The rule lost 7.5% against a loss of 1.1% for holding. The year has four closed round trips, two of them wins, and an open position that was up 0.18% on the last day. The 2026 figures cover only part of the year.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | −2.2% | 1.3% | 6.5% | −3.1% | 4.0% | 0.5% | 3.5% | −4.3% | 0.0% | −2.7% | 0.0% |
| 2022 | 0.0% | 0.0% | −1.9% | −3.5% | 0.0% | 0.0% | −1.4% | −2.9% | 0.0% | 0.0% | 3.4% | −7.1% |
| 2023 | 10.0% | −4.0% | 2.7% | 2.3% | 2.6% | 4.9% | 5.8% | −6.2% | −2.4% | −7.1% | 3.1% | 5.3% |
| 2024 | 3.9% | 4.5% | 2.6% | −1.9% | 2.3% | 3.2% | −3.1% | 0.1% | 0.1% | 2.0% | 4.8% | −0.0% |
| 2025 | 4.7% | −4.8% | 0.0% | 0.0% | 6.2% | 7.4% | 2.2% | 2.9% | 4.3% | −3.7% | −2.1% | 1.6% |
| 2026 | 2.9% | −3.9% | 0.0% | 2.9% | 0.2% | −2.9% | −4.6% | −4.1% | 2.4% | −0.3% | – | – |
Month by month
The best month for the rule was January 2023 at 10.01%, the same month in which holding made its best, 14.39%. The worst was December 2022 at -7.13%. Holding had its worst month in April 2022 at -14.44%, a month in which the rule lost 3.47%. That month shows what the switch did in 2022: VOX lost more than 14% and the rule's loss was a fraction of it, because the account was in cash for part of the month.
The table has 12 flat months. They sit in 2021 and 2022 (January, October and December 2021, then January, February, May, June, September and October 2022), in March and April 2025, and in March 2026. A zero means no position for the whole month. Most of them came during the 2022 decline, which is where the rule earned its lead over holding.
The losing months of 2023 and 2024 tell a different story. In 2023 the rule lost 4.02% in February, 6.15% in August, 2.38% in September and 7.09% in October, then gained in November and December. In 2024 it lost 1.93% in April and 3.11% in July. Each of these losses is the cost of a signal that was late or wrong. Between them the rule posted gains of 5.77% in July 2023, 5.3% in December 2023, 4.45% in February 2024 and 4.76% in November 2024.
The summer and autumn of 2026 are weak: June lost 2.93%, July lost 4.56% and August lost 4.12%. These came from two short trades, 2026-07-14 to 2026-07-23 at -4.69% and 2026-08-17 to 2026-08-19 at -2.33%, plus the weak stretch of the 2026-04-14 trade that ended on 2026-06-05 at 0.09%. VOX's own monthly averages show September at -1.65% and January at 4.65%, from five or six observations each.
Every trade
EMA 12/26 trend on VOX made 24 closed round trips and one position still open at the end of the test, an average hold of 53 days, an average winner of 7.33%, an average loser of −3.18%, a profit factor of 1.82, a longest losing streak of 6. It held a position at the close on 62.3% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-10 | $124.07 | 2021-05-18 | $126.70 | 2.1% | 97 |
| 2021-05-25 | $130.61 | 2021-09-22 | $135.67 | 3.9% | 120 |
| 2021-11-09 | $137.32 | 2021-11-12 | $135.35 | −1.4% | 3 |
| 2021-11-16 | $136.37 | 2021-11-19 | $134.49 | −1.4% | 3 |
| 2022-03-29 | $116.86 | 2022-04-13 | $110.50 | −5.4% | 15 |
| 2022-07-22 | $93.73 | 2022-07-25 | $92.37 | −1.4% | 3 |
| 2022-08-03 | $93.62 | 2022-08-29 | $90.86 | −3.0% | 26 |
| 2022-11-21 | $82.34 | 2022-12-16 | $78.98 | −4.1% | 25 |
| 2023-01-10 | $82.50 | 2023-03-01 | $87.06 | 5.5% | 50 |
| 2023-03-23 | $90.49 | 2023-08-21 | $101.99 | 12.7% | 151 |
| 2023-09-06 | $104.96 | 2023-09-11 | $104.97 | 0.0% | 5 |
| 2023-09-12 | $105.20 | 2023-09-22 | $102.61 | −2.5% | 10 |
| 2023-10-12 | $106.38 | 2023-10-26 | $98.64 | −7.3% | 14 |
| 2023-11-08 | $105.15 | 2024-04-22 | $125.26 | 19.1% | 166 |
| 2024-05-08 | $127.54 | 2024-07-26 | $130.63 | 2.4% | 79 |
| 2024-08-20 | $135.91 | 2024-09-10 | $131.64 | −3.1% | 21 |
| 2024-09-17 | $137.74 | 2025-01-15 | $153.97 | 11.8% | 120 |
| 2025-01-22 | $157.72 | 2025-02-28 | $155.56 | −1.4% | 37 |
| 2025-05-05 | $147.62 | 2025-10-14 | $179.82 | 21.8% | 162 |
| 2025-10-21 | $185.88 | 2025-11-07 | $179.71 | −3.3% | 17 |
| 2025-11-28 | $188.12 | 2026-02-12 | $190.28 | 1.1% | 76 |
| 2026-04-14 | $190.18 | 2026-06-05 | $190.36 | 0.1% | 52 |
| 2026-07-14 | $189.40 | 2026-07-23 | $180.52 | −4.7% | 9 |
| 2026-08-17 | $188.37 | 2026-08-19 | $183.98 | −2.3% | 2 |
| 2026-08-26 | $189.77 | open | – | 0.2% | – |
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 trades
The test has 25 trades, 24 closed and one open. The open one bought at 189.77 on 2026-08-26 and was up 0.18%. Prices are adjusted for splits and dividends. The five best closed trades:
- 2025-05-05 at 147.62 to 2025-10-14 at 179.82: 21.81% in 162 days.
- 2023-11-08 at 105.15 to 2024-04-22 at 125.26: 19.13% in 166 days.
- 2023-03-23 at 90.49 to 2023-08-21 at 101.99: 12.71% in 151 days.
- 2024-09-17 at 137.74 to 2025-01-15 at 153.97: 11.78% in 120 days.
- 2023-01-10 at 82.5 to 2023-03-01 at 87.06: 5.53% in 50 days.
The five worst:
- 2023-10-12 at 106.38 to 2023-10-26 at 98.64: -7.28% in 14 days.
- 2022-03-29 at 116.86 to 2022-04-13 at 110.5: -5.44% in 15 days.
- 2026-07-14 at 189.4 to 2026-07-23 at 180.52: -4.69% in 9 days.
- 2022-11-21 at 82.34 to 2022-12-16 at 78.98: -4.08% in 25 days.
- 2025-10-21 at 185.88 to 2025-11-07 at 179.71: -3.32% in 17 days.
The best four trades each lasted 120 days or more, and the four are the source of most of the profit. The worst five lasted 9 to 25 days. That is the usual shape of a trend rule: a few long holds in clean trends pay for a run of short losing trades. The profit factor of 1.82 reflects it.
The median trade lost 1.37% and the median hold was 26 days, which shows how many of the 24 trades were small losers. The longest hold was 166 days and the shortest was 2. Winners came three in a row at best and losers six in a row at worst. By exit year the record is 2 wins in 4 in 2021, none in 4 in 2022, 3 in 5 in 2023, 2 in 3 in 2024, 2 in 4 in 2025 and 2 in 4 in 2026.
Whipsaw clusters are easy to find. In November 2021 there are two 3-day trades at -1.43% and -1.38%. In July and August 2022 there are two more, at -1.45% over 3 days and -2.95% over 26 days. September 2023 has one trade that returned 0.01% in 5 days followed by one that lost 2.46% in 10 days. August 2026 has a trade of 2 days at -2.33%. The strategy page flags the trade-off: a faster signal means more trades and more whipsaws than a 50/200 cross.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-09-01 | 2022-12-16 | −19.4% | 471 | 2023-07-13 | 209 |
| 2025-09-19 | 2026-09-01 | −15.4% | 347 | not yet | – |
| 2023-07-31 | 2023-11-09 | −15.1% | 101 | 2024-02-02 | 85 |
Buy-and-hold's deepest drawdown ran from 2021-09-01 to 2022-11-09 and reached −45.6%.
Drawdowns
The deepest drawdown for the rule was 19.38%, from a peak on 2021-09-01 to a trough on 2022-12-16, 471 days later, and it recovered on 2023-07-13 after 209 days. The second was 15.41%, from 2025-09-19 to 2026-09-01, and it was still open at the end of the test. The third was 15.06%, from 2023-07-31 to 2023-11-09, which recovered on 2024-02-02 after 85 days.
Holding VOX had a max drawdown of 45.59%. The fund's own price series fell 46.74% between 2021-09-01 and 2022-11-09, regained its peak on 2024-10-04, and spent 776 sessions in its longest drawdown. The rule's worst drawdown began on the day the fund peaked and reached its low five weeks after the fund's did. In between, the rule was in cash from early 2022 for much of the decline.
The second and third drawdowns are different in nature. The 2023 one of 15.06% was a run of short losing trades in a rising market, from August to October, when the fund itself was recovering. The 2025 to 2026 one of 15.41% began at a peak on 2025-09-19, before the 2025-10-14 exit that closed the best trade of the window. After that the rule bought and sold at around 180 to 190 several times, and lost with most of the reversals. The fund's prices in that stretch moved in a narrow band, which a moving-average crossover reads as a series of false signals.
The comparison with holding favors the rule on risk. A drawdown of 19.38% against 45.59% is a large reduction, and it came with the loss of 3.28 points of CAGR a year. Whether that trade is attractive depends on tolerance for drawdowns, and the test does not decide it.
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) | 5.8% | −19.4% | $13,825 | 0.50 |
| 5 basis points | 5.4% | −19.9% | $13,516 | 0.47 |
| 10 basis points | 4.9% | −20.4% | $13,188 | 0.44 |
What trading costs did
The rule made 49 fills. At 5 basis points the CAGR fell from 5.8% to 5.39%, the max drawdown rose to 19.93% and end equity was $13,516. At 10 basis points the CAGR was 4.94%, the max drawdown was 20.4% and end equity was $13,188. The Sharpe ratio went from 0.5 to 0.47 and then to 0.437.
Costs here are moderate. A rule with 24 round trips pays on both sides of each, and the short losers fit that pattern, but the long winners are large enough that costs remove a fraction of a point at each step. The headline figure is a no-cost figure.
On liquidity, VOX traded $26,455,650 on an average day and 339 shares in the median minute. A $10,000 order is small beside that, though no real spread was measured.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 5.8% | −19.4% | 24 | 46% | $13,825 |
| EMA 8/21 | 2.5% | −28.9% | 34 | 32% | $11,536 |
| EMA 20/50 | 9.0% | −13.7% | 10 | 50% | $16,368 |
| EMA 12/50 | 6.8% | −15.4% | 14 | 36% | $14,564 |
Other averages
Three variants changed the pair of averages.
- EMA 8/21: CAGR 2.52%, max drawdown 28.92%, end equity $11,536, 34 trades and 11 wins.
- EMA 20/50: CAGR 8.96%, max drawdown 13.68%, end equity $16,368, 10 trades and 5 wins.
- EMA 12/50: CAGR 6.77%, max drawdown 15.36%, end equity $14,564, 14 trades and 5 wins.
The base rule, EMA 12/26, made 5.8% with 24 trades and a drawdown of 19.38%. The faster pair, 8/21, did worst: more trades, a deeper drawdown and a lower return. Both slower pairs did better than the base rule on return and on drawdown. The 20/50 pair made 8.96%, close to the 9.08% for holding, with a max drawdown of 13.68%, and it had the best Sharpe ratio of the group at 0.731. The 12/50 pair made 6.77%, with 14 trades.
The pattern is steady: the slower the pair, the fewer the trades and the better the result. On VOX the fast crossover produced whipsaws that the slower ones filtered out. That holds for one fund and one window. The 20/50 pair was not selected in advance, and a different window could rank the pairs differently.
How VOX behaved
| Measure | VOX |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 70.2% |
| Annualized volatility | 21.0% |
| Deepest drawdown | −46.7% (2021-09-01 to 2022-11-09) |
| Up days | 52.3% |
| Average daily range | 1.45% |
| Average overnight gap | 0.55% |
| Correlation to SPY | 0.84 |
| Correlation to QQQ | 0.83 |
| Correlation to TLT | 0.07 |
| Sessions above the 200-day average | 68.5% |
| Crossings of the 200-day average | 34 |
| Falls of 10% or more from a 20-day high | 26 |
How VOX behaved
Over the window VOX gained 70.15%, which is 9.7% a year, on annualized volatility of 20.99%. The fund's own years ran 15.64%, then -38.81%, 44.73%, 33.15%, 26.22% and -1.15% so far in 2026.
VOX trades like the broad market: beta to SPY of 1.08, correlation of 0.84 to SPY, 0.83 to QQQ and 0.07 to TLT. VV at 0.85 and SPY, VOO, SSO and SPUU at 0.84 were its closest matches. A trend switch on a fund like this is a switch on the market.
Daily moves were moderate. Just over half the sessions, 52.25%, were up days, and up and down days both averaged about 0.97%. The fund's typical intraday range was 1.45% and its typical overnight gap 0.55%. Its largest one-day gain, +9.38%, came on 2025-04-09, and its largest loss, -6.13%, on 2022-02-03. The rule was out of the fund on 2025-04-09, since its next entry came on 2025-05-05, so it missed the best day of the window along with the worst days of early April 2025, -5.39% on 2025-04-04 and -4.99% on 2025-04-03.
Price held above the 200-day line on 68.51% of sessions, with 34 crossings. After the 24 sessions on which RSI(14) closed under 30, the median 5-day return was 2.14% and the median 20-day return 2.34%, where an ordinary day gave 0.34% and 1.31%. RSI(2) below 10 came on 162 sessions with a median 5-day return of 1.13%. VOX bounced hard from oversold readings. A trend switch that exits into weakness and re-enters on strength misses bounces of that kind.
There were 26 events in which the fund lost more than 10% within 20 sessions, covering 78 days. Many of those fall in 2022. A switch that goes to cash on a crossover is built for them.
How VOX compares with other sector funds and other rules
Among the sector funds, VOX's 5.8% ranks third of six. SOXX returned 17.96% with a 33.96% drawdown and 22 round trips, and XLK returned 9.84%. Behind VOX came XLF at 5.63%, XLY at 2.36% and XLP at 1.19%. The rule's median CAGR was 5.8% across the sector funds and 2.76% across all 59.
On VOX itself, the golden cross did best at 11.2% with a 20.91% drawdown, ahead of the 3-month momentum rule at 8.92% and 12.96%. Next came the trend with a trailing stop at 8.57% and the weekly 7% target at 8.12%. A tight group followed: 200-day regime filter 6.52%, RSI(2) snapback 6.09%, SMA 10/50 6.06% and monthly cycle 5.97%. The EMA rule, at 5.8%, is ninth. Only three rules did worse: the dip buyer at 4.06%, RSI mean reversion at 2.39% and the momentum breakout at 2.19%.
The EMA rule's drawdown of 19.38% is among the shallowest of the 12, with only the 3-month momentum at 12.96% clearly below it. The monthly cycle made almost the same return at 5.97% with a drawdown of 46.22%, which is close to what holding gave. Among the rules with similar returns, the EMA switch took less risk than most.
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 crossover meets this fund
The rule compares two exponential averages at each open and acts on the order. On VOX it caught the 2023 to 2025 uptrend through a handful of long trades and avoided most of 2022. It lost most where the fund moved sideways: the summer and autumn of 2023, and 2026. The signal responds to direction and has no way to tell a pullback from the start of a decline.
The trade-off is the usual one for trend rules. The two largest gaps to holding came in the strongest years, -26.1 points in 2023 and -12.6 in 2024, and the one gain came in the worst year. A rule like this reduces the drawdown by being late to rallies.
The test covers one fund, one rule and 5.74 years of data. The slower pairs did better here, and nothing was tuned to VOX. None of the figures is a forecast.
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 VOX?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on VOX returned 5.8% annualized vs 9.1% for buy-and-hold: it trailed buy-and-hold by 3.3% per year, with a maximum drawdown 26.2 points shallower than holding (19.4% vs 45.6%).
How many trades did it make?
24 completed round trips over 5.7 years (49 fills), with 46% 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.
How did the EMA 12/26 trend do on VOX?
From 2021-01-04 to 2026-10-02 it turned $10,000 into $13,825, a CAGR of 5.8%. The max drawdown was 19.38% and the Sharpe ratio was 0.5. It made 24 closed round trips and 11 won.
Did the EMA 12/26 rule beat buy-and-hold on VOX?
Not on return. Holding had a CAGR of 9.08% and ended at $16,467. The rule's drawdown was 19.38% against 45.59%, and it beat holding in 2022 by 24.8 points.
Why did the rule lag in 2023?
VOX returned 42.8% and the rule returned 16.7%. The rule bought on 2023-01-10 at 82.5 after the fund's low, then took a string of short losses in September and October before the trade from 2023-11-08.
Would other EMA lengths have done better?
Slower pairs did better in this test. EMA 20/50 returned 8.96% with a 13.68% drawdown and EMA 12/50 returned 6.77%. The faster 8/21 pair returned 2.52%.
How much do trading costs matter?
At 5 basis points the CAGR was 5.39% and at 10 basis points it was 4.94%. The rule made 49 fills.
Is VOX a good fit for a trend switch?
The rule ranked ninth of 12 on VOX and VOX ranked 23rd of 59 funds for the rule. It cut the drawdown by more than half and gave up return in most years.
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.