This script plots a line in different colors based on how many high weightage stocks of banknifty are under vwap.
WORKS BEST on 1m and 2m candles.
stocks used to track are :
HDFC BANK
ICICI BANK
KOTAK BANK
SBI
INDUSIND BANK
If > 80% are below vwap then RED
If > 60% to < 80% below vwap then orange
if > 40% and < 60% below vwap then yellow
if < 40% below vwap then green
Any suggestions to add extra indicators is most welcomed.