EMA 12/26 Trend on VTV
Vanguard Value ETF: US large-cap value, the slower, dividend-heavier side of the market. 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 template turns the MACD spread into a long or flat switch: hold while the 12-day exponential average is above the 26-day, hold cash otherwise. VTV is the Vanguard Value ETF, the slower and dividend-heavier side of US large caps, and it climbed in a fairly steady line. A fast trend switch gets tested on exactly that kind of fund.
Between 2021-01-04 and 2026-10-02 a $10,000 account grew to $14,982 under the rule. Total return was 49.82%, CAGR 7.3% and Sharpe 0.81. Of 21 round trips, 14 won, a 67% win rate, and the profit factor was 3.51. The account held VTV at the close on 69.3% of trading days.
A buy-and-hold account over those dates reached $20,623, a CAGR of 13.44% and a Sharpe ratio of 1.03. The rule's CAGR was 6.14 percentage points lower. Its worst drawdown, 16.48%, was only 0.33 points shallower than the 16.81% for holding. Only 2023 went the rule's way.
Winning most trades did not stop the rule from giving up return, since the account sat in cash on days when VTV mostly climbed. Fourth place of 12 on this fund is the rule's standing, and VTV is 22nd of 59 funds for it. Across all 59 the rule's median CAGR is 2.76%, which makes VTV a fund where it paid. No fees or slippage enter the headline run.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | 10.0% | 27.6% |
| 2022 | −9.0% | −2.0% |
| 2023 | 10.1% | 9.1% |
| 2024 | 8.9% | 15.8% |
| 2025 | 9.8% | 15.1% |
| 2026 | 13.6% | 15.3% |
How each year played out
Calendar returns for the rule were 10% (2021), -9% (2022), 10.1% (2023), 8.9% (2024), 9.8% (2025) and 13.6% (2026 to date). Buy-and-hold returned 27.6%, -2%, 9.1%, 15.8%, 15.1% and 15.3%. The gaps were -17.6, -7, +1, -6.9, -5.3 and -1.7 points. The widest gap came in the first year and the gaps narrowed after that.
2021 is where most of the shortfall was made. The first signal arrived on 2021-02-10, and the rule bought at an adjusted 108.76. January and the first part of February were spent in cash, so the rule missed the first weeks of a fund that finished the year up 28.17%. The 131-day trade ran to 2021-06-21 and made 9.51%. Three shorter trades followed. The one from 2021-07-13 to 2021-07-20 lost 2.9% in 7 days, the one from 2021-07-27 to 2021-09-14 made 1.53%, and the one from 2021-10-15 to 2021-12-01 lost 0.43%. March 2021 was the best month of the run at 6.52%, and November 2021 lost 2.9%. The year ended with a purchase on 2021-12-13 at 128.21.
2022 was the year the rule was supposed to help, and it helped only a little. Holding lost 2%. The rule lost 9%, which is deeper. Six trades closed in 2022 and 3 of them won, but the wins were small: 0.41% on the trade that ended 2022-01-26, 0.02% from 2022-07-28 to 2022-09-02, and 4.16% from 2022-10-26 to 2022-12-29. The losses were larger. The 7-day trade from 2022-06-06 to 2022-06-13 lost 6.68% and is the worst trade in the sample. June 2022 was the worst month at -6.47%, against -7.75% for the fund. The fund fell to its low on 2022-09-30 after a peak on 2022-04-20, and the rule was in and out of the market repeatedly on the way down.
2023 was the one year the rule came out ahead, 10.1% against 9.1%. All 3 of the trades that closed that year won, though two of them made 0.38% and 0.13%. The trade from 2023-06-09 to 2023-08-21 made 2.56%. The decisive entry was on 2023-11-15 at 131.32. It stayed on until 2024-04-17 and made 12.15%, the best trade in the table. December 2023 added 4.9% for the rule.
2024 returned 8.9% against 15.8%. The long trade ran into April, then the rule traded 2024-05-08 to 2024-08-09 for 2.98% and 2024-08-15 to 2024-11-05 for 3.19%. The re-entry on 2024-11-07 at 171.01 lost 1.81% by 2024-12-13, and December cost 3.6%. April 2024 lost 4.4% for the rule, a month that contained the exit on 2024-04-17.
2025 returned 9.8% against 15.1%. The rule sat out the first stretch of the April 2025 sell-off after exiting on 2025-03-06 following a loss of 2.21% on the entry from 2025-01-22. It bought again on 2025-05-08 at 163.09 and held to 2025-11-21 for 10.44%, the second best trade. The fund's own low was on 2025-04-08, so the rule skipped the final leg down and also the first part of the rebound.
2026 to 2026-10-02 returned 13.6% against 15.3%, the narrowest gap of the six years. The trade from 2025-11-26 closed on 2026-03-12 at 5.45%. March 2026 lost 4.5%. The rule re-entered on 2026-04-10 at 201.10 and was sold on 2026-09-16 at 221.60 for 10.19%. The 2026 numbers are a partial year.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | −0.4% | 6.5% | 3.4% | 2.9% | −3.1% | −2.1% | 2.0% | −1.2% | 1.4% | −2.9% | 3.8% |
| 2022 | −2.1% | −1.7% | 0.4% | −3.2% | 0.0% | −6.5% | 1.4% | −2.7% | 1.4% | 2.0% | 5.8% | −3.7% |
| 2023 | 2.4% | −2.0% | 0.0% | 1.4% | −1.3% | 2.3% | 3.4% | −3.0% | 0.0% | 0.0% | 1.9% | 4.9% |
| 2024 | 0.9% | 3.2% | 5.1% | −4.4% | 1.3% | 0.1% | 4.6% | 0.2% | 1.5% | −1.3% | 1.5% | −3.6% |
| 2025 | −0.1% | 0.8% | −2.8% | 0.0% | 1.8% | 3.6% | 0.2% | 3.4% | 2.2% | −0.4% | 0.1% | 0.8% |
| 2026 | 4.5% | 3.6% | −4.5% | 1.8% | 2.4% | 3.3% | 0.9% | 2.2% | −1.0% | 0.0% | – | – |
What the monthly table shows
The rule had 0.0% in months when it sat in cash all month, and the table shows several of them: January 2021, May 2022, March 2023, September 2023, October 2023 and April 2025. Cash months show 0.0%. The rule's worst month, -6.47% in June 2022, was shallower than the fund's -7.75% in the same month. The best month was 6.52% in March 2021. The fund's best month was October 2022 at 11.61%, a month in which the rule made 2.0%. The signal had not yet flipped on the October 2022 low, and the entry came on 2022-10-26, after much of the rebound. A 26-day average confirms a turn only after it has started, so the entry comes late.
By calendar month, VTV averaged 3.56% in November, 2.57% in July, 2.56% in October and 2.32% in January, against -2.44% in September. Each month has only 5 or 6 observations, which is too few for a pattern, and the template ignores dates. Some weak calendar months found the rule invested and some strong ones found it out.
Most months for the rule fall between 0 and 4% in either direction, with one or two larger ones a year. A rule that holds 69.3% of days takes most of the fund's monthly moves. Its strongest months sit inside the long trades: March to May 2021, the trade that began in November 2023, May to November 2025 and April to September 2026.
Every trade
EMA 12/26 trend on VTV made 21 closed round trips, an average hold of 69 days, an average winner of 4.51%, an average loser of −2.68%, a profit factor of 3.51, a longest losing streak of 3. It held a position at the close on 69.3% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-10 | $108.76 | 2021-06-21 | $119.10 | 9.5% | 131 |
| 2021-07-13 | $122.54 | 2021-07-20 | $118.99 | −2.9% | 7 |
| 2021-07-27 | $121.76 | 2021-09-14 | $123.62 | 1.5% | 49 |
| 2021-10-15 | $125.08 | 2021-12-01 | $124.54 | −0.4% | 47 |
| 2021-12-13 | $128.21 | 2022-01-26 | $128.74 | 0.4% | 44 |
| 2022-02-07 | $131.01 | 2022-02-18 | $128.68 | −1.8% | 11 |
| 2022-03-21 | $132.28 | 2022-04-27 | $128.42 | −2.9% | 37 |
| 2022-06-06 | $129.30 | 2022-06-13 | $120.66 | −6.7% | 7 |
| 2022-07-28 | $123.61 | 2022-09-02 | $123.64 | 0.0% | 36 |
| 2022-10-26 | $123.07 | 2022-12-29 | $128.19 | 4.2% | 64 |
| 2023-01-05 | $129.16 | 2023-02-23 | $129.65 | 0.4% | 49 |
| 2023-04-10 | $127.88 | 2023-05-08 | $128.04 | 0.1% | 28 |
| 2023-06-09 | $129.05 | 2023-08-21 | $132.35 | 2.6% | 73 |
| 2023-11-15 | $131.32 | 2024-04-17 | $147.28 | 12.2% | 154 |
| 2024-05-08 | $150.76 | 2024-08-09 | $155.26 | 3.0% | 93 |
| 2024-08-15 | $159.38 | 2024-11-05 | $164.47 | 3.2% | 82 |
| 2024-11-07 | $171.01 | 2024-12-13 | $167.92 | −1.8% | 36 |
| 2025-01-22 | $170.50 | 2025-03-06 | $166.73 | −2.2% | 43 |
| 2025-05-08 | $163.09 | 2025-11-21 | $180.12 | 10.4% | 197 |
| 2025-11-26 | $184.58 | 2026-03-12 | $194.64 | 5.5% | 106 |
| 2026-04-10 | $201.10 | 2026-09-16 | $221.60 | 10.2% | 159 |
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 21 trades
The rule completed 21 round trips and 42 fills. Of those trades, 14 closed with a gain. The average winner made 4.51% and the average loser lost 2.68%. A profit factor of 3.51 is what that mix gives with a 67% win rate. The median trade made 0.41% over 49 days, which sits well below the average winner and shows how many trades were small. Holds ran from 7 days to 197 days, with an average of 69.2 days. The longest winning streak was 8 trades and the longest losing streak 3.
The five best trades were 12.15% (2023-11-15 to 2024-04-17, 154 days), 10.44% (2025-05-08 to 2025-11-21, 197 days), 10.19% (2026-04-10 to 2026-09-16, 159 days), 9.51% (2021-02-10 to 2021-06-21, 131 days) and 5.45% (2025-11-26 to 2026-03-12, 106 days). Each of these held for more than 100 days. The worst five were -6.68% (2022-06-06 to 2022-06-13), -2.92% (2022-03-21 to 2022-04-27), -2.9% (2021-07-13 to 2021-07-20), -2.21% (2025-01-22 to 2025-03-06) and -1.81% (2024-11-07 to 2024-12-13). Two of the three worst were closed within 7 days.
Cutting losers short and holding winners is what the average trade of 4.51% against -2.68% reflects, and the winners are concentrated in the long holds. In the exit-year count the wins were 2 of 4 in 2021, 3 of 6 in 2022, 3 of 3 in 2023, 3 of 4 in 2024, 1 of 2 in 2025 and 2 of 2 in 2026. 2022 had the most trades and the least to show for them.
The 2022 trades show how a 12/26 pair handles a fund that moves sideways with sharp drops. The entry on 2022-06-06 at 129.30 followed a bounce, and the exit on 2022-06-13 at 120.66 came on a day VTV lost 3.31%, one of its five worst days in the sample. A rule that sells at the open after a crossing takes the loss from the signal day. The entry of 2022-03-21 lost 2.92% over 37 days, the second worst trade.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-06-04 | 2022-08-31 | −16.5% | 453 | 2024-02-21 | 539 |
| 2024-10-16 | 2025-05-09 | −7.2% | 205 | 2025-07-23 | 75 |
| 2026-02-27 | 2026-04-10 | −5.3% | 42 | 2026-06-02 | 53 |
Buy-and-hold's deepest drawdown ran from 2022-04-20 to 2022-09-30 and reached −16.8%.
Drawdowns
The rule's maximum drawdown was 16.48%. It began at a peak on 2021-06-04, reached the low on 2022-08-31 after 453 days, and recovered on 2024-02-21 after another 539 days. That is a long hole for a rule whose pitch is to step aside in a decline. Buy-and-hold had its deepest drawdown of 16.81% from 2022-04-20 to 2022-09-30, a trough after 163 days, and recovered on 2023-07-20 after 293 days. The rule's dip was marginally shallower and took far longer to climb out of.
The rule's equity peaked on 2021-06-04, shortly before the first long trade closed on 2021-06-21. It then fell through a sequence of small losses and one 6.68% hit in 2022, and rebuilt only with the 4.16% winner of late 2022 and the long trade that began in November 2023.
The second drawdown was 7.22%, from 2024-10-16 to 2025-05-09, a trough after 205 days, and recovered on 2025-07-23 after 75 days. Holding had a deeper dip in the same span of 14.24%, from 2024-11-29 to 2025-04-08, recovering on 2025-07-03. Here the rule was out of the market for part of the drop, having exited on 2025-03-06. The third was 5.33% from 2026-02-27 to 2026-04-10, recovered on 2026-06-02. Holding's third deepest was 9.68% in 2023, from 2023-07-26 to 2023-10-27.
The drawdown table is the one place where the rule did something visible. The depth of 14.24% for holding in 2024 and 2025 against 7.22% for the rule is a clear gain, and the equal depth in 2022 is a clear miss. Taken together the rule's worst drawdown was almost the same as holding's, at a cost of 6.14 points of annual return.
The drawdown comparison is mixed. In 2024 and 2025 the rule's dip of 7.22% was shallower than the 14.24% for holding. In 2022 the two were close, 16.48% and 16.81%, and the rule took longer to recover. The rule's worst drawdown ended up almost the same as holding's, at a cost of 6.14 points of annual return.
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) | 7.3% | −16.5% | $14,982 | 0.81 |
| 5 basis points | 6.9% | −17.2% | $14,689 | 0.78 |
| 10 basis points | 6.6% | −17.8% | $14,430 | 0.74 |
What costs do to the rule
Slippage was zero in the headline run. Adding 5 basis points to every fill gave a CAGR of 6.93%, a final value of $14,689, a Sharpe of 0.776 and a drawdown of 17.2%. Adding 10 basis points gave 6.6%, $14,430, 0.741 and 17.78%.
Each step of 5 basis points took a few tenths of a point off the CAGR, which is small. With 42 fills over 5.74 years and an average hold of 69.2 days, the rule does not trade often enough for costs to dominate. A faster rule on the same fund, such as the EMA 8/21 variant below with 29 trades, would pay more.
Capacity is not the limit here. VTV turns over roughly $406,579,544 a day and the median minute holds 3,738 shares, which makes a $10,000 sleeve tiny. Cost runs use a flat basis-point charge and ignore market impact for bigger accounts.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 7.3% | −16.5% | 21 | 67% | $14,982 |
| EMA 8/21 | 7.7% | −15.2% | 29 | 45% | $15,272 |
| EMA 20/50 | 5.3% | −19.1% | 12 | 50% | $13,474 |
| EMA 12/50 | 8.1% | −9.6% | 13 | 62% | $15,668 |
Changing the EMA lengths
Three alternative pairs were tested. EMA 8/21 returned 7.65% with a 15.23% drawdown, 29 trades and 13 wins, ending at $15,272. EMA 20/50 returned 5.33% with a 19.1% drawdown, 12 trades and 6 wins, ending at $13,474. EMA 12/50, which keeps the fast length and slows the second, returned 8.14% with a 9.58% drawdown, 13 trades and 8 wins, ending at $15,668.
Two of the three beat the published rule on CAGR and one lost. EMA 12/50 is the notable one: a higher return and a drawdown of 9.58% against 16.48%. Slowing only the slow average reduced the trade count from 21 to 13 and the shorter list of trades is part of why the drawdown fell. EMA 20/50 slowed both lengths and lost on both return and drawdown, so slower is not better in itself. The 20/50 pair acts later at each turn, which costs more on a fund where the drops were quick.
This is a test of four settings on one fund over one window, and the ranking among them can change on another window. A drawdown of 9.58% is the output of one path, and 13 trades is a small count. The Sharpe ratios of 0.866, 0.585 and 0.878 against the published 0.81 give the same ordering as the CAGR. The published pair is not an optimum on this fund. What the table shows is that the result moves by a few points of CAGR and several points of drawdown when the second length moves, so the number printed in the headline should be read with that range in mind.
How VTV behaved
| Measure | VTV |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 111.7% |
| Annualized volatility | 13.6% |
| Deepest drawdown | −17.1% (2022-04-20 to 2022-09-30) |
| Up days | 53.6% |
| Average daily range | 1.04% |
| Average overnight gap | 0.34% |
| Correlation to SPY | 0.86 |
| Correlation to QQQ | 0.67 |
| Correlation to TLT | 0.04 |
| Sessions above the 200-day average | 83.8% |
| Crossings of the 200-day average | 42 |
| Falls of 10% or more from a 20-day high | 4 |
How VTV behaved
Over 1,444 sessions VTV gained 111.73%, a CAGR of 13.96% with all of the money invested from the first day, and annualized volatility of 13.59%. The deepest fall was 17.08% from 2022-04-20 to 2022-09-30, recovered on 2023-07-20, and the longest drawdown lasted 312 sessions. Calendar-year returns were 28.17%, -2.08%, 9.27%, 16.01%, 15.27% and 15.45% for 2026 to date. Value held up in 2022, which gave a trend switch little to avoid and many chances to be whipsawed.
On 83.78% of its sessions VTV closed above the 200-day line, and it crossed that line 42 times. Funds that stay in an uptrend this long punish any rule that parks part of the time in cash. Overnight gaps produced 73.14% of the return and intraday moves 26.86%. Gaps averaged 0.34% and the typical day's range was 1.04%. Entering at the open after a signal means paying for the gap before the order is placed.
Up days were 53.64% of sessions, averaging 0.64%, while down days averaged -0.62%. The best day was 6.47% on 2025-04-09 and the worst -5.98% on 2025-04-04, both in the April 2025 sell-off and rebound. Correlation to SPY was 0.86 with a beta of 0.71, correlation to QQQ 0.67 and to TLT 0.04.
RSI tells a story of bounces. Following the 20 sessions when the 14-day RSI fell under 30, the median 20-session gain was 5.34% versus a baseline of 1.67%. Following the 154 sessions with a 2-day RSI under 10, the median 5-day gain was 0.52% versus 0.37%. A trend rule never buys those dips and waits for the averages to cross, which comes later.
In the broad index group, IOO led at 10.9%, followed by VOO at 10.34%, SPY at 10.2% and VV at 9.84%. QQQ made 7.85% but drew down 23.93%. VOOV, the fund most like VTV with a correlation of 0.97, made 7.65%. Three funds sat far below: QQQE at 1.87%, EEM at 0.29% and IWM at 0.18%. VTV landed on the group median of 7.85%.
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 the rules sit against the other templates
Each entry and exit happens at the open one day after the crossing, and the sleeve is 98% invested while the rule holds. The template warns that quick reaction means extra trades and whipsaws compared with a 50/200 cross. VTV in 2022 shows that, with 6 trades and a 6.68% loss in one week. From 2023 to 2026 it did not, and 9 of 11 trades won.
By CAGR on VTV the monthly cycle ranks first at 12.08%, with the weekly 7% target second at 10.69%. Between them and the EMA rule sit the SMA 10/50 trend, which made 7.4% with an 11.6% drawdown. RSI(2) snapback trails the EMA rule by a hair at 7.29%. Weaker were RSI mean reversion at 6.8%, 3-month momentum at 5.7% and the golden cross at 5.03%. The trend plus trailing stop drew down 24.37%, and the 200-day regime filter 23.32%. The dip buyer made 4% with a 4.37% drawdown, and the momentum breakout lost 0.26%.
The SMA 10/50 pair finished a fraction of a point above the EMA pair with a shallower drawdown. Both are fast trend switches and both landed in the same place on VTV. No template reached the 13.44% CAGR of holding. The test stops at one fund and one window, in which a US large-cap value fund rose with a few sharp breaks.
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 VTV?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on VTV returned 7.3% annualized vs 13.4% for buy-and-hold: it trailed buy-and-hold by 6.1% per year, with a maximum drawdown 0.3 points shallower than holding (16.5% vs 16.8%).
How many trades did it make?
21 completed round trips over 5.7 years (42 fills), with 67% 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 VTV?
No. From 2021-01-04 to 2026-10-02 the rule returned 7.3% a year against 13.44% for holding, and ended at $14,982 against $20,623. It won only 2023. Its drawdown of 16.48% was close to the 16.81% for holding.
How many trades did the rule make on VTV?
It made 21 round trips and 42 fills over 5.74 years, and 14 of the 21 trades won. The average hold was 69.2 days, the longest 197 days and the shortest 7 days. The median trade made 0.41%.
What was the worst trade?
The 7-day trade from 2022-06-06 to 2022-06-13 lost 6.68%, bought at an adjusted 129.30 and sold at 120.66. The next worst was -2.92% from 2022-03-21 to 2022-04-27. Both came in 2022.
Is this the same as trading MACD signals?
The rule trades the sign of the 12/26 spread. The classic MACD signal-line crossover adds a further smoothing step. This template is simpler and can be built from blocks.
Does a different EMA pair help on VTV?
In this test EMA 12/50 returned 8.14% with a 9.58% drawdown and 13 trades, and EMA 8/21 returned 7.65%. EMA 20/50 returned 5.33%. That is one fund and one window, so the ordering is not a rule.
How much do trading costs change the result?
At 5 basis points of slippage per fill the CAGR was 6.93% and at 10 basis points it was 6.6%, against 7.3% with no costs. The drawdown rose from 16.48% to 17.78%.
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.