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

Simple ZigZag - MetaTrader 5용 지표

조회수:
8984
평가:
(25)
게시됨:
2016.10.10 15:09
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Simplified version of the popular ZigZag indicator. The algorithm runs significantly faster, does not use intermediate calculation buffers, does not contain nested cycles and, therefore, does not redraw itself. The indicator only has one parameter to be configured, which is very important during optimization of expert advisors that use it as basis.

Automation of many graphical constructions, including simple ones like channels, trends (higher highs / lower lows) or Fibo grids, requires defining a "refined movement", i.e. price passing from local minimum to local maximum and from local maximum to local minimum.

This task is efficiently solved by ZigZag indicator included in the standard MetaTrader delivery set.

However, conventional ZigZag has a number of drawbacks.

In particular:

  • ZigZag always repaints which is inconvenient when applying it in trading algorithms,
  • the indicator algorithm includes several nested loops which can significantly slow down a ZigZag-based EA optimization,
  • fine tuning of the indicator is performed using three parameters, which significantly lengthens the optimization process, and given the fact that changing one parameter changes the effect of others, the optimization process may not find a stable extremum at all.

Having all this in mind, I have developed a much simpler algorithm of defining refined movements.

The proposed algorithm

  • does not contain embedded loops. All calculations are performed as soon as new price data becomes available,
  • does not repaint itself (e.g., a detected reversal will not turn into something else over time),
  • contains a single parameter — standard pass length (set to be different on different timeframes for more convenience).

The only input parameter - Typical retracement size - is different for different time frame for convinience

The indicator solves the task visually by highlighting local maximums and minimums and plotting refined passes between them.

As simple as it is Simple Zig Zag solve its function searching for recent highs and lows and showing movements between them.

This tool allows you to develop a simple EA based on Fibo corrections. One of the provided screenshots displays clearly recognizable trend and correction movements which is critical for developing an EA using Fibo corrections.

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/15970

i-CAi i-CAi

The indicator displays the breakthrough line.

dTrend dTrend

Indicator of trend change.

AutoFibAutoTrend AutoFibAutoTrend

The indicator plots price channel and Fibonacci levels based on the latest ZigZag peaks.

dTrend_HTF dTrend_HTF

The dTrend indicator with the timeframe selection option available in input parameters.