Skip to content

Created Event

Summary

Occurs when pending order is created

Signature

1
public abstract event Action<PendingOrderCreatedEventArgs> Created;

Declaring Type

cAlgo.API.PendingOrders

Examples

1
2
3
4
5
6
7
8
9
 protected override void OnStart()
 {
     PendingOrders.Created += PendingOrdersOnCreated;
     PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask + 10 * Symbol.PipSize);
 }
 private void PendingOrdersOnCreated(PendingOrderCreatedEventArgs args)
 {
     Print("Pending order with id {0} was created", args.PendingOrder.Id);
 }

Last update: December 8, 2022

Comments