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

  1. OHLCV → Rolling Max(20, source=high) — The resistance level = the highest high over 20 bars
  2. 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)
  3. Compare (close > lagged max) — Closing above the prior high = a genuine breakout, not just a wick poke
  4. ADX(14) → Threshold (> 25) — Filters out false breakouts in a sideways market — ADX confirms there's real trend strength
  5. AND → Signal (long) — Both conditions must pass; SL = 1.5×ATR, TP = rr 1.5

Nodes used in this recipe