finallynitin

ATR with WMA

Jan 18th, 2021 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //@version=3
  2. study(title="ATR MA", shorttitle="ATR with MA", overlay=false)
  3. lenAtr = input(title = "atr length", defval = 1)
  4. atr = atr(lenAtr)
  5. plot(atr, color = black, linewidth = 1)
  6.  
  7. avg5 = input(title="WMA", type=integer, defval=5)
  8. avg13 = input(title="WMA", type=integer, defval=13)
  9. avg22 = input(title="WMA", type=integer, defval=22)
  10.  
  11. WMA5 = wma(atr, avg5)
  12. WMA13 = wma(atr, avg13)
  13. WMA22 = wma(atr,avg22)
  14.  
  15. plot(WMA5, color=orange, title="WMA5")
  16. plot(WMA13, color=green, title="WMA13")
  17. plot(WMA22, color=red, title="WMA22")
Add Comment
Please, Sign In to add comment