This indicator takes the average from daily VWAP values. How can I add bands that take the average from daily vwap band values?
input offset = 0;
input length = 10;
def aggperiod = AggregationPeriod.DAY;
def x = vwap(period = aggperiod);
plot MVWAP = Average(x, length)[offset];
I tried a couple things but still don't know what I'm doing, for example I thought if I added the code below that it might work.
def y = reference VWAP()."UpperBand";
plot UpperBand = Average(y, length)[offset];
input offset = 0;
input length = 10;
def aggperiod = AggregationPeriod.DAY;
def x = vwap(period = aggperiod);
plot MVWAP = Average(x, length)[offset];
I tried a couple things but still don't know what I'm doing, for example I thought if I added the code below that it might work.
def y = reference VWAP()."UpperBand";
plot UpperBand = Average(y, length)[offset];
Last edited: