SL Calc
Computes the stop-loss "distance" (not a price) — SignalNode converts it to a price based on direction
When to use: atr_mult = SL scales with volatility (recommended default); fixed = a fixed $ distance (connect a constant from Math); pct = % of price; trailing = legacy mode (recommended instead: enable trailing on SignalNode)
Ports
in-value— ATR or a distance series (atr_mult/fixed modes)out-sl— The SL distance per bar → connect into Signal.in-sl
Params
mode— atr_mult / fixed / pct / trailingmultiplier— Multiplier (atr_mult: ×ATR, pct: % of close)be_trigger— (legacy trailing) Profit in R before moving SL to breakeventrail_step— (legacy trailing) Trail distance ×ATR
Used in these recipes
- Trend-follow — EMA Cross
- Mean-reversion — RSI Oversold
- Breakout — New High + ADX Filter
- Liquidity Grab — Sweep & Reclaim