Nadaraya-Watson Smoothers
Aug 24, 2021
.png&w=1200&q=75)
The trading indicator under discussion leverages the Nadaraya-Watson estimator to smooth price data, utilizing the Gaussian kernel for weighting functions. This approach offers traders the option between non-repainting and repainting methods, adding flexibility to their trading strategy.
How Does the Flexible Smoothing Trading Indicator Work?
Non-Repainting Method
When the Repainting Smoothing option is turned off, the indicator functions like a standard causal moving average, often referred to as an "endpoint Nadaraya-Watson estimator." Unlike traditional moving averages, which derive their smoothness from calculation window length, this indicator’s smoothness is governed by the bandwidth setting. A higher bandwidth results in smoother data outputs.
For example, in the chart above, a bandwidth value of 50 is elected. An ascent in the smoother suggests an uptrend, whereas a descent indicates a downtrend.
Repainting Method
Typical non-causal smoothing methods are sometimes underutilized due to their tendency to repaint. However, they offer valuable insights into trend estimation and price deviation analysis. They also simplify pattern identification and uncover underlying price structures.
By increasing the bandwidth value, traders can gauge longer-term price trends.
Triangular labels denote points of directional shifts in the estimator, aiding in the identification of trend tops and bottoms in comparison with actual price movements.
Be aware that multiple labels may display in real-time as the estimator's direction shifts, with the latest label appearing first. While this can be beneficial for predictive applications, it’s not the sole recommended use.
Understanding the Nadaraya-Watson Estimator
The Nadaraya-Watson estimator employs weighted averages with a specially normalized kernel functioning as the weighting tool. At any given time t, the kernel's peak is at t, leading to maximum weights on values nearest to the time t price.
Smaller bandwidth values enhance the precise point price weighting, leading to less smoothing. If the kernel effectively becomes an impulse due to a minimal bandwidth, raw prices are returned.
Conversely, a larger bandwidth promotes a uniform price weighting, analogous to the price mean.
Significantly, due to the estimator’s inherent properties and weighting method, real-time results near the calculation window's center do not exhibit drastic deviations.
Key Settings for Optimal Performance
- Bandwidth: Adjusts the Gaussian kernel's bandwidth, with larger numbers providing smoother outcomes.
- Src: The input source for kernel regression.
- Repainting Smoothing: Decides whether the smoothing method should repaint. Disabled options yield the "endpoint Nadaraya-Watson estimator."
FAQ
What is the Nadaraya-Watson Estimator in Trading? The Nadaraya-Watson estimator is a type of weighted average using a Gaussian kernel, aiming to smooth out price data for better trend analysis.
How Can I Access the Flexible Smoothing Trading Indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading is risky and many will lose money in connection with trading activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other markets involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools for charting platforms, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content or tool we provide.
Charts used on this site are by TradingView in which the majority of our tools are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com. TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2025 LuxAlgo Global, LLC.