finallynitin

SD with WMA

Jan 18th, 2021 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //@version=1
  2. study(title="Standard Deviation with WMA", shorttitle="STDEV with WMA")
  3. length = input(20, minval=1)
  4. avg13 = input(title="WMA", type=integer, defval=13)
  5. avg22 = input(title="WMA", type=integer, defval=22)
  6. src = input(close, title="Source")
  7. stdev = stdev(src, length)
  8. WMA13 = wma(stdev, avg13)
  9. WMA22 = wma(stdev,avg22)
  10. plot(stdev, color=black)
  11. plot(WMA13, color=green, title="WMA13")
  12. plot(WMA22, color=red, title="WMA22")
Add Comment
Please, Sign In to add comment