ForexCopilotEA

Strategy

Trend Following Strategy Explained: How Trend EAs Work and Which Timeframe to Run Them On

By Benjamin Lee · Updated · 9 min read

Trend following is the oldest systematic idea in trading: do not predict where price is going, wait until it is clearly going somewhere, join it, and stay until it turns. It is simple to describe, hard to live with, and well suited to automation, because the rules are mechanical and the discipline is exactly what people lack. This guide explains how trend-following Expert Advisors enter and exit, why the profile of a trend system looks so strange to newcomers (many small losses and a few large wins), what drawdown to expect, and which timeframe, among H1, H4 and D1, suits an EA best.

Key takeaways

  • A trend follower wins less than half the time and makes money because its average win is several times its average loss.
  • Long, flat or falling stretches are normal. The drawdown is measured in months, not days.
  • Entries are usually breakouts or moving-average signals; the exit, a trailing stop, matters more than the entry.
  • For EAs, H4 is the most balanced timeframe; H1 gives more trades and more false starts; D1 gives few trades and needs years of data to judge.
  • Trend systems fail in ranges. Judge one over a history that contains a long range, not only a strong trend.

The idea in one paragraph

A trend follower assumes that when a market has moved a long way in one direction, it is more likely to keep going than to reverse, at least often enough to pay. It does not know when a trend will start or end. It defines a trend by a rule, such as price breaking above its highest high of the last 20 days, or a fast moving average crossing above a slow one, enters in that direction, and exits with a trailing stop that follows price. The system accepts many false starts as the price of catching the real moves.

Why the profile looks strange: low win rate, big winners

New traders judge systems by win rate, and a trend follower looks terrible by that measure. It might win 30 to 40 percent of its trades. The rest are small losses, because the stop is placed close enough that a false start costs little. The profit comes from the trades that turn into real trends, where the trailing stop lets the winner run to several times the initial risk. The total is positive because the few large wins are bigger than the many small losses added together.

Win rate 25%, average win 3.6, average loss 1.0, total +3.3 unitsMany small losses, a few large wins. Invented trades.
Illustrative only; the trades are invented. Eighteen small losses, six larger wins and a positive total. The win rate is 25 percent; the system makes money because the average win is about 3.6 times the average loss.

The arithmetic is worth doing once. If a system wins 35 percent of the time, with an average win of 3 units and an average loss of 1, expectancy per trade is 0.35 times 3 minus 0.65 times 1, or +0.40 units. The calculator lets you try other combinations and shows the break-even win rate, which falls as the payoff rises.

Interactive: win rate is not edge

Expected result per trade
+0.35
Profit factor
1.64
Break-even win rate
33%

At these numbers the system has a positive edge before costs. Add spread, commission and slippage per trade and re-check.

How trend EAs enter and exit

Common entry and exit rules in trend-following EAs
PartTypical ruleTrade-off
Breakout entryBuy above the highest high of the last N bars; sell below the lowest lowSimple and robust; enters late and suffers false breakouts in ranges
Moving-average crossFast average crosses slow averageSmooth; lags more than a breakout and whipsaws in a range
Momentum filterOnly trade when ADX or a slope measure is above a thresholdFewer false starts; misses early trend moves
Stop lossA multiple of ATR below entry (often 1.5 to 3 ATR)Sized to the market's own volatility
Trailing exitTrail the stop behind price, by ATR or below the recent lowLets winners run; gives back part of each profit
Time exitClose if no progress after a set number of barsFrees capital from stalled trades
Position sizingRisk a fixed percentage; size from stop distanceKeeps each loss equal; see lot sizing methods

Most of a trend system's quality sits in the exit. A system that takes profit too early turns a trend follower into a poor scalper, and one that never trails gives a whole move back. The cleanest way to see the difference is to test the same entry with two exits and compare the average win. If you are reading a vendor's test, look for the average win and average loss, not only the profit factor.

What drawdown a trend system has, and why it is hard to hold

Trend systems have long drawdowns because they are wrong in clusters. In a range, every breakout fails and the system takes a small loss repeatedly. Ten or fifteen losses in a row, each small, is normal for a 30 percent win rate. The drawdown is shallow per trade and long in time: the equity curve can sit below its previous high for many months while the system waits for the next trend. The decision that ends more trend-following careers than any other is switching the system off during that wait, just before the next move.

EquityUnderwater: % below the previous equity peakmax 14.5%Wide red areas = long time spent recovering, even when the depth looks modest.
Illustrative: an underwater chart shows how far equity sits below its previous high, and for how long. For a trend system the long stretch below the high, not the depth, is the hard part.
Losing streak length for a given win rate (probability of at least this many losses in a row at some point in 500 trades, approximate)
Win rate8 losses in a row12 losses in a row16 losses in a row
30%Almost certainAbout 65%About 14%
40%About 85%About 14%About 1%
50%About 50%About 6%About 0.4%

The table is an approximation from the probability of consecutive losses, and the point is the direction: at a 30 percent win rate, a run of a dozen losses is something you should expect to see, not something that means the system is broken. Plan the account and your patience for it. Our guides on what to do when an EA is in drawdown and when to turn off your EA give a way to decide ahead of time.

Best timeframe for trend following: H1, H4 or D1

Unlike scalping, trend following is not squeezed by costs, because the targets are many times the spread on any of these charts. The choice is a trade-off between trade frequency, noise and how long you must wait to know whether the system works.

Trend timeframes compared (trade counts are illustrative for a single symbol)
TimeframeTrades per yearNoise and false startsCost share of a targetYears of data for about 150 tradesBest for
H1About 100 to 150Highest; many whipsawsSmall, but visible on tight stops1 to 1.5Active traders who accept more false starts
H4About 30 to 60ModerateVery small3 to 5The balanced choice for most EAs
D1About 8 to 20Lowest; slow signalsNegligible8 to 20Patient, diversified, multi-market systems
  • H1about 125 a year
  • H4about 45 a year
  • D1about 14 a year
Illustrative number of trades per year on one symbol, by timeframe (scaled so H1 at 125 fills the bar)

The last column is the one buyers forget. A daily-chart trend system on one symbol takes a dozen or so trades a year. To see 150 trades, enough for any statistic to mean something, you need a decade or more of history, and a six-month live record tells you almost nothing. That is why serious daily systems trade many markets at once. A single-symbol H4 system reaches a meaningful sample in a few years, which is why most EAs aimed at retail traders sit there.

  • Choose H4 if you want a trend EA on one or a few symbols, a sample you can evaluate in a reasonable time, and moderate noise.
  • Choose H1 if you want faster feedback and can tolerate more false starts and a lower payoff per trade. Watch the spread on tight stops.
  • Choose D1 if you can run many markets, have years of data, and can sit through a long flat spell.

Which markets trend, and when trend systems fail

Gold, equity indices and some currency crosses have produced long trends in many years, and trend followers have concentrated on them. No market trends all the time. Currencies that spend long periods in ranges, such as many crosses of Australian, New Zealand and Canadian dollars, punish breakout systems with repeated false starts, which is why range-bound pairs attract grids instead. Trend systems also suffer when volatility collapses, since a stop of a few ATR becomes too small to trade, and when news gaps jump a stop. Our guide on the best currency pairs for EAs goes into the characteristics of each.

A practical consequence: when you test a trend EA, make sure the history contains a long range, not just a strong trend. A system tested only on a trending decade will look excellent and tell you very little. The long, flat period is the test.

Buying or building a trend EA: what to check

A trend-following EA checklist
0/6

For example, our Quantum Commander verdict reviews a trend-following US30 EA with a stop on every trade. It is a useful case study in the maths above: the vendor's live signal won 69 percent of its trades and still lost money because its average loss was 2.6 times its average win, the reverse of the classic trend profile. If you want to see the principles applied to products, our EA verdicts set out the evidence for each. Browse gold EAs and forex EAs, where each listing states its design.

Sources and further reading

  1. MetaTrader 5 Help: Strategy TestingThe Strategy Tester: testing modes, settings and forward testing.
  2. MetaTrader 5 Help: Testing ReportWhat each figure in the tester's report means, including drawdown.
  3. MetaTrader 5 Help: Strategy OptimizationHow optimisation and forward testing work in the Strategy Tester.

Frequently asked questions

What is the best timeframe for trend following?

For a single-symbol Expert Advisor, H4 is the most balanced: enough trades to evaluate within a few years, moderate noise and negligible cost share. H1 gives more trades and more false starts. D1 gives very few trades and suits multi-market systems with long histories.

Why do trend-following strategies have a low win rate?

They use close stops, so false starts cost little, and trailing stops that let real trends run to several times the initial risk. The few large winners pay for the many small losers, so a 30 to 40 percent win rate can still be profitable.

How long can a trend-following EA stay in drawdown?

Months, sometimes more than a year. Trend systems lose in clusters during ranges, and equity can sit below its previous high until the next trend. Plan the account size and your patience for that before you start.

Does trend following work on gold?

Gold has had long trends in many periods and attracts trend systems, but it also has long ranges and sharp news gaps. Test any gold trend EA over a history that includes a range, and read our gold EA settings guide before running one.

Is a trend-following EA better than a grid?

Neither is better in general. A trend system has a low win rate, a high payoff and long drawdowns; a grid has a high win rate, a small payoff and rare deep losses. They suit different markets and temperaments, and some traders run both.

Expert Advisors in these styles

Apply the checks above to any of these before you buy: read the manual, run your own backtest, and start on demo.