Here is the Think or Swim code for multi-day VWAP - you select the start date, you can day 2 days, 50 days, a year, etc.
input startDateYyyyMmDd = 20171116;
def beyondStartDate = if GetYYYYMMDD() >= startDateYyyyMmDd then 1 else 0;
plot VWAP = TotalSum(if beyondStartDate then (((high + low + close) / 3) * volume) else 0) / TotalSum(if beyondStartDate then volume else 0);
VWAP.SetDefaultColor(Color.ORANGE);
VWAP.SetStyle(Curve.SHORT_DASH);
VWAP.SetLineWeight(1);
View attachment 194695