Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security_pvwap = security(syminfo.tickerid, "D", time)
- security_pvwap_diff = change(security_pvwap) ? 1 : 0
- value = valuewhen(security_pvwap_diff, vwapValue_s[1], 0)
- plot(enable_pvwap ? value : na, title = "pVWAP", color = color.yellow, style = plot.style_cross, transp = 20, linewidth = 1)
Add Comment
Please, Sign In to add comment