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

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
71
dazamate 2015.08.24 22: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?? 

avatar
71
dazamate 2015.08.25 08: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.

Back to topics list   | 1 2  

To add comments, please log in or register