Signal
The graph's endpoint — combines trigger + SL + TP into an entry order (every strategy needs at least 1)
When to use: Connect trigger (boolean) + in-sl (required); leaving in-tp unconnected falls back to the rr param (connecting it overrides rr); enable trailing here + connect ATR into in-atr for a trailing stop decoupled from how SL is calculated
Ports
in-trigger— The entry condition (boolean, required)in-sl— SL distance (required)in-tp— (optional) TP distance — falls back to rr when unconnectedin-atr— (optional) ATR for trailing — required when trailing is enabled
Params
direction— long / short — determines which side of price SL/TP sit onsize_pct— Position size (as a fraction)rr— Fallback TP = SL×rr when in-tp is not connectedtrailing— Enables a trailing stop (ratchets every bar — SL never moves backward)trailing_be— Profit in ×ATR before moving SL to entry (breakeven)trailing_step— Trail distance = ×ATR behind price
Used in these recipes
- Trend-follow — EMA Cross
- Mean-reversion — RSI Oversold
- Breakout — New High + ADX Filter
- Liquidity Grab — Sweep & Reclaim