Skip to content

HistoricalOrder.StopLoss

property · HistoricalOrder · cAlgo.API Since 5.1

DesktopCLICloud

Order stop loss in Price.

Definition

double? StopLoss {get;}
historicalOrder.StopLoss: float | None

Returns double?

Examples

var order = HistoricalOrders.FindLast("myLabel");
if (order != null)
    Print("Order stop loss price: {0}", order.StopLoss);
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None:
    api.Print(f"Order stop loss price: {order.StopLoss}")