PositionManager

StockSharp.Algo.Positions

The position calculation manager.

Наследует: BaseLogReceiver

Реализует: IPositionManager, IPersistable, ICloneable<IPositionManager>, ICloneable

Конструкторы

PositionManager(bool, IPositionManagerState)

The position calculation manager.

byOrders
To calculate the position on realized volume for orders () or by trades ().
state
State storage.

Свойства

ByOrders : bool

To calculate the position on realized volume for orders () or by trades ().

Методы

Clone() : IPositionManager

Creates a deep copy of a DataSeries

ProcessMessage(Message) : PositionChangeMessage

To process the message for transaction delay calculation. Messages of OrderRegisterMessage, OrderReplaceMessage, OrderCancelMessage and ExecutionMessage types are accepted.

message
Message.

Возвращает: The transaction delay. If it is impossible to calculate delay, will be returned.