Skip to main content

Module structural_stop

Module structural_stop 

Source

Structs§

StructuralTrailingStop
Tracks a structural (non-ATR, non-break-even) trailing stop: the stop only advances when the market has printed new confirmed structure, and only ever tightens risk — never loosens it (plan Anhang G.2: “Stop wird nur nachgezogen, wenn der Markt neue Struktur erzeugt hat”).

Functions§

remaining_rr
Live CRV recompute for structural trailing-stop management (plan Anhang G.2): RR_remaining = (NextTarget - CurrentPrice) / (CurrentPrice - ProtectiveStop). When this shrinks towards zero, holding further becomes mathematically unattractive even without a fixed profit target being hit — a trade can become structurally “fertig”.