OPEN-SOURCE SCRIPT

(JS) Interchanging ATR & VWAP Bands

Okay so this is pretty simple, but I think it's a great tool for day trading especially. I just took the default VWAP and Keltner channel scripts and combined them together.

The top option allows you to choose which one you'd prefer to use, "Use ATR instead of VWAP".

The next options, "ATR Source", "KC Length", and "ATR Length" are the parameters for the ATR Bands.

"Number of Bands" allows you to choose how many bands you'd like to be on display (you can choose 1-8).

"Use Expoential MA" and "Band Style" are more default parameters from Keltner Channels used to set up the ATR Bands.

The "ATR Bands" are just stacked Keltner Channels separated by 1 ATR each, whereas the "VWAP Bands" are separated by standard deviation just like the default script from Trading View.

In these example chart, you can see the weekly VWAP with 8 deviation bands and 5 ATR bands with Keltner Channels.
ATRAverage True Range (ATR)Keltner Channels (KC)overboughtoversoldVolume Weighted Average Price (VWAP)vwapbands

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明