IQuotingBehavior
StockSharp.Algo.Strategies.Quoting
定义计算最佳价格和确定是否需要引用的行为。
方法
CalculateBestPrice
public decimal? CalculateBestPrice(Security security, IMarketDataProvider provider, Sides quotingDirection, decimal? bestBidPrice, decimal? bestAskPrice, decimal? lastTradePrice, decimal? lastTradeVolume, QuoteChange[] bids, QuoteChange[] asks)
result = iQuotingBehavior.CalculateBestPrice(security, provider, quotingDirection, bestBidPrice, bestAskPrice, lastTradePrice, lastTradeVolume, bids, asks)
根据市场数据计算引用的最佳价格。
- security
- 金融工具
- provider
- IMarketDataProvider
- quotingDirection
- 引文(买或卖)的方向.
- bestBidPrice
- 订单书中最好的出价
- bestAskPrice
- 订单书中最好的问价。
- lastTradePrice
- 上回贸易的价格.
- lastTradeVolume
- 上行之量.
- bids
- 投标的组合引用了订单本.
- asks
- 序所出出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所
返回值: 引用的计算出的最佳价格,如果无法引用,则无效。
NeedQuoting
public decimal? NeedQuoting(Security security, IMarketDataProvider provider, DateTime currentTime, decimal? currentPrice, decimal? currentVolume, decimal newVolume, decimal? bestPrice)
result = iQuotingBehavior.NeedQuoting(security, provider, currentTime, currentPrice, currentVolume, newVolume, bestPrice)
确定是否需要根据当前秩序状况和市场条件引用。
- security
- 金融工具
- provider
- IMarketDataProvider
- currentTime
- 现相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相
- currentPrice
- 订单的现价,或者未注册的无效.
- currentVolume
- 命令的当前音量, 如果没有注册, 则无效 。
- newVolume
- 新出一卷所引经.
- bestPrice
- 引用的计算出的最佳价格。
返回值: 无需引用,则引用的代价为无效。