My broker tells me OnBarUpdate is guaranteed to eventually get every tick (trade) regardless of the speed of the market but that the ticks could end up being queued and will be sent out in order. This makes sense and is consistent with my experience regardless of the data feed.
They also tell me order book changes may be coalesced by using snapshots (the broker is not Interactive Brokers) if that is necessary to keep the data feed from being delayed by a very fast moving market. This also makes sense and consistent with retail data feeds.
What they cannot tell me is whether this would apply to the volume component of MarketDataType.Last in OnMarketData or just the book updates.
I have two indicators, one uses the volume from MarketDataType.Last in OnMarketData and the other uses the volume from the ticks in OnBarUpdate. They go out of sync in a fast move usually if there is what appears to be a large order that has been shredded such that a 100 lot gets broken into 100 one lots all with essentially the same timestamp.
What I am trying to determine is which method will have the most accurate volume data?
Best Regards,
Scott
Comment