Skip to content

Opened Event

Summary

Occurs each time a position is opened.

Signature

1
public abstract event Action<PositionOpenedEventArgs> Opened;

Declaring Type

cAlgo.API.Positions

Examples

1
2
3
4
5
6
7
8
 protected override void OnStart()
  {
      Positions.Opened += PositionsOnOpened;
  }
  private void PositionsOnOpened(PositionOpenedEventArgs args)
  {
      Print("Position opened {0}", args.Position.Label);
  }

Last update: July 1, 2022

Comments