Saudi Arabia
Posts: 58 since Apr 2014
Thanks Given: 26
Thanks Received: 4
|
HI
can any one change this indicator to work in sierra?its from trading view
or show the guide ,i do not know any thing about programming .
study("VWAP MTF",overlay=true)
TimeFrame = input('W')
start = security(tickerid, TimeFrame, time)
//------------------------------------------------
newSession = iff(change(start), 1, 0)
//------------------------------------------------
vwapsum = iff(newSession, hl2*volume, vwapsum[1]+hl2*volume)
volumesum = iff(newSession, volume, volumesum[1]+volume)
v2sum = iff(newSession, volume*hl2*hl2, v2sum[1]+volume*hl2*hl2)
myvwap = vwapsum/volumesum
dev = sqrt(max(v2sum/volumesum - myvwap*myvwap, 0))
Coloring=close>myvwap?green:red
av=myvwap
showPrevVWAP = input(false, type=bool, title="Show previous VWAP close")
prevwap = iff(newSession, myvwap[1], prevwap[1])
plot(showPrevVWAP ? prevwap : na, style=circles, color=close > prevwap ? green : red)
A=plot(av, style=circles, color=Coloring)
|