Guest User

Untitled

a guest
Apr 25th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////
  2. // 5 EMA lines as per Hbthegreat EMA Cross strategy
  3. ////////////////////////////////////////////////////////////
  4. study(title="5EMA", shorttitle="5EMA", overlay = true )
  5. Length1 = input(9, minval=1)
  6. Length2 = input(13, minval=1)
  7. Length3 = input(21, minval=1)
  8. Length4 = input(55, minval=1)
  9. Length5 = input(100, minval=1)
  10. xPrice = close
  11. xEMA1 = ema(xPrice, Length1)
  12. xEMA2 = ema(xPrice, Length2)
  13. xEMA3 = ema(xPrice, Length3)
  14. xEMA4 = ema(xPrice, Length4)
  15. xEMA5 = ema(xPrice, Length5)
  16. plot(xEMA1, color=blue, title="5EMA 9")
  17. plot(xEMA2, color=purple, title="5EMA 13")
  18. plot(xEMA3, color=orange, title="5EMA 21")
  19. plot(xEMA4, color=yellow, title="5EMA 55")
  20. plot(xEMA5, color=white, title="5EMA 100")
Add Comment
Please, Sign In to add comment