Help: indicator in seperate window "flashing" (disappears then re-appears) every 5 bars

 

I have an indicator in separate window I'm writing, but every 5 bars or so, the lines dissappear and then re-appear, almost like a refresh. It's slowing down execution.


What are your thoughts on the cause of this? How can I resolve it?

Reason: