and printing the top Ask on in the Output tab. It works but the output terribly lags, about 20 second or so behind the Static SuperDom screen

That makes the OnMarketDepth event out of synch with SuperDom and totally unusable

How can I get the full market depth with the same speed and data as the SuperDom?
Is there a throttling going on somewhere? How is SuperDom getting its data? Different event?
Here's my simple code, I used NinjaTrader.NinjaScript.AddOnBase as the base
var instrument = Instrument.GetInstrument("ES 12-18");
marketDepth = new MarketDepth<MarketDepthRow>(instrument);
marketDepth.Update += OnMarketDepth;
private void OnMarketDepth(object sender, MarketDepthEventArgs e)
{
NinjaTrader.Code.Output.Process(string.Format("Pos ition: {0} Price: {1} Volume: {2}", 0,
marketDepth.Asks[0].Price, marketDepth.Asks[0].Volume), PrintTo.OutputTab1);
}
Comment