Help on ZigZag indicator

Hi,

I would like to use the values of ZigZag - the one embedded into the default MT4 installation - indicator in my EA code.

Can anyone suggest how to do?

I cannot find functions such as iHigh, iMACD or similar....

Thanks in advance for your help.

Alex

iCustom() is the starting point.
int shift = 0;
while(/*your condition*/)
{
    double val = iCustom(Symbol(), Period(), "ZigZag", ExtDepth, ExtDeviation, ExtBackstep, 0, shift); 
    if (val > 0)
    {
        // we've got a peak value
    }
    shift++;
}
notice this
GarF1eld wrote >>
notice this

Thanks for your help!

Keep in touch shortly!

Bye

Alex