Blog / Strategy
Strategy

Chandelier Trend Rider

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

Chandelier Trend Rider is a trend-following Expert Advisor (EA) for MetaTrader 5 that combines a Donchian channel breakout entry with an EMA (Exponential Moving Average) regime filter and a ratcheting ATR Chandelier Exit for trade management. In plain terms, it waits for price to break out of its recent trading range, confirms that the breakout agrees with the broader trend, and then rides the move using a volatility-based trailing stop that only ever tightens. It belongs firmly in the "trend-rider" family of systems — designed to catch sustained directional moves rather than to scalp small, quick profits.

The strategy is built for trending market conditions. A Donchian channel simply marks the highest high and lowest low over a set number of bars; a breakout beyond that boundary is, by construction, a fresh directional move that breaks recent structure. Because breakouts fail frequently in choppy, sideways markets, the EMA filter is layered on top to discard signals that fight the prevailing trend. This makes Chandelier Trend Rider best suited to instruments and timeframes that produce clean, extended trends — think FX majors, gold, or an index on the M15 through H4 charts.

As a learning tool, this EA is a clear, well-structured example of how three independent ideas — a trend filter, a breakout trigger, and a volatility-scaled trailing stop — can be stacked so that each layer suppresses a different class of false signal. If you are studying how professional trend-following systems are constructed, or how the classic Chandelier Exit works in practice, this strategy offers a compact and readable blueprint. It is not a shortcut to results, and it is presented here purely for study and analysis.

How It Works

The EA evaluates its logic once per newly-closed bar, and every calculation is based on already-completed bars, so a signal level never "sees" the bar that triggers it. Here is how each stage operates.

Entry — the strategy signals a long when:

Entry — the strategy signals a short when:

The EMA filter is the single biggest false-signal suppressor here. It deliberately discards the counter-trend edge of the channel — the zone where breakouts most often fail and reverse — so only trend-agreeing breaks are taken.

Initial stop-loss logic:

Trade management — the ratcheting Chandelier Exit:

Take-profit logic:

Because everything is expressed in ATR and raw bar structure, the system is point-size and timeframe agnostic — it adapts to whatever symbol and timeframe you apply it to.

chandelier trend rider MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
ChannelPeriod 20 10 60 Lookback in bars for the Donchian breakout extreme and the Chandelier trail. Larger values require a longer range to break, producing fewer but more significant signals.
TrendEmaPeriod 50 20 200 Length of the EMA that defines the trend regime the breakout must agree with. Longer EMAs define a slower, broader trend.
AtrPeriod 14 7 30 ATR length used for both the initial stop and the Chandelier trailing distance. Governs how volatility is measured.
InitialStopAtrMult 2.0 1.0 5.0 Initial protective stop distance, expressed in ATR multiples. Higher values give the trade more room but increase risk per trade.
ChandelierAtrMult 3.0 1.5 6.0 Chandelier trailing-stop distance from the running extreme, in ATR multiples. Wider values trail more loosely and give trends more room to breathe.
TakeProfitRewardMult 4.0 0.0 10.0 Backstop take-profit as a multiple of the initial risk (R-multiple). Set to 0 for no hard target.
Lots 0.10 0.01 1.00 Fixed trade volume in lots.
Magic 8801 0 9,999,999 Unique magic number so the EA can identify and manage only its own trades.
chandelier trend rider MT5 EA — MQL5 source code

Recommended Chart Settings

Chandelier Trend Rider was designed as a timeframe- and symbol-agnostic trend system, but it is best suited to instruments that produce sustained, clean trends. Historically, breakout-plus-trend approaches like this tend to be studied on trending FX majors (such as EUR/USD or GBP/USD), gold (XAU/USD), or a major index, on timeframes from M15 up to H4. Higher timeframes generally produce fewer, more reliable breakouts, while lower timeframes generate more signals with more noise.

Only the primary (chart) timeframe is ever read, so simply attach the EA to a chart of the symbol and timeframe you wish to study. Keep in mind that results will vary considerably across different symbols, timeframes, and market conditions — a setting that behaves well in one regime may behave very differently in another. Always test any configuration on historical data and a demo account before drawing conclusions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like every trading approach, Chandelier Trend Rider has clear strengths and equally clear limitations. Understanding both is essential.

Strengths of this approach:

Known limitations:

This EA is best understood as an educational example of disciplined trend-following mechanics — not as a finished, guaranteed solution. Study its behaviour, understand why each rule exists, and form your own view before ever considering live use.

Risk Management Tips

Sound risk management matters far more than any single entry rule. Consider these general principles as you study this strategy:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog