Closed


Summary

Occurs each time a position is closed.

Syntax

public event Action Closed

Example 1

protected override void OnStart()
 {
     Positions.Closed += PositionsOnClosed;            
 }
 private void PositionsOnClosed(PositionClosedEventArgs args)
 {
     var position = args.Position;
     Print("Position closed with {0} profit", position.GrossProfit);
 }