The script picks up Bank nifty stocks with their current respective weights and plots a Volume Weighted Average Price ( VWAP ) line along with 2 EMAs of your choice and an alert when the EMAs cross over and also when price crosses VWAP .

You can customize the script for MA type and lengths and to remove alert. Basic utility of the script is to analyse volumes driving the Bank Nifty index.

Credits to @daytraderph and his script (Custom Volume ) who's code I used to build this script. Also thanks to my friend @Varun who helped me code it.
Release Notes: Update - 28 June 2020
1. Updated weights as per NSE website

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?