Thanks, that explanation helped me understand how you are viewing my problem. Following that logic, the error that I posted could not possibly occur after the lookback period if it was related to the validity range of the indicator. Since it did occur after the lookback period, I have to conclude that the error had another source. I will continue running the script on the next trading session and see if it happens again.