Download MetaTrader 5

stuck on array out of range error. Please critic my indicator loop. - page 2

To add comments, please log in or register
Find out how to install MetaTrader on Mac OS
dazamate
523
dazamate 2015.08.24 20:43  

This is the code on line 252?

 

static datetime breakoutTrapNoticeFlag, candleNotifyFlag = Time[0];

 Which is one of the first lines inside the onCalculate function.

 

something wrong with calling the Time array like that?? 

dazamate
523
dazamate 2015.08.25 06:21  
dazamate:

This is the code on line 252?

 

 Which is one of the first lines inside the onCalculate function.

 

something wrong with calling the Time array like that?? 

I removed candleNotifyFlag = Time[0]; and the error subsided. I don't understand why though. I wasn't even using the variable anymore.

12
To add comments, please log in or register