Don't know if anyone posted this version of the VWAP in watchlist. My version takes the difference and gets the percentage of ATR at any moment. So, if Percentage is over or under 30% ATR, we should bet the reversal , or they call this mean reversion.........
Code:
# ATR
def atrLength = 14;
def atr = Average(TrueRange(high, close, low), atrLength);
plot vwap1 = vwap();
AssignBackgroundColor(if close > vwap1 then Color.GREEN else if close < vwap1 then Color.RED else Color.dark_gray);
def vwapP = round((close - vwap1)/ ATR *100,1);
addlabel( yes, vwapP+" %" , if close > vwap then color.black else color.white);
Last edited by a moderator: