PWV - Price Weighted Volume
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Gokubro

//@version=5
indicator("price weighted volume")

pwv = close * volume


plot(pwv, "PWV", color=#7E57C2)


hline(50, "Baseline", color=color.new(#787B86, 0))


shortest = ta.ema(pwv, 20)
short = ta.ema(pwv, 50)
longer = ta.ema(pwv, 100)
longest = ta.ema(pwv, 200)


plot(shortest, "shortest", color = color.red, display=display.none)
plot(short, "short", color = color.orange, display=display.none)
plot(longer, "longer", color = color.aqua, display=display.none)
plot(longest, "longest", color = color.blue, display=display.none)