Skip to content

PendingOrderCreatedEventArgs

Summary

Provides data for the pending order creation events.

Signature

1
public class PendingOrderCreatedEventArgs

Namespace

cAlgo.API

Properties

Name Description
PendingOrder { get; } Gets the pending order that was created.

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(PendingOrderCreatedEventArgsargs)
 {
     Print("Pending order with id {0} was created", args.PendingOrder.Id);
 }

See Also


Last update: July 1, 2022

Comments