This is the code on line 252?
static datetime breakoutTrapNoticeFlag, candleNotifyFlag = Time;
Which is one of the first lines inside the onCalculate function.
something wrong with calling the Time array like that??
I removed candleNotifyFlag = Time; and the error subsided. I don't understand why though. I wasn't even using the variable anymore.