Hi,
Would it be possible to get a Anchored VWAP indicator for the daily high and the daily low? There is one on Tradingview but I cant seem to find anything close on PRT
Cheers,
Jack
The below code will compute and plot in real time the VWAP anchored on both daily high and daily low:
if dhigh(0)>dhigh(0)[1] then
starthigh=barindex
endif
if dlow(0)<dlow(0)[1] then
startlow=barindex
endif
dh = max(1, barindex-starthigh)
dl = max(1, barindex-startlow)
VWAPh = SUMMATION[dh](volume*typicalprice)/SUMMATION[dh](volume)
VWAPl = SUMMATION[dl](volume*typicalprice)/SUMMATION[dl](volume)
RETURN VWAPh coloured("red"), vwapl coloured("green")
Great thank you so much!!! 🙂