Support Board
Date/Time: Sun, 21 Dec 2025 12:50:49 +0000
Post From: MBO Data and Teton Symbol Settings Issue
| [2022-11-16 13:37:12] |
| User907968 - Posts: 860 |
|
Did you already try using the AdjustedPrice member of s_MarketDepthEntry? In the example code, PriceInTicks is calculated correctly when using AdjustedPrice, whereas it is not when using Price (and the Real-Time Price Multiplier is not equal to 1). So from the example code: int ActualLevels = sc.GetBidMarketLimitOrdersForPrice(sc.Round(MarketDepthEntry.Price / sc.TickSize), NumberOfMarketOrderDataElements, MarketOrderData);
becomesint ActualLevels = sc.GetBidMarketLimitOrdersForPrice(sc.Round(MarketDepthEntry.AdjustedPrice / sc.TickSize), NumberOfMarketOrderDataElements, MarketOrderData);
|
