I made this specific code to anchor the VWAP on a specific intraday time:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
//time anchored VWAP //SAME VERSION AS THE ORIGINAL VWAP FROM THE PLATFORM //27.04.2020 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge timestart = 070000 if time=timestart then d=0 drawtext("➤",barindex,typicalprice,dialog,bold,20) else d=d+1 if volume >0 then VWAP = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume) endif endif if vwap>vwap[1] then color = 1 else color = -1 endif RETURN VWAP coloured by color STYLE(LINE,1) as "VWAP" |
The start of the VWAP is labelled with an arrow.