Thank you for message. Bug fixed. Please wait for updates.
Instead of an 'unknown error' should be 'Array out of range'
Check your code in line 155 ( dTmp += MathPow(price[position - i] - ExtMapBuffer5[position], 2); )
position-i can be negative

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
I am getting an unknown runtime error after the execution reaches some point inside OnCalculate() function. What could be the reason?
Please, see the attached mq5 file.