Skip to content

PendingOrder.TakeProfitPips

property · PendingOrder · cAlgo.API

DesktopCLICloud

The order take profit in pips

Definition

double? TakeProfitPips {get;}
pendingOrder.TakeProfitPips: float | None

Returns double?

Examples

var result = PlaceLimitOrder(TradeType.Buy, SymbolName, 10000, Symbol.Bid - 20 * Symbol.PipSize, "myLabel", 20, 40, ProtectionType.Relative);
if (result.IsSuccessful)
    Print("Order take profit pips: {0}", result.PendingOrder.TakeProfitPips);
result = api.PlaceLimitOrder(TradeType.Buy, api.SymbolName, 10000, api.Symbol.Bid - 20 * api.Symbol.PipSize, "myLabel", 20, 40, ProtectionType.Relative)
if result.IsSuccessful:
    api.Print(f"Order take profit pips: {result.PendingOrder.TakeProfitPips}")