Guest User

WMA on OBV

a guest
Sep 18th, 2014
2,176
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 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(title="WMA on OBV [LazyBear[", shorttitle="WMAOBV_LB")
  7. src = close, len = input(13, minval=1, title="Length")
  8. out = cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
  9. out2 = wma(out, len)
  10. plot(out, color=blue, title="OBV")
  11. plot(out2, title="EMA", color=red)
Advertisement
Comments
Add Comment
Please, Sign In to add comment