indicator · on price · open source

Anchored VWAP Bands

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

Session VWAP with standard-deviation bands. Price above VWAP = buyers in control for the session; the outer bands often act as stretch levels for mean-reversion entries.

Source code

//@version=5
indicator("Anchored VWAP Bands", overlay=true)
mult = input.float(2.0, "Band width (σ)", step=0.1)
len = input.int(50, "Deviation lookback", minval=5)
v = ta.vwap(hlc3)
dev = ta.stdev(close - v, len)
plot(v, "VWAP", color=color.orange, linewidth=2)
upper = plot(v + dev * mult, "Upper", color=color.new(color.teal, 30))
lower = plot(v - dev * mult, "Lower", color=color.new(color.teal, 30))
fill(upper, lower, color=color.new(color.teal, 92))
alertcondition(ta.crossover(close, v + dev * mult), "Above upper band", "Price stretched above the VWAP band")
alertcondition(ta.crossunder(close, v - dev * mult), "Below lower band", "Price stretched below the VWAP band")

Comments

No comments yet.

Sign in to comment.