SecurityEmulator
StockSharp.Algo.Testing.Emulation
金融工具的特有仿真器状态。 处理仿真器特定的逻辑: tick 订购本、 L1 订购本、 蜡烛存储、 限价 。
构造函数
SecurityEmulator
public SecurityEmulator(MarketEmulator parent, MatchingEngineAdapter engine, SecurityId securityId)
securityEmulator = SecurityEmulator(parent, engine, securityId)
金融工具的特有仿真器状态。 处理仿真器特定的逻辑: tick 订购本、 L1 订购本、 蜡烛存储、 限价 。
属性
IsCandleMatchingMode
public bool IsCandleMatchingMode { get; private set; }
value = securityEmulator.IsCandleMatchingMode
securityEmulator.IsCandleMatchingMode = value
蜡烛数据里有订货簿的时候是真实的
方法
OnQuoteChange
public void OnQuoteChange()
securityEmulator.OnQuoteChange()
收到QuoteChange后呼叫 - 退出蜡烛匹配模式.