Vwma Oscillator [MMD]
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © muratm82

//@version=5
indicator("Vwma Oscillator [MMD]",overlay=false)
a1=ta.ema(close*volume,4)/ta.ema(volume,4)
a2=a1-ta.vwma(close,8)
a3=2*ta.vwma(a2,8)-ta.vwma(a2,16)
plot(a3,color=((a3>a3[3]*0.8 and a3<a3[3]*1.2) or (a3<a3[3]*0.8 and a3>a3[3]*1.2))?color.silver:(a3>0?color.green:color.red), linewidth =3,style=plot.style_circles)
p1=plot(a3[3]*0.8,transp=100)
p2=plot(a3[3]*1.2,transp=100)
fill(p1,p2,color=a3[2]*0.8>a3[2]*1.2?color.red:color.green,transp=25)
plot(0,color=color.gray,linewidth =2)
a1s=ta.sar(0.003,0.004,0.2)
a2s=ta.ema(close,200)
a3s=ta.vwma(close,50)
a4s=math.sqrt(a1s*a2s)
a5s=math.sqrt(a3s*a4s)

plot(close-a5s,style=plot.style_columns,color=close-a5s>0?color.lime:color.maroon,transp=75)