EMA 12/26 Trend on KMLM
KFA Mount Lucas Managed Futures Index Strategy ETF: trend-following across futures markets, often used as an equity diversifier. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies. KMLM data starts 2021-01-06, so its results cover a shorter span.
EMA 12/26 trend holds KMLM only while the 12-day exponential average sits above the 26-day. The test ran from 2021-01-04 to 2026-10-02 with $10,000 and finished at $13,307, a CAGR of 5.11%. Buy-and-hold on the same fund finished at $14,798, a CAGR of 7.07%. The strategy gave up some return and took a shallower maximum drawdown, 22.03% against 27.27% for holding.
KMLM is a managed futures fund. It follows trend signals across futures markets, so the fund is already a trend follower. Putting a trend filter on a trend follower is the unusual part of this page. The fund's own price moves in long swings, and the EMA pair has to decide which swings to ride. In this window the answer was mixed. The rule captured most of 2022 and the spring of 2026, and it gave back ground in the choppy years between.
Exposure was 56.1% of days, so the account sat in cash for a little under half the test. Of 20 closed round trips, 8 won, a win rate of 40%. The average winner was 6.23% and the average loser was 1.96%, which gives a profit factor of 1.86. A low win rate with winners about three times the size of losers is the usual shape of a trend rule. One trade, from 2022-01-27 to 2022-07-01, returned 27.43% and accounts for a large part of the whole result.
The same rule is described on the EMA 12/26 trend strategy hub, and the fund has its own KMLM page. All figures are hypothetical results from one window, with no fees or slippage in the headline run.
Year by year
| Year | EMA 12/26 trend | buy & hold |
|---|---|---|
| 2021 | 1.7% | 6.0% |
| 2022 | 31.3% | 29.6% |
| 2023 | −9.2% | −6.0% |
| 2024 | −4.4% | −1.2% |
| 2025 | −3.1% | −3.1% |
| 2026 | 18.3% | 19.6% |
How each year played out
The strategy beat buy-and-hold in one calendar year only. That year was 2022, with 31.3% for the rule and 29.6% for holding. In 2021 the rule made 1.7% while the fund made 6.0%. The rule did not enter until 2021-03-23, so January and February were flat at 0%, and the early exit on 2021-08-05 left it in cash through the September months. A sharp November dropped the strategy 5.12%, its worst month of the test, after the 2021-10-01 entry.
2022 was the year the rule paid for itself. KMLM rose 30.2% on the calendar. The fund's own best month was April 2022 at 9.61%, and the strategy caught 9.59% of it. March 2022 added 8.73% and February 2022 added 4.5%. The entry on 2022-01-27 at an adjusted $23.26 and the exit on 2022-07-01 at $29.64 produced the single best trade. A second trade in 2022, from 2022-08-22 to 2022-10-31, added 3.6%. The rule's cash position from November 2022 onward also let it skip the worst month for buy-and-hold, November 2022 at a loss of 10.1%. The strategy printed 0.0% that month.
2023 was the hard year. The rule lost 9.2% while the fund lost 6.0%. It made six round trips that year and only two won. March lost 2.92%, June lost 2.52%, July lost 2.95%, August lost 2.37%, October lost 3.2% and November lost 3.11%. Only April, May and September were positive. Whipsaw is the right word: a fast EMA pair flips to long on a short bounce, then flips back to flat on the next dip, and each flip costs a few percent at the bar price. The rule lost money in a market that was itself losing money, and it lost faster.
2024 repeated the pattern at lower intensity. The rule returned negative 4.4% against negative 1.2% for the fund. April 2024 gained 4.13%, and May gave back 4.9%. The year held four round trips, and one won. In 2025 the rule matched holding exactly at negative 3.1%. It made five round trips, one winner, and spent several months in cash, with 0% printed for February, May, October and November. The cash months limited the damage even though the signal kept firing wrong.
2026 is a partial year, ending 2026-10-02. The rule made 18.3% against 19.6% for the fund. February, March and April added 4.19%, 4.09% and 5.03%, and May lost 4.46%. September added 3.9%. The trend that started in December 2025 gave the strategy its second best trade, 11.67% over 171 days. The exit on 2026-06-01 came before the later gains, and a new entry on 2026-07-16 is still open.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.6% | 5.5% | −0.8% | −1.8% | 0.3% | −0.2% | 0.0% | 4.0% | −5.1% | −0.4% |
| 2022 | 0.0% | 4.5% | 8.7% | 9.6% | 1.5% | −1.3% | 1.6% | 1.1% | 4.0% | −1.5% | 0.0% | 0.0% |
| 2023 | 0.0% | 0.3% | −2.9% | 1.9% | 1.4% | −2.5% | −3.0% | −2.4% | 4.3% | −3.2% | −3.1% | 0.0% |
| 2024 | 0.0% | −0.7% | 2.3% | 4.1% | −4.9% | 0.0% | 0.3% | −4.3% | −1.2% | 0.0% | 0.0% | 0.1% |
| 2025 | −2.2% | 0.0% | 0.3% | −0.7% | 0.0% | −0.9% | −0.8% | −0.3% | 0.7% | 0.0% | 0.0% | 0.9% |
| 2026 | 0.1% | 4.2% | 4.1% | 5.0% | −4.5% | 1.4% | 1.1% | 1.9% | 3.9% | 0.1% | – | – |
What the month table shows
The monthly table has a lot of zeros. A zero month means the account was in cash for the whole month. There are 2021 zeros in January, February and September, and in 2022 there is a long run of 0.0% across November and December. The same pattern appears in 2023 January and December, and in 2024 across October and November. These blocks are where the rule's lower exposure shows up in the numbers.
The best strategy months are all in strong fund months. April 2022 at 9.59%, March 2022 at 8.73%, April 2021 at 5.46%, April 2026 at 5.03% and February 2022 at 4.5% make up the top of the list. April comes up often. The fund's average April return over six observations is 4.28%, the highest calendar month in the data. November is the weakest at negative 4.73% over five observations. Six or five observations per month are too few to call that a seasonal pattern. The test only reports what happened in this window.
The worst strategy months are scattered. November 2021 lost 5.12%, May 2024 lost 4.9% and May 2026 lost 4.46%. In each case the rule was long when the fund dropped, because an EMA cross needs time to turn. The monthly table gives no sign that the rule avoids losing months. It only avoids the stretches in which the fast average stays under the slow average.
Every trade
EMA 12/26 trend on KMLM made 20 closed round trips and one position still open at the end of the test, an average hold of 54 days, an average winner of 6.23%, an average loser of −1.96%, a profit factor of 1.86, a longest losing streak of 7. It held a position at the close on 56.1% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-03-23 | $21.57 | 2021-08-05 | $22.35 | 3.6% | 135 |
| 2021-10-01 | $22.61 | 2021-12-02 | $22.21 | −1.8% | 62 |
| 2022-01-27 | $23.26 | 2022-07-01 | $29.64 | 27.4% | 155 |
| 2022-08-22 | $30.52 | 2022-10-31 | $31.62 | 3.6% | 70 |
| 2023-02-17 | $28.42 | 2023-03-16 | $27.65 | −2.7% | 27 |
| 2023-04-20 | $28.56 | 2023-06-21 | $28.75 | 0.7% | 62 |
| 2023-07-10 | $29.52 | 2023-07-25 | $28.63 | −3.0% | 15 |
| 2023-08-04 | $29.21 | 2023-08-08 | $28.59 | −2.1% | 4 |
| 2023-08-15 | $29.48 | 2023-10-12 | $29.97 | 1.7% | 58 |
| 2023-10-18 | $30.81 | 2023-11-06 | $29.55 | −4.1% | 19 |
| 2024-02-13 | $27.77 | 2024-05-07 | $27.94 | 0.6% | 84 |
| 2024-07-09 | $27.94 | 2024-08-07 | $27.30 | −2.3% | 29 |
| 2024-08-22 | $28.05 | 2024-08-30 | $27.55 | −1.8% | 8 |
| 2024-09-06 | $27.87 | 2024-09-26 | $27.54 | −1.2% | 20 |
| 2024-12-18 | $26.74 | 2025-01-21 | $26.18 | −2.1% | 34 |
| 2025-03-17 | $25.92 | 2025-04-02 | $25.80 | −0.5% | 16 |
| 2025-06-03 | $25.28 | 2025-06-12 | $25.04 | −0.9% | 9 |
| 2025-07-07 | $25.09 | 2025-08-04 | $24.84 | −1.0% | 28 |
| 2025-08-19 | $25.48 | 2025-10-30 | $25.63 | 0.6% | 72 |
| 2025-12-12 | $25.70 | 2026-06-01 | $28.70 | 11.7% | 171 |
| 2026-07-16 | $29.00 | open | – | 7.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 trade list in detail
The list has 21 entries: 20 closed trades and one open position. The median trade returned negative 0.95% and the median hold was 34 days. The longest hold was 171 days and the shortest was 4 days. The average hold of 53.9 days comes from a few long winners pulling the mean up while many short losers sit below the median.
The three biggest winners were the 2022-01-27 trade at 27.43%, the 2025-12-12 trade at 11.67% and the 2021-03-23 trade at 3.62%. After those, the fourth best, from 2022-08-22, returned 3.6%, and the fifth, from 2023-08-15, returned 1.66%. The distribution falls off fast. Past the second trade, no winner returned more than 3.62%. The strategy's whole edge in this window sits in two trades.
The losers cluster in 2023. The worst, from 2023-10-18 to 2023-11-06, lost 4.09% in 19 days. The next two, 2023-07-10 and 2023-02-17, lost 3.01% and 2.71%. The shortest trade of the test, from 2023-08-04 to 2023-08-08, lasted 4 days and lost 2.12%. The exit-year table shows 2023 with six round trips and two wins, 2024 with four and one, and 2025 with five and one. The longest losing streak was 7 trades. The longest winning streak was 2.
The open position began on 2026-07-16 at an adjusted $29.00 and is marked at 7.24% on the last close. The strategy count excludes it from the 20 round trips. Prices in the trade list are adjusted for splits and dividends, so they sit below the quotes shown at the time.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2022-06-13 | 2025-08-28 | −22.0% | 1172 | not yet | – |
| 2021-05-12 | 2021-07-19 | −9.4% | 68 | 2022-03-02 | 226 |
| 2022-04-18 | 2022-04-25 | −4.4% | 7 | 2022-05-02 | 7 |
Buy-and-hold's deepest drawdown ran from 2022-10-14 to 2025-06-20 and reached −27.3%.
The drawdown that has not recovered
The strategy's deepest drawdown ran from a peak on 2022-06-13 to a low on 2025-08-28, a fall of 22.03% over 1,172 days. It has not recovered. That is the account's equity curve, and it includes both the loss on the final days of the 2022 trade and the grinding series of small losers that followed. The peak came a few weeks before the exit on 2022-07-01, which means the strategy gave back the gains from that trade while it waited for the next entry.
Buy-and-hold's deepest drawdown ran from 2022-10-14 to 2025-06-20 and reached 27.27%. The strategy peaked earlier because it was out of the market in the fall and winter of 2022. The same fund's max drawdown on the ETF profile is 27.64%, measured on the fund's own daily data from the start of its history in the window. The strategy was 5.24 points shallower than the fund at the deepest point. The gap is real, but it comes with a lower CAGR of 5.11% against 7.07%.
The second drawdown, from 2021-05-12 to 2021-07-19, was 9.39% and recovered on 2022-03-02 after 226 days. Buy-and-hold had the same peak and trough dates and the same depth of 9.39%. The strategy was long through that decline, which shows the rule did nothing to protect in that case. The third entry, 4.42% from 2022-04-18 to 2022-04-25, recovered in 7 days. That is a one-week pullback inside a strong rally.
The risk picture for the rule is a long slow bleed more than a crash. The account spent a long time underwater because trade after trade lost a little. A reader who tolerates a three-year recovery period has a different problem from one who fears a single day of loss. The worst single trade lost 4.09%, which is small. The 22.03% drawdown is the sum of many small ones.
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.1% | −22.0% | $13,307 | 0.52 |
| 5 basis points | 4.7% | −23.3% | $13,043 | 0.49 |
| 10 basis points | 4.4% | −24.5% | $12,789 | 0.46 |
What slippage did to the result
The headline run fills at the bar price with no slippage. Two cost runs charge 5 and 10 basis points on every fill. At 5 basis points, CAGR fell to 4.74%, the maximum drawdown deepened to 23.25% and the final value was $13,043. At 10 basis points, CAGR fell to 4.38%, the drawdown was 24.46% and the final value was $12,789. The Sharpe ratio moved from 0.52 to 0.487 to 0.456.
The strategy made 41 fills, 20 round trips plus the open entry. That is a modest number for a daily rule, and the cost drag is correspondingly mild. The drag would be larger on a fund with a wider spread. KMLM's average daily dollar volume in the data is $3,113,002 and the median minute volume is 400 shares. A thin market like that can produce wider fills than the bar price suggests, and the 10 basis point run is a reasonable stand-in for that. The cost runs apply a flat charge per fill and do not model the spread explicitly.
Even at 10 basis points the strategy still made money, ending at $12,789 on $10,000. The gap to buy-and-hold widened, because holding has one fill at the start and no further charges. Buy-and-hold made 1 fill in the test. The gap in end equity between the headline strategy run and the holding run was already negative before costs, and the cost runs push the strategy further behind.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 5.1% | −22.0% | 20 | 40% | $13,307 |
| EMA 8/21 | 5.8% | −22.1% | 27 | 41% | $13,789 |
| EMA 20/50 | 1.2% | −30.1% | 15 | 20% | $10,692 |
| EMA 12/50 | 1.2% | −32.0% | 17 | 24% | $10,701 |
What the parameter variants show
Three variants change the EMA lengths. EMA 8/21 is faster than the published 12/26 and returned a CAGR of 5.76%, a 22.13% drawdown and a final value of $13,789. It made 27 trades with 11 wins. That beat the published rules on return and Sharpe, 0.583 against 0.52, with an almost identical drawdown. The faster pair got into the 2022 trade earlier or out of the later losers sooner, though the facts do not say which. Both versions beat buy-and-hold's drawdown and trailed its return.
The slower pairs did badly. EMA 20/50 returned 1.17% with a 30.09% drawdown, a Sharpe of 0.166 and 15 trades, of which 3 won. EMA 12/50 returned 1.19% with a 32.02% drawdown, a Sharpe of 0.168 and 17 trades, of which 4 won. Both are worse than holding the fund on return and on drawdown. The slow average at 50 days is the common factor. A 50-day slow line reacts after much of the move is over, and it keeps the position open through the declines that follow.
Three variants make a small sample. The pattern across them is that a faster slow line helped here and a slower one hurt. The results sit on one window of 5.74 years in which the fund had one large rally and one long decline. Another window could rank the variants differently. The published 12/26 sits between a faster setting that scored higher and slower ones that scored far lower, which is a sign that the choice of length mattered a lot in this test. The monthly cycle rule on KMLM uses no moving average at all and earned a CAGR of 8.06% on the same fund.
How KMLM behaved
| Measure | KMLM |
|---|---|
| Data in this test | 2021-01-06 to 2026-10-02 (1313 sessions) |
| Total return, buy and hold | 49.0% |
| Annualized volatility | 15.3% |
| Deepest drawdown | −27.6% (2022-10-14 to 2025-06-20) |
| Up days | 52.4% |
| Average daily range | 0.96% |
| Average overnight gap | 0.56% |
| Correlation to SPY | -0.16 |
| Correlation to QQQ | -0.17 |
| Correlation to TLT | -0.39 |
| Sessions above the 200-day average | 45.6% |
| Crossings of the 200-day average | 42 |
| Falls of 10% or more from a 20-day high | 5 |
What KMLM's own statistics say
KMLM's buy-and-hold return in the data was 49.02% with a CAGR of 7.2% and annualized volatility of 15.28%. Up days were 52.36% of sessions. The average up day was 0.7% and the average down day was 0.73%. The fund's lag-1 autocorrelation is 0, so one day's move gives no hint about the next. Trend rules need persistence over weeks, which daily autocorrelation does not measure.
The fund crossed its 200-day average 42 times in the test and spent 45.6% of sessions above it. That is a lot of crossings for a fund that earned 49.02% in total. Frequent crossings tend to produce whipsaw for any moving-average rule. The strategy took 20 closed trades in the same window, and the EMA pair is smoother than a single price crossing.
Beta to SPY was negative 0.15, beta to QQQ was negative 0.11 and beta to TLT was negative 0.39. Correlations were negative 0.16, negative 0.17 and negative 0.39. The fund moved against stocks and bonds, which suits its role as a diversifier. It did the most when stocks and bonds fell together in 2022, and the 30.2% for the calendar year came in a period when the SPY profile and the TLT profile were both weak. The strategy's best trade is that year.
The fund's overnight and intraday numbers are odd. The overnight log return was 128.1% and the intraday was negative 88.21%, so the overnight share of return was 321.13% and the intraday share was negative 221.13%. All of the gain came between the close and the next open, and the trading day itself lost ground on net. A rule that buys at the market open, as this one does, enters after the overnight gap has already happened. The average overnight gap was 0.56%, large against an average daily range of 0.96%. The strategy's fills at the open pay the gap on entry, which helps explain why it trailed holding.
The fund's worst day was negative 5.23% on 2022-11-10 and its best was 3.42% on 2021-09-28. Falls of 10% or more from a 20-day high happened 5 times over 21 days. RSI(14) fell below 30 on 31 sessions, and the median five-day forward return after those was 0.22% against a baseline median of 0.21%. The 20-day median after such a signal was 0.49% against 0.64% for the baseline. That means oversold readings on this fund did not point to a rebound above the usual. The correlation table puts CTA at 0.43 and TBF at 0.4 as the most similar funds, and IGIB at negative 0.45 and AGG at negative 0.44 as the least.
The rules
Hold while the 12-day exponential average is above the 26-day, the core of the MACD used as a position switch.
- WHEN the market opens · IF not invested AND EMA(12) > EMA(26) · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND EMA(12) < EMA(26) · THEN sell the whole position
The 12/26 exponential moving average pair is the core of the MACD indicator. Exponential averages weight recent days more than simple averages, so this crossover reacts faster than an SMA pair of the same length. Used as a long/flat switch, it gives you a position you can hold and measure.
Good for: traders who like MACD logic but want it expressed as a simple, testable long/flat rule.
Watch out: faster reaction means more trades and more whipsaws than a 50/200 cross; check the trade count on each backtest page.
How the rules interact with this fund
The rule buys when EMA(12) rises above EMA(26) and sells the whole position when it falls below, always at the market open, using 98% of the sleeve. The exponential weighting makes the pair react faster than an SMA pair of the same lengths. KMLM's volatility of 15.28% a year is moderate, and its day-to-day moves have no autocorrelation. A fast pair on that kind of series flips often when the fund is range-bound and holds well when the fund trends for months.
The test shows both regimes. From 2022-01-27 to 2022-07-01 the fund trended and the rule held for 155 days. From 2025-12-12 to 2026-06-01 it trended again and the rule held for 171 days. Between those, in 2023, 2024 and 2025, the fund ranged and the rule made many short trades, most of them losers. The rule's results reduce to how many months the fund trended. With a long/flat switch there is no way to profit from the falling periods, and no hedge when the fund drops while the rule is long.
The strategy ranks third of 12 strategies on KMLM, and KMLM ranks 25th of 59 funds for this strategy. The two strategies ahead are the monthly cycle at 8.06% CAGR and the weekly 7% target at 6.13%, which see the same fund differently. The median CAGR for this strategy across all 59 funds is 2.76% and across the alternative-strategy category it is 4.27%, so KMLM at 5.11% is above both medians. In the category, CLSE returned 14.01% with a drawdown of 10.18%, then KMLM at 5.11%, ALTY at 4.27%, CTA at 3.13%, QAI at 2.76% and RINF at negative 0.22%. The ALTY version and the RINF version have their own pages.
The limits of the test are plain. One window of 5.74 years, no fees in the headline run, 20 closed trades, and a result that depends on two of them. Backtest results are hypothetical and do not predict what any rule will do next. The rule is a daily-decision rule and the test does not cover intraday exits.
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 KMLM?
Over 2021-01-04 to 2026-10-02, EMA 12/26 trend on KMLM returned 5.1% annualized vs 7.1% for buy-and-hold: it trailed buy-and-hold by 2.0% per year, with a maximum drawdown 5.2 points shallower than holding (22.0% vs 27.3%).
How many trades did it make?
20 completed round trips over 5.7 years (41 fills), with 40% of round trips closing profitably.
Is this the same as trading MACD signals?
It uses the MACD's underlying trend component. Classic MACD trades the signal-line crossover of the 12/26 spread. This template trades the spread's sign directly, which is simpler and can be built fully in blocks.
Did EMA 12/26 trend beat buy-and-hold on KMLM?
No. The strategy returned a CAGR of 5.11% against 7.07% for buy-and-hold from 2021-01-04 to 2026-10-02. The final value was $13,307 against $14,798. It had a shallower maximum drawdown, 22.03% against 27.27%, and beat holding in one calendar year, 2022.
How many trades did EMA 12/26 trend make on KMLM?
It made 20 closed round trips and 41 fills, plus one position still open at the end. Eight round trips won, a win rate of 40%. The median trade lost 0.95% and the median hold was 34 days.
What was the best trade?
The entry on 2022-01-27 at an adjusted $23.26 and the exit on 2022-07-01 at $29.64 returned 27.43% over 155 days. The second best was 11.67%, from 2025-12-12 to 2026-06-01. No other winner returned more than 3.62%.
How much did trading costs change the result?
At 5 basis points of slippage per fill the CAGR fell to 4.74% and the final value to $13,043. At 10 basis points the CAGR fell to 4.38% and the final value to $12,789. The headline run has no costs.
Would a different EMA length have worked better on KMLM?
EMA 8/21 returned 5.76% with 27 trades, which was higher than the published 5.11%. EMA 20/50 returned 1.17% and EMA 12/50 returned 1.19%, both with drawdowns above 30%. The variants come from one window, so they describe this test only.
Why did the strategy lose money in 2023, 2024 and 2025?
The fund moved sideways and down in those years, and the fast EMA pair kept entering and exiting. In 2023 it made six round trips and only two won. The strategy lost 9.2% in 2023 and 4.4% in 2024, and matched the fund at negative 3.1% in 2025.
Is KMLM a good fit for a moving-average rule?
In this window the fund crossed its 200-day average 42 times and had a daily autocorrelation of 0. The rule worked in the two long trends and lost in the ranges. The result sits on two trades, so it is a thin base for any conclusion.
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.