Omega J Msigwa:
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.

iCustom - Technical Indicators - MQL4 Reference
- docs.mql4.com
iCustom - Technical Indicators - MQL4 Reference

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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 ....