EMA 12/26 Trend on IWM
iShares Russell 2000 ETF: US small caps, with higher beta and choppier trends than the S&P 500. 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 rule closed 25 round trips on IWM between 2021-02-10 and 2026-09-02 and turned $10,000 into $10,105.51. That is a CAGR of 0.18% over the window from 2021-01-04 to 2026-10-02, which is 5.74 years. Buy-and-hold on the same fund ended at $15,145.24, a CAGR of 7.5%. The rule gave up 7.32 percentage points a year to simply holding the fund, and its maximum drawdown of 34.01% was deeper than the 31.34% buy-and-hold took.
The rule is a long/flat switch. It buys with 98% of the account when the 12-day exponential average rises above the 26-day average, and it sells the whole position when the 12-day falls back below the 26-day. Decisions are made at the open. On IWM that produced 9 winning round trips out of 25, a win rate of 36%, with an average win of 6.57% and an average loss of 3.34%. The profit factor was 1.02. The wins were slightly larger than the losses, and there were far fewer of them, so the account finished almost where it started.
IWM is the iShares Russell 2000 ETF, a basket of US small caps. Over the same window the fund returned 55.8% in total with annualized volatility of 22.35%. A crossover rule needs a fund that trends for weeks at a time. IWM spent much of this window moving sideways inside a wide range, and the rule bought and sold inside that range again and again. The IWM fund page has the full behaviour tables.
Among the 12 strategies tested on IWM, EMA 12/26 ranks 10th by CAGR. The RSI(2) snapback leads at 11.38%, the weekly profit target is second at 6.61%, and the monthly cycle is third at 6.48%. Across the 59 funds, this strategy ranks IWM 41st. The strategy's median CAGR over all 59 funds is 2.76%, so IWM sits well under the middle. The strategy overview lists every fund.
The test covers one window, daily decisions, no margin, and no fees or slippage in the headline run. Trade prices on this page are adjusted for splits and dividends, so they are lower than the quotes printed at the time.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | −19.4% | 15.7% |
| 2022 | −15.9% | −20.1% |
| 2023 | 20.1% | 16.4% |
| 2024 | −6.5% | 11.1% |
| 2025 | 21.9% | 12.4% |
| 2026 | 8.9% | 14.9% |
How each year played out against buy-and-hold
The rule beat buy-and-hold in 2022, 2023 and 2025 and trailed it in 2021, 2024 and 2026. The two groups are very different in size, which is why the six-year total looks the way it does.
2021 was the worst year. The rule lost 19.4% while buy-and-hold gained 15.7%, a gap of 35.1 points in buy-and-hold's favour. The rule closed 7 round trips that year and won none of them. It bought on 2021-02-10 at an adjusted $215.10 and sold on 2021-03-26 for a 4.7% loss. Then came 2021-04-07 to 2021-04-21, a 3.32% loss, and 2021-04-26 to 2021-05-12, a 4.3% loss. Each entry followed a rise in the fast average above the slow one, and each exit came after the fund had given the move back. The year ended with a 3.08% loss on a trade that ran from 2021-10-15 to 2021-11-30. IWM itself rose 16.12% in calendar 2021, so the trend was there for a buy-and-hold investor and the crossover kept stepping out of it.
2022 was a down year for the fund, which lost 20.5% on the calendar year. Buy-and-hold lost 20.1% and the rule lost 15.9%, so the rule finished 4.2 points ahead. It was still a loss. Of 5 round trips, only one won, the 0.38% gain from 2022-07-22 to 2022-09-02. The worst trade of the whole test sits in this year: entry on 2022-06-08 at $179.06, exit on 2022-06-13 at $164.84, a loss of 7.94% in 5 days. 2022-06-13 is also the fund's second-worst day in the window, at -4.73%. The worst month of the rule's record was June 2022 at -7.77%.
2023 was the first year the rule did what a trend rule is meant to do. It closed 2 round trips and won both, and finished the year up 20.1% against 16.4% for buy-and-hold. The 2023-05-23 entry at $171.18 held until 2023-08-17 for a 4.94% gain, and the 2023-11-16 entry at $172.32 ran into April 2024 for 12.61%. December 2023 was the best month of the rule's record, at 11.96%. Buy-and-hold made 11.92% in the same month, so the rule was in the position for the big month.
2024 reversed it. Buy-and-hold gained 11.1% and the rule lost 6.5%, a gap of 17.6 points. Five round trips closed and two won. The 12.61% winner carried over from the previous year, and the 2.59% gain from 2024-09-17 to 2024-12-19 was the other. In between, entries on 2024-07-12 and 2024-08-22 lost 4.2% and 3.24%. November 2024 was a 10.91% month for the rule, followed by December at -7.27%.
2025 was the best year relative to the benchmark, with the rule at 21.9% and buy-and-hold at 12.4%, a lead of 9.5 points. The reason is one trade. The entry on 2025-05-06 at $193.70 held to 2025-11-13 at $239.31 for a gain of 23.55%, the best trade in the test, and it lasted 191 days, the longest hold. The rule was flat through March and April 2025, which are both zero-return months in its record, so it missed the decline into the April low and bought after it.
2026 is a partial year through 2026-10-02. The rule is up 8.9% and buy-and-hold is up 14.9%, so the rule trails by 6 points so far. Two of its three round trips won, including 11.22% from 2026-04-10 to 2026-07-30, and the third lost 3.75% between 2026-08-05 and 2026-09-02.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | −5.0% | 0.5% | −4.2% | −3.2% | 1.0% | −2.2% | 0.1% | −5.8% | 0.6% | −2.9% | 0.0% |
| 2022 | −3.1% | 0.0% | −0.4% | −3.6% | 0.0% | −7.8% | 2.5% | −1.9% | −0.1% | 2.0% | 2.1% | −6.4% |
| 2023 | 4.2% | −1.7% | −0.8% | 0.0% | −2.5% | 7.8% | 6.0% | −5.9% | 0.0% | 0.0% | 0.8% | 12.0% |
| 2024 | −3.9% | 5.5% | 3.5% | −5.1% | 1.3% | −2.8% | 5.1% | −6.9% | −3.9% | −1.4% | 10.9% | −7.3% |
| 2025 | −0.3% | −0.6% | 0.0% | 0.0% | 4.1% | 5.4% | 1.6% | 7.0% | 3.1% | 1.7% | −1.8% | 0.0% |
| 2026 | 5.3% | 0.7% | −3.8% | 5.6% | 4.3% | 3.6% | −2.9% | −2.9% | −0.8% | 0.0% | – | – |
What the monthly record shows
The rule was flat in cash for a number of months, shown as 0 in the monthly table, because the fast average sat below the slow one. Those months fall in 2021-01, 2021-12, 2022-02, 2022-05, 2023-04, 2023-09, 2023-10, 2025-03, 2025-04, 2025-12 and 2026-10. Exposure over the whole window was 57.8%, so the account was in IWM a little more than half of the time.
The losing months cluster in the first two years. In 2021 the rule lost in February, April, May, July, September and November, with September 2021 at -5.79% and February at -5.04%. In 2022 it lost in January, March, April, June, August, September and December. December 2022 was -6.38%, which is the second-worst month after June 2022. Positive months were few before 2023: June 2021 at 1.03%, October 2021 at 0.62%, July 2022 at 2.48%, October 2022 at 2.05% and November 2022 at 2.12%.
2023 and 2024 were swingy in both directions. June 2023 gained 7.84% and July 2023 gained 5.96%, then August 2023 gave back 5.93%. December 2023 brought 11.96%. In 2024 the rule gained 5.5% in February and 3.48% in March, lost 5.11% in April, gained 5.07% in July, lost 6.86% in August, and gained 10.91% in November before losing 7.27% in December. Large positive and large negative months sat next to each other, which is how a fast crossover behaves on a choppy fund. It joins a move after the averages have crossed and leaves after they cross back.
2025 and 2026 were kinder. From May to October 2025 every month was positive, from 4.12% in May to 7.02% in August. January and February 2026 gained 5.33% and 0.67%, March lost 3.83%, and April to June gained 5.61%, 4.35% and 3.58%. July, August and September 2026 lost 2.9%, 2.85% and 0.84%, the last three entries in a run that began with the 2026-08-05 purchase at $301.93.
For comparison, IWM's own month-of-year averages over this window show the weakest results in September at -3.27% and March at -1.74%, and the strongest in November at 3.82% and July at 3.65%. Each month has only five or six observations, so these are descriptions of this window and carry little weight as a pattern. The rule's own September months were negative in 2021, 2022 and 2024 and flat in 2023, which matches the fund's weak September in this sample.
Every trade
EMA 12/26 trend on IWM made 25 closed round trips, an average hold of 48 days, an average winner of 6.57%, an average loser of −3.34%, a profit factor of 1.02, a longest losing streak of 10. It held a position at the close on 57.8% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-02-10 | $215.10 | 2021-03-26 | $204.98 | −4.7% | 44 |
| 2021-04-07 | $209.52 | 2021-04-21 | $202.56 | −3.3% | 14 |
| 2021-04-26 | $212.71 | 2021-05-12 | $203.56 | −4.3% | 16 |
| 2021-06-01 | $212.69 | 2021-07-09 | $210.00 | −1.3% | 38 |
| 2021-08-31 | $211.52 | 2021-09-21 | $205.24 | −3.0% | 21 |
| 2021-09-28 | $211.95 | 2021-10-01 | $207.10 | −2.3% | 3 |
| 2021-10-15 | $214.63 | 2021-11-30 | $208.03 | −3.1% | 46 |
| 2022-01-05 | $212.32 | 2022-01-06 | $205.55 | −3.2% | 1 |
| 2022-03-22 | $194.64 | 2022-04-11 | $186.77 | −4.0% | 20 |
| 2022-06-08 | $179.06 | 2022-06-13 | $164.84 | −7.9% | 5 |
| 2022-07-22 | $172.93 | 2022-09-02 | $173.58 | 0.4% | 42 |
| 2022-10-28 | $170.89 | 2022-12-16 | $166.56 | −2.5% | 49 |
| 2023-01-12 | $175.42 | 2023-03-09 | $178.38 | 1.7% | 56 |
| 2023-05-23 | $171.18 | 2023-08-17 | $179.63 | 4.9% | 86 |
| 2023-11-16 | $172.32 | 2024-04-15 | $194.05 | 12.6% | 151 |
| 2024-05-08 | $197.63 | 2024-06-11 | $194.55 | −1.6% | 34 |
| 2024-07-12 | $207.61 | 2024-08-08 | $198.90 | −4.2% | 27 |
| 2024-08-22 | $210.43 | 2024-09-10 | $203.61 | −3.2% | 19 |
| 2024-09-17 | $213.88 | 2024-12-19 | $219.41 | 2.6% | 93 |
| 2025-01-28 | $223.00 | 2025-02-13 | $220.72 | −1.0% | 16 |
| 2025-02-19 | $221.39 | 2025-02-21 | $221.71 | 0.1% | 2 |
| 2025-05-06 | $193.70 | 2025-11-13 | $239.31 | 23.6% | 191 |
| 2025-12-02 | $244.52 | 2026-03-06 | $249.49 | 2.0% | 94 |
| 2026-04-10 | $261.36 | 2026-07-30 | $290.68 | 11.2% | 111 |
| 2026-08-05 | $301.93 | 2026-09-02 | $290.61 | −3.8% | 28 |
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 winners and the losers
The trade list has 25 round trips and 50 fills. Nine trades won and 16 lost. The median trade returned -2.29% and lasted 34 days. The longest hold was 191 days and the shortest was 1 day. Those numbers describe a rule that mostly takes small losses and occasionally holds a larger gain.
The five best trades returned 23.55%, 12.61%, 11.22%, 4.94% and 2.59%. They held for 191, 151, 111, 86 and 93 days. Every large winner lasted more than three months. Short trades never made money in this record: the trades lasting 1 to 5 days returned -3.19% (2022-01-05 to 2022-01-06), -2.29% (2021-09-28 to 2021-10-01), -7.94% (2022-06-08 to 2022-06-13) and 0.14% (2025-02-19 to 2025-02-21). The one-day trade is the sharpest example: the rule bought at the open on 2022-01-05 at $212.32 after the averages crossed, and sold at the open the next day at $205.55 after they crossed back.
The five worst trades returned -7.94%, -4.7%, -4.3%, -4.2% and -4.04%. The worst is the June 2022 trade. The second and third worst came in the first four months of 2021. The fourth is the 2024-07-12 entry at $207.61, sold 27 days later at $198.90. The fifth is the 2022-03-22 entry at $194.64, sold on 2022-04-11 at $186.77. No single loss was larger than 7.94%, so the maximum drawdown of 34.01% came from a long sequence of small losses and not from one bad trade.
Year by year, the exits break down as follows: 7 round trips and no wins in 2021, 5 trips and 1 win in 2022, 2 trips and 2 wins in 2023, 5 trips and 2 wins in 2024, 3 trips and 2 wins in 2025, and 3 trips and 2 wins in 2026. The longest winning streak was 4 trades and the longest losing streak was 10 trades. The losing streak fits the 2021 record, where all 7 trades lost, and carries into 2022.
The first trade of the test entered on 2021-02-10 at $215.10, which was after IWM had already run higher. The last closed trade entered on 2026-08-05 at $301.93 and exited on 2026-09-02 at $290.61. No position was open at the end of the test.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-03-15 | 2023-05-31 | −34.0% | 807 | 2026-05-06 | 1071 |
| 2021-02-09 | 2021-03-04 | −7.2% | 23 | 2021-03-11 | 7 |
| 2026-06-30 | 2026-09-01 | −6.7% | 63 | not yet | – |
Buy-and-hold's deepest drawdown ran from 2021-11-08 to 2022-06-16 and reached −31.3%.
The 2021 to 2026 drawdown
The rule's deepest drawdown ran from a peak on 2021-03-15 to a trough on 2023-05-31, a fall of 34.01% over 807 days. The account did not reach a new high until 2026-05-06, which is 1,071 days after the trough. From the peak to the recovery, the strategy account spent most of the test under water. The final value of $10,105.51 shows how little ground it made up after that.
Buy-and-hold had its own large drawdown, 31.34%, from 2021-11-08 to 2022-06-16, recovering on 2024-11-06. That one took 220 days to reach the trough and 874 days to recover. The rule's trough came almost a year later than buy-and-hold's trough, because the rule kept losing in the early months of 2023 while the fund was recovering. IWM's maximum drawdown in its own profile is -31.92% over the same dates as buy-and-hold, and the longest stretch under a prior high was 752 sessions.
The rule did not protect the account during the 2022 decline. A trend filter is meant to step aside when the averages turn down, and this one did step aside for part of the year, but it had also bought into the early 2022 weakness. The 2022-01-05, 2022-03-22 and 2022-06-08 entries lost 3.19%, 4.04% and 7.94%. By the time the fast average had crossed above the slow one, the fund had already bounced, and by the time it crossed back, the bounce had faded.
The two other drawdowns are smaller. One was 7.15% from 2021-02-09 to 2021-03-04, recovered by 2021-03-11. It happened in the first weeks of the test. The other is the current one: a peak on 2026-06-30, a trough on 2026-09-01 at 6.71% down, and no recovery yet at the end of the window. That drawdown comes from the final two trades, the 11.22% winner exit on 2026-07-30 and the 3.75% loss on the August entry.
Buy-and-hold had a 27% drawdown from 2024-11-25 to 2025-04-08 and a 10.87% one in early 2026. The rule avoided most of the first of those because it was flat in March and April 2025.
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% | −34.0% | $10,106 | 0.09 |
| 5 basis points | −0.3% | −34.8% | $9,831 | 0.06 |
| 10 basis points | −0.8% | −35.7% | $9,574 | 0.02 |
What trading costs did to the result
The headline run assumes no fees and no slippage. The two cost runs add 5 and 10 basis points per trade. At 5 basis points the CAGR fell from 0.18% to -0.3%, the ending equity fell from $10,105.51 to $9,831.21, and the maximum drawdown widened from 34.01% to 34.77%. At 10 basis points the CAGR was -0.76%, ending equity was $9,573.7 and the maximum drawdown was 35.66%. The Sharpe ratio went from 0.09 in the headline run to 0.055 and then 0.024.
The strategy made 50 fills over 5.74 years. A rule with an edge of 0.18% a year has no room for any friction, and at 5 basis points the edge turns negative. This is the pattern for a fund with a thin margin. When the headline result is close to flat, every basis point of cost moves it below zero. The cost runs here show only the direction and the scale: more friction lowers the result and deepens the drawdown a little.
Buy-and-hold made one fill in the same window, so costs barely touch it. The gap of 7.32 points a year in CAGR between the rule and buy-and-hold in the headline run is therefore a lower bound on the gap in a run with costs. IWM is among the most liquid funds in the set, with average daily dollar volume of $5,885,548,447 over the window and a median minute volume of 46,034 shares. Slippage on an account of $10,000 would be small relative to that depth. The cost runs use a flat charge and say nothing about the exact quotes on any given day.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 0.2% | −34.0% | 25 | 36% | $10,106 |
| EMA 8/21 | 0.5% | −37.4% | 36 | 42% | $10,301 |
| EMA 20/50 | −1.8% | −32.3% | 18 | 33% | $9,010 |
| EMA 12/50 | −0.9% | −34.6% | 20 | 30% | $9,500 |
What the parameter variants show
Three variants of the rule were run on IWM alongside the 12/26 default. None of them beat buy-and-hold, and only one beat the default.
EMA 8/21 uses faster averages. It made 36 trades with 15 wins, a CAGR of 0.52% and an ending equity of $10,301.19. The maximum drawdown was 37.4%, deeper than the default's 34.01%, and the Sharpe ratio was 0.108. Faster averages produced more trades, a higher win count and a slightly better CAGR, with a deeper drawdown. On a choppy fund that is a modest gain for a lot of extra activity, and the 8/21 pair would feel the cost runs more than the default does because it trades more often.
EMA 20/50 uses slower averages. It made 18 trades with 6 wins and ended at $9,009.67, a CAGR of -1.8%, with a maximum drawdown of 32.33% and a Sharpe ratio of -0.05. Slower averages cut the trade count and the drawdown a little, and the CAGR turned negative. A slower crossover enters later and exits later, and on IWM the late entries gave up part of each move.
EMA 12/50 keeps the fast average at 12 and slows the other to 50. It made 20 trades with 6 wins, a CAGR of -0.89%, an ending equity of $9,500.03 and a maximum drawdown of 34.58%. The Sharpe ratio was 0.014.
All four settings sit within a narrow band between -1.8% and 0.52% CAGR. The default of 12/26 lands in the middle of that band at 0.18%. The variants say that no choice of averages on this fund produced a clear edge in this window. They do not say that another window would behave the same way, and the test does not choose between the pairs: with four settings and one window, a small gap between them would not be reliable.
How IWM behaved
| Measure | IWM |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 55.8% |
| Annualized volatility | 22.4% |
| Deepest drawdown | −31.9% (2021-11-08 to 2022-06-16) |
| Up days | 51.7% |
| Average daily range | 1.75% |
| Average overnight gap | 0.61% |
| Correlation to SPY | 0.84 |
| Correlation to QQQ | 0.75 |
| Correlation to TLT | 0.08 |
| Sessions above the 200-day average | 63.3% |
| Crossings of the 200-day average | 34 |
| Falls of 10% or more from a 20-day high | 26 |
How IWM behaved and why it suited these rules poorly
IWM had 1,444 sessions in the window. It rose on 51.7% of them, with an average up day of 1.09% and an average down day of -1.08%. Those averages are nearly mirror images, so the fund's daily moves were close to symmetric. The lag-1 autocorrelation of daily returns was -0.02, which is close to zero and slightly negative. A trend rule gains when today's move tends to continue tomorrow, and for IWM in this window that tendency was absent.
The 200-day average gives another view of trend persistence. IWM spent 63.29% of sessions above its 200-day average and crossed it 34 times in 5.74 years. Thirty-four crossings in that time is a lot for a long-term line, and it describes a fund that kept moving back and forth across its long-run trend. A faster 12/26 pair crosses more often still, and the rule's 25 round trips are a direct result.
The fund fell 31.92% from 2021-11-08 to 2022-06-16 and then took until 2024-11-06 to recover, which is 752 sessions under the prior high at the longest. The calendar-year returns were 16.12% in 2021, -20.5% in 2022, 16.85% in 2023, 11.35% in 2024, 12.68% in 2025 and 15.12% so far in 2026. The rule's yearly results sit at -19.4%, -15.9%, 20.1%, -6.5%, 21.9% and 8.9%. It beat the fund in only the down year and in the two years when a single long trade carried it.
The largest single days were large and clustered. The best day was 2025-04-09 at 8.55%, followed by 2022-11-10 at 6.12%, 2024-11-06 at 5.78% and 2023-11-14 at 5.48%. The worst were 2025-04-03 at -6.47%, 2022-06-13 at -4.73% and 2022-06-16 at -4.62%. Two of the best days fall in November. The rule was flat on 2025-04-09, the single best day, because it was in cash through the April 2025 selloff and had not yet re-entered. A crossover rule is slow to re-enter after a sharp reversal, and the recoveries on IWM were fast.
The overnight and intraday split is unusual for this fund. The overnight log return was 69.84% and the intraday log return was -27.57%, so the fund earned more than its entire return between the close and the next open. Because the rule buys and sells at the open, it holds the position through overnight gaps only on the days it is long, and it receives that overnight part only while invested. The fund's beta to SPY was 1.14 and its correlation to SPY was 0.84, so it moved with the large-cap market but with more amplitude, which is consistent with the 22.35% annualized volatility.
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 interacts with this fund
EMA 12/26 is the core of the MACD. The exponential weighting means recent days count more than older ones, so the pair reacts faster than a simple average of the same length. That speed shows in the trade count: 25 round trips in 5.74 years, with a median hold of 34 days and an average hold of 48.3 days. A slower rule such as the 200-day regime filter ranked fourth on IWM at 4.67% with a maximum drawdown of 22.16%. The golden cross at 1.05% and the trend plus trailing stop at 1.15% finished only a little ahead of EMA 12/26, which ranked tenth at 0.18%. The SMA 10/50 trend was lower at -1.2%, and 3-month momentum was last at -1.59%.
The pattern across the 12 strategies on IWM is that the mean-reversion and regime rules led and the crossover rules sat near the bottom. The RSI(2) snapback made 11.38% with a drawdown of 22.81%, and the dip buyer made 3.08%. The RSI mean reversion rule made 0.73%. That fits the fund's profile: the lag-1 autocorrelation near zero and the many 200-day crossings favour rules that buy weakness over rules that follow strength. The fund's RSI(2) fell below 10 on 165 sessions, and the median 20-day forward return after those sessions was 1.6% against a baseline median of 0.82%. That is the kind of behaviour a crossover does not use.
Among the funds in the broad index category, IWM sits at the bottom for this strategy. IOO made 10.9% with a 15.84% drawdown, VOO made 10.34%, SPY 10.2% and VV 9.84%, all with 19 to 22 round trips. QQQ made 7.85%. QQQE made 1.87%, EEM made 0.29% and IWM made 0.18%. The category median was 7.85%. The same rule on the large-cap funds was far steadier, and the trade counts were similar, so the difference comes from the funds and not from how often the rule traded. On SPY the maximum drawdown was 11.84%.
The result is one window of 5.74 years on one fund, with decisions made once a day. The test does not show that EMA 12/26 fails on small caps in other periods, and it does not show what a different execution time, an added stop or a position size below 98% would change.
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 IWM?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on IWM returned 0.2% annualized vs 7.5% for buy-and-hold: it trailed buy-and-hold by 7.3% per year, with a maximum drawdown of 34.0% (buy-and-hold: 31.3%).
How many trades did it make?
25 completed round trips over 5.7 years (50 fills), with 36% 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 rule do on IWM?
It turned $10,000 into $10,105.51 between 2021-01-04 and 2026-10-02, a CAGR of 0.18% with a maximum drawdown of 34.01%. It closed 25 round trips and won 9 of them. Buy-and-hold on IWM reached $15,145.24 over the same window, a CAGR of 7.5%.
Did EMA 12/26 beat buy-and-hold on IWM?
It did not beat buy-and-hold over the full window. The rule finished ahead in 2022, 2023 and 2025 and behind in 2021, 2024 and 2026. The biggest shortfall was 2021, when the rule lost 19.4% and the fund gained 15.7%.
Why does a 12/26 crossover trade so often on IWM?
The fast pair reacts quickly, and IWM kept moving back and forth across its trend. The fund crossed its 200-day average 34 times in 5.74 years, and the rule made 25 round trips with a median hold of 34 days. Many of the trades lasted only a few weeks and lost money.
What was the best and worst trade of the EMA 12/26 rule on IWM?
The best trade ran from 2025-05-06 to 2025-11-13, returned 23.55% and lasted 191 days. The worst ran from 2022-06-08 to 2022-06-13 and lost 7.94% in 5 days. All five best trades lasted at least 86 days.
What happens to the result with trading costs?
With 5 basis points per trade the CAGR falls to -0.3% and the ending equity is $9,831.21. With 10 basis points the CAGR is -0.76% and ending equity is $9,573.7. The headline run has no costs, so the thin 0.18% CAGR does not survive them.
Do other EMA settings work better on IWM?
EMA 8/21 made 0.52%, EMA 20/50 made -1.8% and EMA 12/50 made -0.89%. The 8/21 pair had the best CAGR but the deepest drawdown at 37.4%. None of the four settings came close to buy-and-hold on this fund in this window.
Which strategy did best on IWM in this test?
The RSI(2) snapback ranked first among the 12 strategies at 11.38% CAGR with a 22.81% maximum drawdown. EMA 12/26 ranked 10th. Mean-reversion and regime rules ranked above the crossover rules on this fund.
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.