Download MetaTrader 5

How to use ZigZag custom indicator in an EA

To add comments, please log in or register
Sneck55
158
Sneck55  
I have been using the following line: double ThisZigZag = iCustom(NULL,0,"ZigZag",12,5,3,3,0); in order to try to work out whether or not the indicator is going up or down but it just returns 0.0 (zero) all the time. I have spent all day trying to get some help and would welcome any suggestions.
qjol
3245
qjol  

is the zigzag indicator located in the right place ?

try:

iCustom(NULL,0,"ZigZag",12,5,3,0,0);
Keith Watford
Moderator
10533
Keith Watford  
 iCustom(NULL,0,"ZigZag",12,5,3,3,0);
Does the zig-zag indicator have a buffer number 3?
Tjipke de Vries
6432
Tjipke de Vries  
See Topic https://www.mql5.com/en/forum/144092 some examples how you can use code to find lows and highs
To add comments, please log in or register