Donchian Channel With ATR Trailing Stop MT4
- Indicators
-
Kenichiro Sakamoto
I'm Kenichiro Sakamoto, the developer behind FXEA365 — a studio building transparent, rule-based Expert Advisors for MetaTrader 5. - Version: 2.0
- Updated: 16 July 2026
FREE — the Donchian breakout channel and the ATR trailing stop that manages the trade after the break, drawn on one chart.
Most breakout indicators show you the entry and stop there. The hard part of trend following is what happens next: where the stop goes, when it ratchets, and when the move is over. This one draws both halves of the system.
=== WHAT IT DRAWS ===
- Donchian channel (upper and lower) over the last N closed bars.
- Gold arrows where a bar CLOSED beyond the channel — the moment a breakout system would actually enter.
- The ATR trailing stop that would then carry the position: green while long, red while short, dotted. It only ever moves toward price (it never loosens), and it disappears when price closes through it — that is where the trade would end.
=== NO REPAINTING ===
The channel is built from bars that are already closed, and the breakout is judged on the previous bar's close. Nothing is drawn from the forming bar, so an arrow that appears never disappears later. You can scroll back and trust what you see.
=== SETTINGS ===
- N_Channel (default 40): channel length in bars.
- Trail_ATR (default 8.0): trailing distance as a multiple of ATR.
- ATR_Period (default 14).
- ShowArrows: turn the breakout markers on or off.
Defaults are a USDJPY H1 configuration. A breakout length that suits one market rarely transfers to another — re-fit N_Channel and Trail_ATR on the instrument you trade.
=== HONEST NOTE ===
This is a visualisation tool, not a signal service. Breakout trend following has a win rate well below 50%: many small losses, a few large winners. It works in trending markets and bleeds in ranges. Watch how the arrows and the trailing stop behave on your instrument before you trade the idea.
Most breakout indicators show you the entry and stop there. The hard part of trend following is what happens next: where the stop goes, when it ratchets, and when the move is over. This one draws both halves of the system.
=== WHAT IT DRAWS ===
- Donchian channel (upper and lower) over the last N closed bars.
- Gold arrows where a bar CLOSED beyond the channel — the moment a breakout system would actually enter.
- The ATR trailing stop that would then carry the position: green while long, red while short, dotted. It only ever moves toward price (it never loosens), and it disappears when price closes through it — that is where the trade would end.
=== NO REPAINTING ===
The channel is built from bars that are already closed, and the breakout is judged on the previous bar's close. Nothing is drawn from the forming bar, so an arrow that appears never disappears later. You can scroll back and trust what you see.
=== SETTINGS ===
- N_Channel (default 40): channel length in bars.
- Trail_ATR (default 8.0): trailing distance as a multiple of ATR.
- ATR_Period (default 14).
- ShowArrows: turn the breakout markers on or off.
Defaults are a USDJPY H1 configuration. A breakout length that suits one market rarely transfers to another — re-fit N_Channel and Trail_ATR on the instrument you trade.
=== HONEST NOTE ===
This is a visualisation tool, not a signal service. Breakout trend following has a win rate well below 50%: many small losses, a few large winners. It works in trending markets and bleeds in ranges. Watch how the arrows and the trailing stop behave on your instrument before you trade the idea.
