거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Donchian Breakout Channel with ATR Trailing Stop - MetaTrader 5용 지표

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
저는 Kenichiro Sakamoto이며, MetaTrader 5용 투명하고 규칙 기반의 EA(Expert Advisor)를 만드는 스튜디오 FXEA365의 개발자입니다.
조회수:
73
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The indicator combines a Donchian channel with an ATR trailing stop line. The channel on each bar is the highest high and the lowest low of N_Channel bars that end two bars back, so the bar that is tested for a breakout is not part of its own channel. A breakout is registered when the previous bar closes above the upper line or below the lower line, and an arrow is placed on the bar that follows it.

After a breakout the trailing stop line starts at the close minus or plus Trail_ATR times the ATR. While no new breakout occurs, the line only moves in the breakout direction. When a close crosses the line, it disappears until the next breakout. The line is green after an upward breakout and red after a downward breakout. On every bar that follows a close outside the channel, the line is set again from the close of that bar.

The channel and the breakout test use closed bars only. The trailing stop value on the bar that is still forming follows its current close and becomes final when the bar closes. Arrows are placed 0.4 ATR below the low or above the high of the bar. The same arrow symbol is used for both directions, so the direction is read from its position relative to the bar.

Input parameters

  • N_Channel - Donchian channel length in bars (default 40).
  • Trail_ATR - distance of the trailing stop line as a multiple of the ATR (default 8.0).
  • ATR_Period - ATR period (default 14).
  • ShowArrows - show the breakout arrows (default true).

Buffers: 0 - upper channel, 1 - lower channel, 2 - trailing stop, 3 - trailing stop colour index (0 up, 1 down), 4 - breakout arrows. The empty value of the plots is 0. The indicator does not place or manage trades.

Donchian channel, breakout arrows and ATR trailing stop on EURUSD H1

Previous Day and Week Levels with Round Numbers Previous Day and Week Levels with Round Numbers

Draws the high and low of the previous day and the previous week plus round-number levels around the current price as horizontal lines.

True Trading Cost - Net Risk Reward Calculator for MT5 True Trading Cost - Net Risk Reward Calculator for MT5

Free MT5 chart planner with draggable entry, stop and target levels, spread, risk-based lots, fees, estimated swap, break-even and net risk/reward. Indicator only; no orders.

Confirmed Swing Pivots with Trend MA Confirmed Swing Pivots with Trend MA

Marks swing highs and lows that are confirmed by a fixed number of bars on both sides and plots a simple moving average for trend context.

Bollinger Keltner Squeeze Release Arrows Bollinger Keltner Squeeze Release Arrows

Shows Bollinger bands and a Keltner channel on the chart, marks bars where the bands are inside the channel and draws an arrow when that squeeze ends.