The indicator has worked fine for some time, and now I wish to employ the indicator on a chart containing more than one data series (ie multiple instruments). When I add the indicator to such a chart, no rectangles are drawn at all.
Any hints about where I might start looking for problems? The code is only a dozen lines or so. I have a hunch the issue has to do with telling the indicator which pane/instrument is being processed. Ultimately, if possible, I'd like the rectangles to be drawn for each instrument.
EDIT: Upon closer inspection, I just noticed something that might be useful in troubleshooting. When the indicator is running properly, the rectangles will redraw and extend themselves to the right on each bar update, until some logic is met which stops the drawing. What is actually happening now is that each rectangle does draw, but only for a single bar and then it stops drawing, never extending.

Comment