Cancelled


Summary

Occurs when pending order is cancelled

Syntax

public event Action Cancelled

Example 1

protected override void OnStart()
{
    PendingOrders.Cancelled += PendingOrdersOnCancelled;
    var result = PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask + 10 * Symbol.PipSize);
    CancelPendingOrder(result.PendingOrder);
}
private void PendingOrdersOnCancelled(PendingOrderCancelledEventArgs args)
{
   Print("Pending order with id {0} was cancelled. Reason: {1}", args.PendingOrder.Id, args.Reason);
}