Code Library / VWAP

Pine Script Multi-Day VWAP

Daily and weekly VWAP for confluence levels.

Language: Pine Script · Category: VWAP · Tags: VWAP, multi-day, weekly, Pine Script, confluence

Source code

//@version=5
indicator("Multi-Day VWAP",overlay=true)
plot(ta.vwap(hlc3),"Today",color.blue,2)
plot(request.security(syminfo.tickerid,"W",ta.vwap(hlc3)),"Weekly",color.purple,2,plot.style_stepline)

How to use this snippet

This is a building block, not a finished trading system. Paste it into your own Pine Script project, compile it, and test it on a demo account with your broker's real spreads before relying on it. You can convert it to MQL4 or MQL5 with the Pine Script converter.

Related snippets