I want to mark the chart bars that correspond to the 1st bar in the user-input data series. I have tried code in OnBarUpdate that compares Time[0] of the two data series, based on BarsInProgress - and this works for time-based periods, but not for tick or volume based periods. For tick/volume, my test works on time based historical bars, but then fails on real time bars.
Is there a recommended method to test this?
Edit: I'm drawing the marker via OnRender, so I am storing a flag in a series that is later referenced in OnRender.

Comment