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
担当: 佐藤 宏
quotingDirection
引用の方向(買いか売り)。
bestBidPrice
注文書の最高の入札価格。
bestAskPrice
注文書のベストプライスを尋ねます。
lastTradePrice
最後の取引の価格。
lastTradeVolume
最後の取引の量。
bids
注文書から入札引用の配列。
asks
注文書から引用を尋ねる配列。

戻り値: 引用のための計算された最良の価格, または利用不能の場合null.

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
担当: 佐藤 宏
currentTime
現行時刻
currentPrice
注文の現在の価格、または登録されていない場合はnull。
currentVolume
注文の現在のボリューム、または登録されていない場合はnull。
newVolume
引用されるべき新しい容積。
bestPrice
見積りの計算された最高の価格。

戻り値: 引用符が不要な場合は、引用符で引用する価格、またはnull。