PositionPipeline

StockSharp.Algo.Strategies

Position event handling.

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

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

Position event handling.

stats
Statistic manager.

Методы

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).
SetStatisticManager
public void SetStatisticManager(IStatisticManager stats)
positionPipeline.SetStatisticManager(stats)

Swap the statistic manager (used when StatisticManager is reassigned).

stats
The new statistic manager.

События

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.