Excuse my questions but I am new to the MQL languages.
I am trying to make an EA that will use the highs and lows of the ZigZag indicator(attached).
1)How can I include this indi to my EA?
2)How can I store the values of highs and lows from ZigZag to an array?
Example of various advisors that use ZigZag
Thanks for the reply!
Although the link was in Russian I did manage to find the iCustom() function which is probably what I must use.
Now, that I have the handle of ZigZag how do I use CopyBuffer() to store the values to an array?
This is the code I am using but it is not working
//--- Create ZigZag array
//--- Define indi
int ZigZagHandle = iCustom(_Symbol,_Period,"Examples\\ZigZag",12,5,3);
//---Copy values to array
Again excuse my stupid question but I have spend hours on that simple thing and I am desperate!
You make the same grossest mistake: you do not read the documentation and do not want to learn! ICustom Help.
Please note - the handle is created ONCE! ONCE IN OnInit ()!
Thank you Vladimir!
I really appreciate your help!