Skip to content

StopLossBreakEven.Offset

property · StopLossBreakEven · cAlgo.API Since 5.8

DesktopCLICloud

The offset in pips applied to the entry price when the stop loss is moved.

Definition

public double Offset {get;}
stopLossBreakEven.Offset: float

Returns double

Examples

var position = Positions.Find("myLabel");
if (position != null && position.StopLossBreakEven != null)
    Print("Stop loss moves to entry + {0} pips", position.StopLossBreakEven.Offset);
position = api.Positions.Find("myLabel")
if position is not None and position.StopLossBreakEven is not None:
    api.Print(f"Stop loss moves to entry + {position.StopLossBreakEven.Offset} pips")