I am studying the OnMarketDepth() and noticed a few behaviors I cannot explain nor find more info on. If there's a white paper or something more technical on the topic that might help answer the questions below, I would be grateful. First, I'm studying by writing an indicator. It is only reading the level 2 data stream, then stream writing to a file. I'm receiving no errors. Set to Calculate.OBC, 1-minute chart. Only a single Print() in the OBU().
1) I have noticed at times order entries in the text file can be several seconds out of chronological order. What might cause this? How often is it expected? How accurate/reliable is the data?
2) Are there sync issues? Specifically within the stream and also syncing with other streams like combining level 2 with T&S?
3) Times have huge gaps between entries. Does the chart running the indicator need to have focus? Just be visible?

Comment