So I found out that when terminal is saying "Waiting for refresh" (When chart disappears), and is tick, my Expert Advisor is throwing array out of bounds error on Time[0] array. and then EA stops working, so how can I check this array before using it if array exists. who are familiar with php - the function I'm looking for is isset()...
- Ask!
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
- Can't print text to screen using working text code and copy / paste.
Azael05x: So I found out that when terminal is saying "Waiting for refresh" (When chart disappears), and is tick, my Expert Advisor is throwing array out of bounds error on Time[0] array. | Don't look at the predefined variables in OnInit(). Wait for the first tick in OnTick(). |
damn, of course I'm not doing that.. I'm trying to make access to them from onTick() that's the funny part.
As I said my EA is working fine till that damn moment when chart is disappearing for refresh, then it throws that error on Time[0] variable... how can I avoid that?
Azael05x:
ArraySize() maybe ?
damn, of course I'm not doing that.. I'm trying to make access to them from onTick() that's the funny part.
As I said my EA is working fine till that damn moment when chart is disappearing for refresh, then it throws that error on Time[0] variable... how can I avoid that?
Azael05x: then it throws that error on Time[0] variable... how can I avoid that? angevoyageur: ArraySize() maybe ?
| If Time[0] throws an error, there's a problem with the terminal. Don't try to band over it. Write the service desk. |
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