QuotingBehaviorAlgo
StockSharp.Algo.Strategies.Quoting
位置は、価格計算をIQuotingBehaviorに委譲するアルゴリズムを修正しました。
実装: IPositionModifyAlgo, IDisposable
コンストラクター
QuotingBehaviorAlgo
public QuotingBehaviorAlgo(IQuotingBehavior behavior, Sides side, decimal volume, Unit volumePart, Security security)
quotingBehaviorAlgo = QuotingBehaviorAlgo(behavior, side, volume, volumePart, security)
QuotingBehaviorAlgo の新規インスタンスを初期化します。
- behavior
- 価格計算の行動を引用します。
- side
- 注文側。
- volume
- 実行する総ボリューム。
- volumePart
- 各スライスのボリューム部分。
- security
- 金融商品(オプション、PriceStep を必要とする動作の場合)。
プロパティ
RemainingVolume
public decimal RemainingVolume { get; private set; }
value = quotingBehaviorAlgo.RemainingVolume
quotingBehaviorAlgo.RemainingVolume = value
実行するボリュームを回復します。
メソッド
GetNextAction
public PositionModifyAction GetNextAction()
result = quotingBehaviorAlgo.GetNextAction()
次のアクションを取ろう。
OnOrderCanceled
public void OnOrderCanceled(decimal matchedVolume)
quotingBehaviorAlgo.OnOrderCanceled(matchedVolume)
注文がキャンセルされたことを通知します。
- matchedVolume
- キャンセル前にマッチしたボリューム。
OnOrderMatched
public void OnOrderMatched(decimal matchedVolume)
quotingBehaviorAlgo.OnOrderMatched(matchedVolume)
注文が一致したことを通知します(十分に満たされました)。
- matchedVolume
- Volume that traded since the previous notification for this order: a caller reporting every partial fill passes the increment, one reporting only the end passes the whole traded volume. The same volume is never reported twice.
UpdateMarketData
public void UpdateMarketData(DateTime time, decimal? price, decimal? volume)
quotingBehaviorAlgo.UpdateMarketData(time, price, volume)
市場データを更新します。
- time
- 現行時刻
- price
- 最後の取引価格。
- volume
- 最後の取引量。
UpdateOrderBook
public void UpdateOrderBook(IOrderBookMessage depth)
quotingBehaviorAlgo.UpdateOrderBook(depth)
注文書データを更新します。
- depth
- 注文書。