Volume Weighted Exponential Moving Average
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ProfessorION

// Most VWEMAs dont work on the higher timeframes, this one does.  it 

//@version=5
indicator("VWEMA with Timeframe", timeframe="", overlay=true)
length = input.int(50, minval=1, title="Length")
src = input(close, title="Source")
offset = input.int(title="Offset", defval=0, minval=-500, maxval=500)

volumePrice = volume * close
vwema = nz(ta.ema(volumePrice, length)/ ta.ema(volume, length))

plot(vwema)
