HistoricalOrder.TakeProfit
property · HistoricalOrder · cAlgo.API Since 5.1
DesktopCLICloud
Order take profit in Price.
Definition
double? TakeProfit {get;}
historicalOrder.TakeProfit: float | None
Returns double?
Examples
var order = HistoricalOrders.FindLast("myLabel");
if (order != null)
Print("Order take profit price: {0}", order.TakeProfit);
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None:
api.Print(f"Order take profit price: {order.TakeProfit}")