Three moving averages aligned in order, the 4 above the 9 and the 9 above the 18, and it looks like the trend has been confirmed three times. People love the 4/9/18 system for how visual it is: you can see it on any chart, and on historical data it neatly catches the big moves. I wrote a robot with the system’s rules and ran it on seven markets over 72 months. I’ll show you what came out and which robot is better to use instead.
- The classic only won on bitcoin. The triple EMA on D1 over 72 months: BITCOIN +31.4%; in the other six markets, from +4.5% to −20.6%. On USDCHF, −20.6%; on oil, −12.5%.
- The reason: the system enters late and exits early. By the time the three averages line up, the move is already well advanced, and the first pullback closes the trade.
- Optimization didn’t save it: on BITCOIN D1 the best surviving set made +73.5% in training, and in two unseen years, barely +6.4%. 87% of the profit over the 72 months came from a single year: 2021.
- What works better: the EMA 13/50 crossover robot, also built on moving averages, but with a slow average that filters out the “sawtooth”: +310.9% over 72 months on USDJPY with a 24.8% drawdown, and +36.9% in the forward test with a profit factor of 1.43.
📊 Download the “EMA Crossover” robot for free, the one that actually works

The strategy rules
The three-average system of 4, 9 and 18 days was described by R. C. Allen in his books for futures traders in the early 1970s; John Murphy analyzes it in detail in “Technical Analysis of the Financial Markets” as the “triple crossover method.” The idea: the short average reacts first, the long one confirms, and the trade is opened only when all three agree:
- Buy: when the averages line up in order: EMA 4 above EMA 9 and EMA 9 above EMA 18. Entry at the open of the next candle.
- Sell: the mirror image: EMA 4 below EMA 9 and EMA 9 below EMA 18.
- Exit: when EMA 4 crosses EMA 9 again. Murphy calls it the first warning: the short average is the first to show that the move is running out of steam.
- Stop: 2 ATR from the entry, in case of a sharp reversal. Position size: based on a risk of 1% of the balance per trade.
Allen used simple averages; today the system is usually traded with exponential ones. In the classic test I used EMAs, and in the optimization I checked both variants. The timeframe of the classic is D1, as in the original.
What it looks like on the chart
Below are two real trades from the robot, from the best set the optimizer found on BITCOIN D1, and both from the forward period. The blue line is EMA 4, the pink one is EMA 9 and the yellow one is EMA 18.

The trade that makes many people like the system. On October 14, 2024 the averages lined up to the upside: EMA 4 above EMA 9 and EMA 9 above EMA 18. The robot bought bitcoin at 62,775 and held the position for more than two months, until December 23, when EMA 9 dropped below EMA 18. Exit at 95,108: +$1,293.

The trade that eats those wins. On March 26, 2025 the averages lined up to the upside again, and the robot bought at 87,748, with a stop at 81,981. Three days later the price fell and hit the stop: −$173. Most of the system’s trades are like this: only 28% closed in profit. With three averages you can’t tell in advance the start of a big trend from a short impulse.
By hand it looks like this: add three exponential moving averages of 4, 9 and 18 to the daily chart. When they line up in order from bottom to top (18, 9, 4), buy at the open of the next candle, with the stop 2 ATR below the entry. Close when EMA 4 drops below EMA 9. It looks beautiful on historical data, when you already know which of the signals started a big trend.
How I ran the test
MetaTrader 5 Strategy Tester, FxPro demo account with its quotes, spreads, commissions and swaps. Period: October 2020 to October 2026, 72 months. $10,000 deposit, 1:500 leverage, “1 minute OHLC” mode. Why exactly 72 months, I’ll tell you at the end of the article.
The triple EMA over 72 months: positive only on bitcoin

| Instrument (D1) | Result | Profit factor | Max drawdown | Trades |
|---|---|---|---|---|
| BITCOIN | +31.4% | 1.56 | 10.0% | 143 |
| GOLD | +4.5% | 1.17 | 12.1% | 68 |
| USDJPY | +3.7% | 1.09 | 13.3% | 104 |
| GBPUSD | −2.7% | 0.92 | 10.4% | 105 |
| EURUSD | −3.9% | 0.89 | 7.5% | 114 |
| WTI (oil) | −12.5% | 0.53 | 16.2% | 86 |
| USDCHF | −20.6% | 0.58 | 23.6% | 120 |
Over six years on daily charts there were 68 to 143 trades per market. Only bitcoin gave a clear positive result; in the other markets the result ranged from +4.5% to −20.6% over six years. There are three reasons:
- Late entry. By the time the three averages line up, a notable part of the move has already happened. In currencies, where trends are short, the robot often enters when the move is already ending.
- Exit too quick. EMA 4 crosses EMA 9 on any pullback, so trades get closed on the first correction, and only 23% to 40% close in profit.
- Costs and swaps. Trades last several days, and swaps take their share: on USDCHF, WTI and GOLD, between $530 and $670 over six years.
Bitcoin is the exception for a clear reason: in these years it had several enormous trends, and even a late entry could capture a good chunk of the move.
What if optimization saves it?
I let the optimizer check what is normally changed in this system: simple averages, like Allen’s, or exponential ones; exit on the EMA 4 and EMA 9 cross, or only when EMA 9 crosses EMA 18; a stop of 2 or 3 ATR; a trend filter with EMA 200; longs only or both sides. I left the periods 4, 9 and 18 unchanged: without them it would already be a different system. The market: BITCOIN D1, the only one where the classic won clearly. The optimization was done only on 10/2020–09/2024, and afterward I checked what it found on 10/2024–09/2026, months the optimizer didn’t see.
- Of 30 profitable sets in training, 18 stayed positive in the forward test, but almost all with just a few percentage points over two years.
- The best set in training (+78.3%, longs only) made barely +3.6% in the forward test.
- The best survivor: exponential averages, exit on the EMA 9 and EMA 18 cross, 2 ATR stop, both sides. In training, +73.5% with a profit factor of 2.87; in the forward test, +6.4% over two years with a profit factor of 1.48. Over the 72 months, +77.8% with a 14.9% drawdown.

The chart shows the main thing: almost the entire result is a single step in early 2021, when bitcoin multiplied several times over. Of the +$7,782 over the 72 months, the robot made $6,787 in 2021, and in 2022 and 2025 it was in the red. I don’t recommend this set. First, +6.4% in two years is about 3% a year, less than what the robots that did pass the test deliver. Second, bitcoin swaps took $3,595 over 72 months, almost a third of what was earned before costs: the system holds trades for weeks, and carrying a crypto position overnight is expensive with brokers. And third, 12 of the 30 sets that were profitable in training ended up negative in the forward test: this was a lucky year, not a stable edge.

What to use instead of the triple EMA: robots that passed the test
If you like moving average systems, use a robot that has withstood verification on data the optimizer didn’t see. Today’s EMA crossover robot is from the same family, but with a slow average that filters out the “sawtooth”:
| Robot | Over 72 months | Max drawdown | Forward 10/2024–09/2026 |
|---|---|---|---|
| EMA 13/50 Crossover, USDJPY H1 | +310.9% | 24.8% | +36.9%, profit factor 1.43 |
| Previous day high breakout, USDJPY H1 | +120.8% | 13.6% | +32.8%, profit factor 1.49 |
| “Holy Grail,” USDJPY H4 | +69.3% | 8.7% | +20.7%, profit factor 2.39 |
| For comparison: the classic triple EMA (7 markets, D1) | from +31.4% to −20.6% | up to 23.6% | — |
📊 Download the “EMA Crossover” robot for USDJPY
📊 Download the “Previous Day Breakout” robot for USDJPY
Where to run them and how to download them
The robots work on MetaTrader 5 with any broker. My test was done on FxPro. The other brokers in my ranking also work: RoboForex and Tickmill. The robots are free for clients of these brokers:
- Open a MetaTrader 5 account with one of the brokers above (or use the one you already have).
- Go to the Telegram bot with the button and send your account number.
- After verification, the bot sends you the file: the robot, the ready-made parameters and the instructions. Run it in your broker’s tester, it takes an afternoon, and put it into operation.
If you want to test the three averages yourself, the bot also has the “Triple EMA” robot, with the classic and the optimized parameters, to experiment with in the tester. It’s not advisable to put it on a real account.
My conclusion
The 4/9/18 triple EMA looks great on historical data: the three averages line up and the trend gets caught. But over 72 months you see something else. The system enters late, exits on the first pullback and wins only when the market makes an enormous trend; in these years that happened once, with bitcoin in 2021. In currencies the classic didn’t give a clear positive result in any market over six years, and optimization only found one set that made 6.4% in two unseen years. Protect your deposit: waiting for the next “2021” with a robot that sits idle the rest of the years is expensive. To trade, use a robot that has passed the test, for example the EMA 13/50 crossover robot: the same moving average idea, but adjusted to the market we have today.
Today I also published the analysis of the EMA crossover robot, which passed the test on USDJPY. Other moving average strategies I’ve tested: the “Golden Cross” 50/200, MACD + EMA 200 and Supertrend.
Why 72 months?
The market changes fundamentally every 3–5 years: the participants and the volatility change, and trends give way to ranges. That’s why I don’t run 10–20 year tests: they mix different markets into a single average figure, and after the market changes, the strategy has to be changed anyway. The triple EMA is a clear example. Allen created it for the commodity futures of the 1970s, where trends lasted months. In 2020–2026 the long trends belonged to bitcoin, while currencies moved more in ranges, and the same system won in some markets and gave its money away to the spread in others. You have to trade the market that exists today.
To search for strategies for the current market I built my app “Find your strategy”, in the browser or on Telegram. There you can test any idea on up to 72 months of historical data, and every 2 weeks the app automatically runs tens of thousands of strategies and shows you the ones that work over the last 6, 12 and 36 months. It doesn’t promise profits: it helps you notice in time that the market has changed and that an old idea has stopped working.
Backtest results do not guarantee future results.
Sources
- R. C. Allen: “How to Build a Fortune in Commodities” (1972) and “How to Use the 4-Day, 9-Day and 18-Day Moving Averages to Earn Larger Profits from Commodities” (1974), the 4/9/18 three-average system.
- John J. Murphy: “Technical Analysis of the Financial Markets” (New York Institute of Finance, 1999), the triple crossover method.
- Own tests in MetaTrader 5 on the FxPro demo server, November 2026.
Where to trade
These are the brokers and exchanges I use and that work with clients from Latin America. Always check that the service is available in your country and start small.
Risk warning: CFDs, Forex and crypto derivatives carry a high risk of losing money due to leverage. This article is not investment advice.


