ICustom ZigZag returns zero value
i've been trying to get custom indicator (zigzag) value using this code...and get its signal
I realized that after commenting and printing the signal that the value is always Zero.
I have also tried adding mode and adjusting the shift but nothing seems to change
what am i doing wrong here ....
Read the iCustom documentation
double zigzag_handler=iCustom(Symbol(),Period(),PATH,12,5,3); // Here you need to add two more parameters for index and shift
Last two parameters in iCustom call are buffer index and bar index for which you want indicator value.
In your code, iCustom uses 5 as number of indicator buffer, and 3 as bar number.
You need to add two more parameters to the iCustom call.
- docs.mql4.com
i've been trying to get custom indicator (zigzag) value using this code...and get its signal
I realized that after commenting and printing the signal that the value is always Zero.
I have also tried adding mode and adjusting the shift but nothing seems to change
what am i doing wrong here ....