Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- study(title="Volume with WMA", shorttitle="Vol with WMA", format=format.volume, resolution="")
- showMA = input(true)
- plot(volume, color=color.black, style=plot.style_line, title="Volume")
- plot(showMA ? wma(volume,5) : na, style=plot.style_line, color=color.orange, title="Volume MA5")
- plot(showMA ? wma(volume,10) : na, style=plot.style_line, color=color.green, title="Volume MA10")
- plot(showMA ? wma(volume,20) : na, style=plot.style_line, color=color.red, title="Volume MA20")
Advertisement
Add Comment
Please, Sign In to add comment