Breakout — New High + ADX Filter
Enter LONG when price closes above the highest high of the prior 20 bars, and the market is actually trending (ADX > 25)
Built node by node
- OHLCV → Rolling Max(20, source=high) — The resistance level = the highest high over 20 bars
- Lag(1) — Required! rolling_max includes the current bar — compared directly, close can never exceed a max that includes itself, so it's shifted 1 bar first (Swing High is the shortcut that already does this)
- Compare (close > lagged max) — Closing above the prior high = a genuine breakout, not just a wick poke
- ADX(14) → Threshold (> 25) — Filters out false breakouts in a sideways market — ADX confirms there's real trend strength
- AND → Signal (long) — Both conditions must pass; SL = 1.5×ATR, TP = rr 1.5
Nodes used in this recipe
- OHLCV
- Indicator
- Lag (N bars)
- Compare
- Threshold
- Logic Gate
- SL Calc
- Signal