finallynitin

Volume with WMA

Jan 18th, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. //@version=4
  2. study(title="Volume with WMA", shorttitle="Vol with WMA", format=format.volume, resolution="")
  3. showMA = input(true)
  4. plot(volume, color=color.black, style=plot.style_line, title="Volume")
  5. plot(showMA ? wma(volume,5) : na, style=plot.style_line, color=color.orange, title="Volume MA5")
  6. plot(showMA ? wma(volume,10) : na, style=plot.style_line, color=color.green, title="Volume MA10")
  7. 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