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
The MQL4 Standard Library has not been updated for a very long time. The equivalent MQL5 Standard Library code is more up to date.
You may need to compare the two and see what differences there are, then fix them with a custom implementation of your own.
I can confirm your issue - I don't know why but interestingly it works as an indicator but not an EA - maybe William will enlighten me :)
I do however know of a solution/workaround. I use object pointers for such things in my products and it works fine. here is your amended code.
Thank you.
Thank you.