Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=3
- study(title="Moving Average", shorttitle="MA", overlay=true)
- len50 = input(50, minval=1, title="Length")
- src50 = input(close, title="Source")
- out50 = sma(src50, len50)
- plot(out50, color=fuchsia, linewidth=2, title="MA")
- len100 = input(100, minval=1, title="Length")
- src100 = input(close, title="Source")
- out100 = sma(src100, len100)
- plot(out100, color=lime, linewidth=2, title="")
- len200 = input(200, minval=1, title="Length")
- src200 = input(close, title="Source")
- out200 = sma(src200, len200)
- plot(out200, color=white, linewidth=2, title="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement