Skip to content

HistoricalOrder.StopOrderTriggerMethod

property · HistoricalOrder · cAlgo.API Since 5.1

DesktopCLICloud

StopOrder trigger method.

Definition

StopTriggerMethod? StopOrderTriggerMethod {get;}
historicalOrder.StopOrderTriggerMethod: StopTriggerMethod | None

Returns StopTriggerMethod?

Examples

foreach (var order in HistoricalOrders.Where(historicalOrder => historicalOrder.OrderType == HistoricalOrderType.Stop))
    Print("Stop order {0} trigger method: {1}", order.Id, order.StopOrderTriggerMethod);
for order in [historicalOrder for historicalOrder in api.HistoricalOrders if historicalOrder.OrderType == HistoricalOrderType.Stop]:
    api.Print(f"Stop order {order.Id} trigger method: {order.StopOrderTriggerMethod}")