PositionLifecycleTracker
StockSharp.Algo.Positions
Tracks position lifecycle (open/close) and stores round-trip history.
Properties
History
public IReadOnlyList<ReportPosition> History { get; }
value = positionLifecycleTracker.History
Completed round-trips history.
Methods
ProcessPosition
public void ProcessPosition(Position position)
positionLifecycleTracker.ProcessPosition(position)
Process a position update.
- position
- Position.
Events
RoundTripClosed
public event Action<ReportPosition> RoundTripClosed
positionLifecycleTracker.RoundTripClosed += handler
Raised when a round-trip is closed.