I am trying to create original EA with MQL5, but iCustom function returns always 10.0.
If I delete Custom Moving Average.ex5,iCustom always returns value of -1.0.
so, Custom Moving Average.ex5 seems to be read correctly.
I am trying to create original EA with MQL5, but iCustom function
returns always 10.0.
iCustom uses an integer and returns the handle for processing not an indicator value, have a look here
In MQL5, the indicator handle must be CREATED ONCE (in OnInit), and then (to obtain data) use CopyBuffer.
Thanks to Vladimir Karputov and Paul
Anscombe, I've resovled this problem.
Thank you very much!!