IPositionModifyAlgo
StockSharp.Algo.PositionManagement
Interface for position modify algorithms (detached from Diagram).
实现: IDisposable
属性
IsFinished : bool
Whether the algorithm has finished.
RemainingVolume : decimal
Remaining volume to execute.
方法
Cancel()
Cancel the current algo execution.
GetNextAction() : PositionModifyAction
Get the next action to take.
OnOrderCanceled(decimal)
Notify that an order was canceled.
- matchedVolume
- Volume that was matched before cancellation.
OnOrderFailed()
Notify that an order failed.
OnOrderMatched(decimal)
Notify that an order was matched (fully filled).
UpdateMarketData(DateTime, decimal?, decimal?)
Update market data.
- time
- Current time.
- price
- Last trade price.
- volume
- Last trade volume.