Guest User

VWAP Bands [LazyBear]

a guest
Nov 29th, 2014
4,559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. //
  2. // @author LazyBear
  3. // List of all my indicators:
  4. // https://docs.google.com/document/d/15AGCufJZ8CIUvwFJ9W-IKns88gkWOKBCvByMEvm5MLo/edit?usp=sharing
  5. //
  6. study("VWAP Bands", overlay=true)
  7. l1=input(1.0, title="VWAP 1 Multiplier")
  8. l2=input(2.0, title="VWAP 1 Multiplier")
  9. src=close
  10. b=vwap(src)
  11. length=input(34)
  12. plot(b, color=gray, linewidth=2)
  13. plot(b+l1*stdev(src, length), linewidth=2, color=red, style=linebr)
  14. plot(b+l2*stdev(src, length), linewidth=2, color=red, style=linebr)
  15. plot(b-l1*stdev(src, length), linewidth=2, color=green, style=linebr)
  16. plot(b-l2*stdev(src, length), linewidth=2, color=green, style=linebr)
  17.  
  18. // Uncomment the lines below if you need 3rd VWAP band
  19. //
  20. //l3=input(2.5, title="VWAP 3 Multiplier")
  21. //plot(b+l3*stdev(src, length))
  22. //plot(b-l3*stdev(src, length))
Advertisement
Add Comment
Please, Sign In to add comment