Skip to content

Modified Event

Summary

Occurs when pending order is modified

Signature

1
public abstract event Action<PendingOrderModifiedEventArgs> Modified;

Declaring Type

cAlgo.API.PendingOrders

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 protected override void OnStart()
 {
     PendingOrders.Modified += PendingOrdersOnModified;
     var result = PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask + 10 * Symbol.PipSize);
     ModifyPendingOrder(result.PendingOrder, Symbol.Ask + 20 * Symbol.PipSize ,null, null, null);
 }
 private void PendingOrdersOnModified(PendingOrderModifiedEventArgs args)
 {
     Print("Pending order with id {0} was modifed", args.PendingOrder.Id);
 }

Last update: June 26, 2022

Comments