TradingView Nadaraya-Watson Envelope (Non-Repainting) [jdehorty] Conversion to NinjaTrader 8
jdehorty’s Nadaraya-Watson Envelope is a kernel-regression non-repainting trend filter. The Rational-Quadratic kernel weighs each historical bar by a smooth, fast-decaying function — recent bars get the highest weight, older bars decay quickly. The weighted sum of close gives a ‘kernel close’ that’s smooth without the lag of a moving average and without the repainting common…









