This code print FALSEs, it shouldn't have the same values?
protected override void OnMarketDepth(MarketDepthEventArgs e) { lock (e.Instrument.SyncMarketDepth) { List<MarketDepthRow> rows; if (e.MarketDataType == MarketDataType.Ask) rows = e.Instrument.MarketDepth.Asks; else rows = e.Instrument.MarketDepth.Bids; if (rows.Count - 1 < e.Position) return; if (e.Price == rows[e.Position].Price) Print("true"); else Print("FALSE"); } }
Thanks for your time.
Comment