Filled


Summary

Occurs when pending order is filled

Syntax

public event Action Filled

Example 1

protected override void OnStart()
{
    PendingOrders.Filled += PendingOrdersOnFilled;
    PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask);
}
private void PendingOrdersOnFilled(PendingOrderFilledEventArgs args)
{
    Print("Pending order with id {0} was filled, position id  is {1}", args.PendngOrder.Id, args.Position.Id);
}