carloswm85

Untitled

Aug 28th, 2021 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. security_pvwap = security(syminfo.tickerid, "D", time)
  2. security_pvwap_diff = change(security_pvwap) ? 1 : 0
  3. value = valuewhen(security_pvwap_diff, vwapValue_s[1], 0)
  4. 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