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 Indicators | Zigzag2 R | MetaTrader Tool

New free code from MQL5: indicators, EAs, and scripts for traders.



#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red

To call the indicator from other programs in mql4 use two constructions:



iCustom(NULL, 0, "Zigzag2_R_", 12, 5, 3, 0, index) - peaks 
iCustom(NULL, 0, "Zigzag2_R_", 12, 5, 3, 1, index) - bottoms

The block of processing the outside bar is given as an example. For such a situation you may use your own algorithm.



Image for Zigzag2 R

Experience adaptive trading with the Fluid Expert Advisor for MT4/MT5. Dynamic money management and trend detection. Click for info.

Complement community code with advanced automation from RobotFX.

7762

Best MetaTrader Indicators + Profitable Expert Advisors