While I’m in the lunch period, the rectangle drawn is from a past time to an hour or so into the future. But the left edge of the drawing / shading ends before the last two candles / bars. It makes it look as though the lunch period is over all the time. The drawing doesn’t seem to extend off screen into the future. Perhaps that’s behavior you’ve meant to put into DrawRectangle(). But it doesn’t even cover the current candle and the one before. That seems to be an oversight.
I have used this on a 3 minute bar chart and a 300 tick chart using candles. My “Right Side Margin” is set to 4 and 20 respectively. Both seem to show the same unshaded right edge AND even the problematic unshaded last two bars / candles.
Could you please let me know the behavior I should expect when using DrawRectangle(string tag, int startBarsAgo, double startY, int endBarsAgo, double endY, Color color), especially when startBarsAgo is past and endBarsAgo is future?
Thanks,
Brian1

Comment