BreakEven

forge.signalsclassSince Forge API 1
Signaturepython
forge.signals.BreakEven(*,kind: str = 'break_even',note: str | None = None,at_r: float | None = None,at_pips: float | None = None,offset_pips: float = 0.0) -> None

Move the stop to the entry price once the trade is ahead: fg.BreakEven(at_r=1.0).

Parameters

NameTypeDefault
kindstr'break_even'
notestr | NoneNone
at_rfloat | NoneNone
at_pipsfloat | NoneNone
offset_pipsfloat0.0

Give one trigger: at_r is a multiple of the initial risk, and at_pips a gain in pips. offset_pips puts the stop that far beyond the entry, to cover costs, and must be below at_pips.