The code in OnBarUpdate simply contains this:
protected override void OnBarUpdate()
{
Print(string.Format("Bar {0} The tick count of the current bar is {1} ", CurrentBar, Bars.TickCount.ToString()));
}
But when I run this on a 250 tick chart with Tick Replay enabled, I see the following output:
Bar 18979 The tick count of the current bar is 247
Bar 4744381 The tick count of the current bar is 1
Bar 18979 The tick count of the current bar is 248
Bar 4744382 The tick count of the current bar is 1
Bar 18979 The tick count of the current bar is 249
Bar 4744383 The tick count of the current bar is 1
Bar 18979 The tick count of the current bar is 250
Bar 4744384 The tick count of the current bar is 1
Bar 18980 The tick count of the current bar is 1
Bar 4744385 The tick count of the current bar is 1
Bar 18980 The tick count of the current bar is 2
Bar 4744386 The tick count of the current bar is 1
Bar 18980 The tick count of the current bar is 3
Bar 4744387 The tick count of the current bar is 1
Bar 18980 The tick count of the current bar is 4
Bar 4744388 The tick count of the current bar is 1
Bar 18980 The tick count of the current bar is 5
Bar 4744389 The tick count of the current bar is 1
Bar 18980 The tick count of the current bar is 6
Bar 4744390 The tick count of the current bar is 1
Bar 18980 The tick count of the current bar is 7
Bar 4744391 The tick count of the current bar is 1
Why do I see these strange bar numbers, all with a tick count of 1 on every alternate line?
Comment