I have this indicator, a stochastics kind, which acts pretty odd.
It plots (sometimes) for the period of 7 and higher, but only when the charts are static (no streaming data), but it does not plot at all (you get a blank region) when the data is streaming (so no use for real time trading).
Well, I am clueless as to what could be wrong with it. I got it from this forum, if I am not mistaken. I would appreciate your help. Thanks.
The code is attached.

Comment