How I can use the ZigZag Color Indicator in the program

 

I see there is Zigzag indicator Menu in Metatrader 5,

but I want to use it in my Code like other indicator such as Bollinger Band or Moving Average like below

 int BBDefinition = iBands(_Symbol,_Period,20,0,2,PRICE_CLOSE);

or like this

 int StochasticDefinition = iStochastic(_Symbol,_Period,5,3,3,MODE_SMA,STO_LOWHIGH);


Why I cannot find iZigZag or something like that?


Thanks

Emmanuel

 
You can use iCustom to read zigzag.ex4
 

Marco vd Heijden:
You can use iCustom to read zigzag.ex4




Can you please give an example how to implement the iCustom for ZigZag indicator in MQL5

 
Happy Day:

Can you please give an example how to implement the iCustom for ZigZag indicator in MQL5

You can find it in documentation
 
Happy Day:

Can you please give an example how to implement the iCustom for ZigZag indicator in MQL5

Please see 'Calling from an Expert

Universal ZigZag
Universal ZigZag
  • www.mql5.com
The class will be located in the "CZZDirection.mqh" file, name of the base class — "CZZDirection". The class will contain a virtual Calculate() method. It will be passed the parameters that allow to determine the bars for calculation (rates_total, prev_calculated variables), buffers with the source data and buffer for direction. As mentioned...