TradingView KNN Supertrend Horizon [LuxAlgo] Conversion to NinjaTrader 8
Most SuperTrend variants are deterministic: ATR × multiplier sets the band width and the trend flips when price closes the wrong side. LuxAlgo’s KNN Supertrend Horizon takes a different swing — it runs a k-nearest-neighbors classifier over recent (RSI, ATR%) feature space, votes on the next-bar SuperTrend direction, EMA-smooths the probability, and only flips when…









