I use Bars.Count to immediately determine how many total bars are loaded on a chart. This works great when TickReplay is not enabled. So on the first call of OnBarUpdate, I know immediately there's 2000 bars on the chart, for example. Then on each call of OnBarUpdate, CurrentBar increments from 1 up to 2000
However, when TickReplay is enabled, Bars.Count is NOT a total count. When TickReplay is enabled, It does not contain the total number of bars on the chart. Instead, Bars.Count starts at 1, and increases...same as CurrentBar in the prior example.
So when TickReplay is enabled, how can I find out, immediately, the total number of bars on a chart?
Comment