- www.mql5.com
hi everyone.
my EA dont have any error during compaile.
but in back test I get the error "OnTick critical error"
please advice me.
thanks.
So what ? Debug your code.
The problem is so obvious I am sure you will find it if you do some efforts.
Why giving him the answer...let him search he will learn something. Well it's how I see it.
self education is the best way of learning something 😉
I spotted it by chance and thought, why withhold it. At the moment I'm in a sort of Stack Overflow mode.
hi
thanks for your help.
I need to use data of moving avarage "SlowMovingAveragearray[4]"fo more than 4. for example SlowMovingAveragearray[9].
how can I do that?
thanks
hi
thanks for your help.
I need to use data of moving avarage "SlowMovingAveragearray[4]"fo more than 4. for example SlowMovingAveragearray[9].
how can I do that?
thanks
Okay. I'm free so:
Indices start from zero. So, SlowMovingAveragearray[4] has stored values on 0,1,2 and 3 indices. These add up to four.
Any reference to SlowMovingAveragearray[4] will produce a critical error since that index does not exist.
For your question:
SlowMovingAveragearray[9] will be valid if you stored 10 elements in your array.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi everyone.
my EA dont have any error during compaile.
but in back test I get the error "OnTick critical error"
please advice me.
thanks.