Davilae177

Super EMA 2020

Jan 8th, 2020 (edited)
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. // Super EMA MA Combo //
  2. // 5 EMAs: //
  3. // 5 SMAs: //
  4.  
  5. study(title=" EMA MA Combo ", shorttitle="SP-EMA/MA", overlay = true )
  6.  
  7. // EMA input//
  8. scalpingEMA1 = input(5, minval=1)
  9. scalpingEMA2 = input(10, minval=1)
  10. scalpingEMA3 = input(13, minval=1)
  11. scalpingEMA4 = input(25, minval=1)
  12. EMA1 = input(21, minval=1)
  13. EMA2 = input(50, minval=1)
  14. EMA3 = input(89, minval=1)
  15. EMA4 = input(200, minval=1)
  16. EMA5 = input(377, minval=1)
  17.  
  18.  
  19. // MA input//
  20. SMA1 = input(10, minval=1)
  21. SMA2 = input(30, minval=1)
  22. SMA3 = input(50, minval=1)
  23. SMA4 = input(200, minval=1)
  24. SMA5 = input(377, minval=1)
  25. xPrice = close
  26.  
  27. // EMA //
  28. xscEMA1 = ema(xPrice, scalpingEMA1)
  29. xscEMA2 = ema(xPrice, scalpingEMA2)
  30. xscEMA3 = ema(xPrice, scalpingEMA3)
  31. xscEMA4 = ema(xPrice, scalpingEMA4)
  32. xEMA1 = ema(xPrice, EMA1)
  33. xEMA2 = ema(xPrice, EMA2)
  34. xEMA3 = ema(xPrice, EMA3)
  35. xEMA4 = ema(xPrice, EMA4)
  36. xEMA5 = ema(xPrice, EMA5)
  37. // MA //
  38. xSMA1 = sma(xPrice, SMA1)
  39. xSMA2 = sma(xPrice, SMA2)
  40. xSMA3 = sma(xPrice, SMA3)
  41. xSMA4 = sma(xPrice, SMA4)
  42. xSMA5 = sma(xPrice, SMA5)
  43.  
  44.  
  45. // EMA plot//
  46. plot(xscEMA1, linewidth=2, color=yellow, title="scalping EMA 1")
  47. plot(xscEMA2, linewidth=2, color=lime, title="scalping EMA 2")
  48. plot(xscEMA3, linewidth=2, color=aqua, title="scalping EMA 3")
  49. plot(xscEMA4, linewidth=2, color=purple, title="scalping EMA 4")
  50. plot(xEMA1, linewidth=2, color=yellow, title="EMA 1")
  51. plot(xEMA2, linewidth=2, color=lime, title="EMA 2")
  52. plot(xEMA3, linewidth=2, color=aqua, title="EMA 3")
  53. plot(xEMA4, linewidth=2, color=purple, title="EMA 4")
  54. plot(xEMA5, linewidth=2, color=yellow, title="EMA 5")
  55. // MA plot//
  56. plot(xSMA1, linewidth=2, color=blue, title="MA 1")
  57. plot(xSMA2, linewidth=2, color=red, title="MA 2")
  58. plot(xSMA3, linewidth=2, color=red, title="MA 3")
  59. plot(xSMA4, linewidth=2, color=red, title="MA 4")
  60. plot(xSMA5, linewidth=2, color=red, title="MA 5")
  61.  
  62.  
Advertisement
Add Comment
Please, Sign In to add comment