This script calculates the daily VWAP from any specified starting point intraday. Also colors the VWAP based on whether price is above or below it.
Standard vwap starts at day open 0 GMT, however there are some exchanges for eg. Deribit that have seen they use a different time period to begin VWAP calculations. This is useful in such cases.
You need to specify...
All in One Overlay
SMA 1-3 / EMA 1-3 / H-L 1-3 / VWAP
VWAP is Volume-Weighted Average Price
SMA 1-3 is 1,2,or 3 Simple Moving Average Line(s).
EMA 1-3 is 1,2,or 3 Exponential Moving Average Line(s).
H-L 1-3 is the Highest high and Lowest low of x bars from the current bar.
Function is where you choose SMA 1, SMA 2, SMA 3, or EMA1, EMA 2,...