Table of Contents

Class StrategyPositionManager

Namespace
StockSharp.Algo.Strategies
Assembly
StockSharp.Algo.dll

The position calculation manager.

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

Remarks

Initializes a new instance of the StrategyPositionManager.

Constructors

StrategyPositionManager(bool)

The position calculation manager.

public StrategyPositionManager(bool byOrders)

Parameters

byOrders bool

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

Remarks

Initializes a new instance of the StrategyPositionManager.

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 PositionChangeMessage ProcessMessage(Message message)

Parameters

message Message

Message.

Returns

PositionChangeMessage

The position by order or trade.