Table of Contents

Class PositionManager

Namespace
StockSharp.Algo.Positions
Assembly
StockSharp.Algo.dll

The position calculation manager.

public class PositionManager : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable, IPositionManager
Inheritance
PositionManager
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

PositionManager(bool)

Initializes a new instance of the PositionManager.

public PositionManager(bool byOrders)

Parameters

byOrders bool

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

Properties

ByOrders

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

public bool ByOrders { get; }

Property Value

bool

Methods

ProcessMessage(Message)

To calculate position.

public virtual PositionChangeMessage ProcessMessage(Message message)

Parameters

message Message

Message.

Returns

PositionChangeMessage

The position by order or trade.