CapitalMastery

Rolling Multiday VWAP

CapitalMastery Telah dikemas kini   
Couldn't find a VWAP script that worked the way I needed so I created this one. Basically, it provides a multiday rolling VWAP. I made the rolling period configurable, but I primarily use it to add a 2 day VWAP to my chart alongside the standard VWAP indicator. This unique thing that this indicator does is dynamically anchor to the configured period, but starting from today backwards.


Basically, this indicator ensures VWAP never anchors to the current day, but instead always shows a 2 day VWAP on today's charts. The problem I had with other indicators is that every other day my 2 day VWAP indicator would anchor to the current day and essentially become a redundant standard VWAP indicator.

Hope to update in the future to dynamically update based the chart day you have in focus, but will need some time to figure out if that's even possible.
Nota Keluaran:
Refactored the original indicator/script to fix a number of bugs, and make the lookback period (in days) configurable. Enjoy!
Nota Keluaran:
Updated chart, and added documentation.
Nota Keluaran:
Fixed lookback period bug
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?