FractalTrade_

Nadaraya-Watson Oscillator

This indicator is based on the work of @jdehorty and his amazing Nadaraya-Watson Kernel Envelope, which you can see here:

General Description

The Nadaraya-Watson Oscillator (NWO) will give the same information as the Nadaraya-Watson Envelope, but as an oscillator off the main chart, by plotting the relationship between price and the Kernel and its bands. This also means that we can now detect divergences between price and the NWO.

You can see the relationship between the two here:

You can think of this indicator as the kernel envelope version of a Bollinger Band %B. In ranging markets the bands are perfect for mean reversion trades, but in certain situations the break of one of the bands can signal the beggining of a strong trend and price will remain close to the bands for a long period and will only give small pullbacks. As with any indicator, confluence with price and other tools must be taken into account.

Main Features

As with @jdehorty 's Envelope, you can change the following settings:
  • Lookback Window.
  • Relative Weighting.
  • The initial bar for the regression.
  • ATR period for the bands.
  • Inner and Outer Multiples for the bands.

I also added the following:
  • A middle band around the Kernel to filter out false crossovers.
  • A Hull Moving Average to smoothen out the movements of the oscillator and give extra confirmation of turnover points.

Colors

Some special things to note regarding the coloring:
  • The zero line features a gradient that changes color every time the Kernel slope changes direction.
  • The Oscillator plot has a gradient coloring that gets stronger the closer it gets to each of the bands.
  • Every time the oscillator crosses over/under the outer bands the background will be highlighted.

Happy trading!

@FractalTrade_
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?