Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. //@version=3
  2. study(title="Moving Average", shorttitle="MA", overlay=true)
  3. len50 = input(50, minval=1, title="Length")
  4. src50 = input(close, title="Source")
  5. out50 = sma(src50, len50)
  6. plot(out50, color=fuchsia, linewidth=2, title="MA")
  7.  
  8. len100 = input(100, minval=1, title="Length")
  9. src100 = input(close, title="Source")
  10. out100 = sma(src100, len100)
  11. plot(out100, color=lime, linewidth=2, title="")
  12.  
  13. len200 = input(200, minval=1, title="Length")
  14. src200 = input(close, title="Source")
  15. out200 = sma(src200, len200)
  16. plot(out200, color=white, linewidth=2, title="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement