Can we access the time stamp down to the second of the ticks that make up a minute bar when running in playback from the OnBarUpdate() method if we have CalculateOnBarClose=false?
For example the following running on a minute bar chart:
CalculateOnBarClose=false; protected override void OnBarUpdate() { Print(Time[0].ToString()); }
However in OnMarketData I can access the seconds in playback:
protected override void OnMarketData(MarketDataEventArgs e) { if (e.MarketDataType == MarketDataType.Last) { Print(e.Time.ToString()); } }
I'm assuming accessing Last ticks from OnBarUpdate with CalculateOnBarClose=false is more efficient that accessing Last ticks from OnMarketDate ?
thanks,
shawnj
Comment