Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Indicator | ZigZag Dual Buffer

This ZigZag indicator uses dual buffers to store high and low points. A point is considered as a new high/low point if its high/low is higher/lower than the high/low of N earlier bars' high/low, where parameter N is the number of earlier bars represented by Bars. Default value is 2.

This indicator uses the idea of fractal whereby a point is considered high (or low) if the point is higher than its previous 2 bars' high (or lower than its previous 2 bars low) in forward motion. Hence, it doesn't wait for the next 2 bars to determine if it is higher or lower.

MetaTrader Experts, Indicators, Scripts and Libraries

This indicator also eliminates the problem of outside bar as explained by Aleksandr Chugunov in his article Professional ZigZag. See Figure 2 below. What it does is that it will scan to the last node to check if there exists any point higher (or lower) than the current point. If there is, then that point will be set to be the ZigZag node.

MetaTrader Experts, Indicators, Scripts and Libraries

14331

Best MetaTrader Indicators + Profitable Expert Advisors