Skip to content

PendingOrder.StopLimitRangePips

property · PendingOrder · cAlgo.API

DesktopCLICloud

Maximum limit from order target price, where order can be executed.

Definition

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

Returns double?

Examples

var targetPrice = Symbol.Ask + 20 * Symbol.PipSize;
var result = PlaceStopLimitOrder(TradeType.Buy, SymbolName, 10000, targetPrice, 2.0, "myLabel");
if (result.IsSuccessful)
    Print("Stop limit range: {0} pips", result.PendingOrder.StopLimitRangePips);
targetPrice = api.Symbol.Ask + 20 * api.Symbol.PipSize
result = api.PlaceStopLimitOrder(TradeType.Buy, api.SymbolName, 10000, targetPrice, 2.0, "myLabel")
if result.IsSuccessful:
    api.Print(f"Stop limit range: {result.PendingOrder.StopLimitRangePips} pips")