
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
Just began to learn how to convert mql4 to mql5.
I learned how to deal with close[] in OnCalculate(......const double &close[], ......), with "ArraySetAsSeries()".
But in my own function "draw()", I also have to use close[], so I tried :
the compiling error of "close" fixed, but I got "draw - wrong parameters count" when calling draw().
I realised this is the wrong aproach, and I will have to use multiple constants, it's a pain to define and call like this. But what should I do, instead?