PositionPipeline

StockSharp.Algo.Strategies.Decomposed

Position event handling.

Constructors

PositionPipeline
public PositionPipeline(IStatisticManager stats)
positionPipeline = PositionPipeline(stats)

Position event handling.

stats
Statistic manager.

Methods

Process
public void Process(Position position)
positionPipeline.Process(position)

Process a position update, auto-detecting new vs changed.

position
The position.
Process
public void Process(Position position, bool isNew)
positionPipeline.Process(position, isNew)

Process a position update.

position
The position.
isNew
Whether this is a new position (vs. update).

Events

NewPosition
public event Action<Position> NewPosition
positionPipeline.NewPosition += handler

Fires when a completely new position appears.

PositionChanged
public event Action<Position> PositionChanged
positionPipeline.PositionChanged += handler

Fires when an existing position changes.