Skip to content

Position.StopLossTriggerMethod

property · Position · cAlgo.API

DesktopCLICloud

Trigger method for the position's Stop Loss.

Definition

StopTriggerMethod? StopLossTriggerMethod {get;}
position.StopLossTriggerMethod: StopTriggerMethod | None

Returns StopTriggerMethod?

Examples

var result = ExecuteMarketOrder(TradeType.Buy, SymbolName, 10000, "myLabel", 20, 40, "", false, StopTriggerMethod.Opposite);
if (result.IsSuccessful)
    Print("Stop loss trigger method: {0}", result.Position.StopLossTriggerMethod);
result = api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, 10000, "myLabel", 20, 40, "", False, StopTriggerMethod.Opposite)
if result.IsSuccessful:
    api.Print(f"Stop loss trigger method: {result.Position.StopLossTriggerMethod}")