StopLossBreakEven.TriggerDistance
property · StopLossBreakEven · cAlgo.API Since 5.8
DesktopCLICloud
The distance in pips that activates the break-even rule.
Definition
public double TriggerDistance {get;}
stopLossBreakEven.TriggerDistance: float
Returns double
Examples
var position = Positions.Find("myLabel");
if (position != null && position.StopLossBreakEven != null)
Print("Break-even activates after {0} pips", position.StopLossBreakEven.TriggerDistance);
position = api.Positions.Find("myLabel")
if position is not None and position.StopLossBreakEven is not None:
api.Print(f"Break-even activates after {position.StopLossBreakEven.TriggerDistance} pips")