As far as I can see, by the time
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
is called for the first time, OnBarUpdate() has been called for all historical data and CurrentBar is equal to the number of bars. For any given call to Plot(..., how do i determine which bar is being painted and get the corresponding values for indicators, etc.? For instance, High[0] and Time[0] in the method always return the values for the last bar in the price series.
I'd also appreciate any tips on lining up what I want to paint in the method below the correct bar, making it the correct width, etc. I've looked at some examples of overriding plot, but I'm not clear in these areas.
Thanks,
Gordon
Comment