Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=3
- study(title="ATR MA", shorttitle="ATR with MA", overlay=false)
- lenAtr = input(title = "atr length", defval = 1)
- atr = atr(lenAtr)
- plot(atr, color = black, linewidth = 1)
- avg5 = input(title="WMA", type=integer, defval=5)
- avg13 = input(title="WMA", type=integer, defval=13)
- avg22 = input(title="WMA", type=integer, defval=22)
- WMA5 = wma(atr, avg5)
- WMA13 = wma(atr, avg13)
- WMA22 = wma(atr,avg22)
- plot(WMA5, color=orange, title="WMA5")
- plot(WMA13, color=green, title="WMA13")
- plot(WMA22, color=red, title="WMA22")
Add Comment
Please, Sign In to add comment