Advertisement
xmd79

The Scale of Sacred Sounds by Andre Brzek Le Roux

Jan 3rd, 2023
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.56 KB | None | 0 0
  1. //@version=5
  2.  
  3. indicator(title='The Scale of Sacred Sounds by Andre Brzek Le Roux', shorttitle='SOSS', overlay=true)
  4.  
  5. //
  6. // Author: Andre Brzek Le Roux
  7. // Revision: 1.0
  8. // Date: 15-Nov-2018
  9. //
  10. src = input(close, title='EMA Source')
  11. //Fast EMAs
  12. //32; 33; 34; 35; 36; 37; 38; 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; 55; 56; 57; 58; 59; 60; 61; 62; 63; 64
  13. lenF1 = input.int(32, minval=1, title='Fast EMA 1')
  14. lenF2 = input.int(33, minval=1, title='Fast EMA 2')
  15. lenF3 = input.int(34, minval=1, title='Fast EMA 3')
  16. lenF4 = input.int(35, minval=1, title='Fast EMA 4')
  17. lenF5 = input.int(36, minval=1, title='Fast EMA 5')
  18. lenF6 = input.int(37, minval=1, title='Fast EMA 6')
  19. lenF7 = input.int(38, minval=1, title='Fast EMA 7')
  20. lenF8 = input.int(39, minval=1, title='Fast EMA 8')
  21. lenF9 = input.int(40, minval=1, title='Fast EMA 9')
  22. lenF10 = input.int(41, minval=1, title='Fast EMA 10')
  23. lenF11 = input.int(42, minval=1, title='Fast EMA 11')
  24. lenF12 = input.int(43, minval=1, title='Fast EMA 12')
  25. lenF13 = input.int(44, minval=1, title='Fast EMA 13')
  26. lenF14 = input.int(45, minval=1, title='Fast EMA 14')
  27. lenF15 = input.int(46, minval=1, title='Fast EMA 15')
  28. lenF16 = input.int(47, minval=1, title='Fast EMA 16')
  29. lenF17 = input.int(48, minval=1, title='Fast EMA 17')
  30. lenF18 = input.int(49, minval=1, title='Fast EMA 18')
  31. lenF19 = input.int(50, minval=1, title='Fast EMA 19')
  32. lenF20 = input.int(51, minval=1, title='Fast EMA 20')
  33. lenF21 = input.int(52, minval=1, title='Fast EMA 21')
  34. lenF22 = input.int(53, minval=1, title='Fast EMA 22')
  35. lenF23 = input.int(54, minval=1, title='Fast EMA 23')
  36. lenF24 = input.int(55, minval=1, title='Fast EMA 24')
  37. lenF25 = input.int(56, minval=1, title='Fast EMA 25')
  38. lenF26 = input.int(57, minval=1, title='Fast EMA 26')
  39. lenF27 = input.int(58, minval=1, title='Fast EMA 27')
  40. lenF28 = input.int(59, minval=1, title='Fast EMA 28')
  41. lenF29 = input.int(60, minval=1, title='Fast EMA 29')
  42. lenF30 = input.int(61, minval=1, title='Fast EMA 30')
  43. lenF31 = input.int(62, minval=1, title='Fast EMA 31')
  44. lenF32 = input.int(63, minval=1, title='Fast EMA 32')
  45. lenF33 = input.int(64, minval=1, title='Fast EMA 33')
  46.  
  47. //Slow EMAs
  48. //256; 264; 272; 280; 288; 296; 304; 312; 320; 328; 336; 344; 352; 360; 368; 376; 384; 392; 407; 408; 416; 424; 432; 440; 448; 456; 464; 472; 480; 488; 496; 504; 512
  49. lenS1 = input.int(256, minval=1, title='Slow EMA 1')
  50. lenS2 = input.int(264, minval=1, title='Slow EMA 2')
  51. lenS3 = input.int(272, minval=1, title='Slow EMA 3')
  52. lenS4 = input.int(280, minval=1, title='Slow EMA 4')
  53. lenS5 = input.int(288, minval=1, title='Slow EMA 5')
  54. lenS6 = input.int(296, minval=1, title='Slow EMA 6')
  55. lenS7 = input.int(304, minval=1, title='Slow EMA 7')
  56. lenS8 = input.int(312, minval=1, title='Slow EMA 8')
  57. lenS9 = input.int(320, minval=1, title='Slow EMA 9')
  58. lenS10 = input.int(328, minval=1, title='Slow EMA 10')
  59. lenS11 = input.int(336, minval=1, title='Slow EMA 11')
  60. lenS12 = input.int(344, minval=1, title='Slow EMA 12')
  61. lenS13 = input.int(352, minval=1, title='Slow EMA 13')
  62. lenS14 = input.int(360, minval=1, title='Slow EMA 14')
  63. lenS15 = input.int(368, minval=1, title='Slow EMA 15')
  64. lenS16 = input.int(376, minval=1, title='Slow EMA 16')
  65. lenS17 = input.int(384, minval=1, title='Slow EMA 17')
  66. lenS18 = input.int(392, minval=1, title='Slow EMA 18')
  67. lenS19 = input.int(407, minval=1, title='Slow EMA 19')
  68. lenS20 = input.int(408, minval=1, title='Slow EMA 20')
  69. lenS21 = input.int(416, minval=1, title='Slow EMA 21')
  70. lenS22 = input.int(424, minval=1, title='Slow EMA 22')
  71. lenS23 = input.int(432, minval=1, title='Slow EMA 23')
  72. lenS24 = input.int(440, minval=1, title='Slow EMA 24')
  73. lenS25 = input.int(448, minval=1, title='Slow EMA 25')
  74.  
  75. mult = 1
  76. //Fast EMA
  77. emaF1 = ta.ema(src, lenF1 * mult)
  78. emaF2 = ta.ema(src, lenF2 * mult)
  79. emaF3 = ta.ema(src, lenF3 * mult)
  80. emaF4 = ta.ema(src, lenF4 * mult)
  81. emaF5 = ta.ema(src, lenF5 * mult)
  82. emaF6 = ta.ema(src, lenF6 * mult)
  83. emaF7 = ta.ema(src, lenF7 * mult)
  84. emaF8 = ta.ema(src, lenF8 * mult)
  85. emaF9 = ta.ema(src, lenF9 * mult)
  86. emaF10 = ta.ema(src, lenF10 * mult)
  87. emaF11 = ta.ema(src, lenF11 * mult)
  88. emaF12 = ta.ema(src, lenF12 * mult)
  89. emaF13 = ta.ema(src, lenF13 * mult)
  90. emaF14 = ta.ema(src, lenF14 * mult)
  91. emaF15 = ta.ema(src, lenF15 * mult)
  92. emaF16 = ta.ema(src, lenF16 * mult)
  93. emaF17 = ta.ema(src, lenF17 * mult)
  94. emaF18 = ta.ema(src, lenF18 * mult)
  95. emaF19 = ta.ema(src, lenF19 * mult)
  96. emaF20 = ta.ema(src, lenF20 * mult)
  97. emaF21 = ta.ema(src, lenF21 * mult)
  98. emaF22 = ta.ema(src, lenF22 * mult)
  99. emaF23 = ta.ema(src, lenF23 * mult)
  100. emaF24 = ta.ema(src, lenF24 * mult)
  101. emaF25 = ta.ema(src, lenF25 * mult)
  102. emaF26 = ta.ema(src, lenF26 * mult)
  103. emaF27 = ta.ema(src, lenF27 * mult)
  104. emaF28 = ta.ema(src, lenF28 * mult)
  105. emaF29 = ta.ema(src, lenF29 * mult)
  106. emaF30 = ta.ema(src, lenF30 * mult)
  107. emaF31 = ta.ema(src, lenF31 * mult)
  108. emaF32 = ta.ema(src, lenF32 * mult)
  109. emaF33 = ta.ema(src, lenF33 * mult)
  110.  
  111. //Slow EMA
  112. emaS1 = ta.ema(src, lenS1 * mult)
  113. emaS2 = ta.ema(src, lenS2 * mult)
  114. emaS3 = ta.ema(src, lenS3 * mult)
  115. emaS4 = ta.ema(src, lenS4 * mult)
  116. emaS5 = ta.ema(src, lenS5 * mult)
  117. emaS6 = ta.ema(src, lenS6 * mult)
  118. emaS7 = ta.ema(src, lenS7 * mult)
  119. emaS8 = ta.ema(src, lenS8 * mult)
  120. emaS9 = ta.ema(src, lenS9 * mult)
  121. emaS10 = ta.ema(src, lenS10 * mult)
  122. emaS11 = ta.ema(src, lenS11 * mult)
  123. emaS12 = ta.ema(src, lenS12 * mult)
  124. emaS13 = ta.ema(src, lenS13 * mult)
  125. emaS14 = ta.ema(src, lenS14 * mult)
  126. emaS15 = ta.ema(src, lenS15 * mult)
  127. emaS16 = ta.ema(src, lenS16 * mult)
  128. emaS17 = ta.ema(src, lenS17 * mult)
  129. emaS18 = ta.ema(src, lenS18 * mult)
  130. emaS19 = ta.ema(src, lenS19 * mult)
  131. emaS20 = ta.ema(src, lenS20 * mult)
  132. emaS21 = ta.ema(src, lenS21 * mult)
  133. emaS22 = ta.ema(src, lenS22 * mult)
  134. emaS23 = ta.ema(src, lenS23 * mult)
  135. emaS24 = ta.ema(src, lenS24 * mult)
  136. emaS25 = ta.ema(src, lenS25 * mult)
  137.  
  138. //Fast EMA Plots
  139. plot(emaF1, title='Fast EMA 1', style=plot.style_line, linewidth=2, color=color.new(#00cc8f, 10))
  140. plot(emaF2, title='Fast EMA 2', style=plot.style_line, linewidth=1, color=color.new(#00ccad, 10))
  141. plot(emaF3, title='Fast EMA 3', style=plot.style_line, linewidth=1, color=color.new(#00c5cc, 10))
  142. plot(emaF4, title='Fast EMA 4', style=plot.style_line, linewidth=1, color=color.new(#00b4cc, 10))
  143. plot(emaF5, title='Fast EMA 5', style=plot.style_line, linewidth=1, color=color.new(#00a7cc, 10))
  144. plot(emaF6, title='Fast EMA 6', style=plot.style_line, linewidth=1, color=color.new(#0096cc, 10))
  145. plot(emaF7, title='Fast EMA 7', style=plot.style_line, linewidth=1, color=color.new(#0085cc, 10))
  146. plot(emaF8, title='Fast EMA 8', style=plot.style_line, linewidth=1, color=color.new(#0074cc, 10))
  147. plot(emaF9, title='Fast EMA 9', style=plot.style_line, linewidth=1, color=color.new(#0063cc, 10))
  148. plot(emaF10, title='Fast EMA 10', style=plot.style_line, linewidth=1, color=color.new(#005ccc, 10))
  149. plot(emaF11, title='Fast EMA 11', style=plot.style_line, linewidth=1, color=color.new(#004ecc, 10))
  150. plot(emaF12, title='Fast EMA 12', style=plot.style_line, linewidth=1, color=color.new(#0030cc, 10))
  151. plot(emaF13, title='Fast EMA 13', style=plot.style_line, linewidth=1, color=color.new(#0007cc, 10))
  152. plot(emaF14, title='Fast EMA 14', style=plot.style_line, linewidth=1, color=color.new(#3000cc, 10))
  153. plot(emaF15, title='Fast EMA 15', style=plot.style_line, linewidth=1, color=color.new(#4400cc, 10))
  154. plot(emaF16, title='Fast EMA 16', style=plot.style_line, linewidth=1, color=color.new(#5200cc, 10))
  155. plot(emaF17, title='Fast EMA 17', style=plot.style_line, linewidth=1, color=color.new(#7400cc, 10))
  156. plot(emaF18, title='Fast EMA 18', style=plot.style_line, linewidth=1, color=color.new(#8800cc, 10))
  157. plot(emaF19, title='Fast EMA 19', style=plot.style_line, linewidth=1, color=color.new(#9600cc, 10))
  158. plot(emaF20, title='Fast EMA 20', style=plot.style_line, linewidth=1, color=color.new(#a000cc, 10))
  159. plot(emaF21, title='Fast EMA 21', style=plot.style_line, linewidth=1, color=color.new(#b800cc, 10))
  160. plot(emaF22, title='Fast EMA 22', style=plot.style_line, linewidth=1, color=color.new(#cc00c2, 10))
  161. plot(emaF23, title='Fast EMA 23', style=plot.style_line, linewidth=1, color=color.new(#cc00a7, 10))
  162. plot(emaF24, title='Fast EMA 24', style=plot.style_line, linewidth=1, color=color.new(#cc008b, 10))
  163. plot(emaF25, title='Fast EMA 25', style=plot.style_line, linewidth=1, color=color.new(#cc004b, 10))
  164. plot(emaF26, title='Fast EMA 26', style=plot.style_line, linewidth=1, color=color.new(#cc0030, 10))
  165. plot(emaF27, title='Fast EMA 27', style=plot.style_line, linewidth=1, color=color.new(#cc000a, 10))
  166. plot(emaF28, title='Fast EMA 28', style=plot.style_line, linewidth=1, color=color.new(#cc0000, 10))
  167. plot(emaF29, title='Fast EMA 29', style=plot.style_line, linewidth=1, color=color.new(#cc0e00, 10))
  168. plot(emaF30, title='Fast EMA 30', style=plot.style_line, linewidth=1, color=color.new(#cc1800, 10))
  169. plot(emaF31, title='Fast EMA 30', style=plot.style_line, linewidth=1, color=color.new(#cc3600, 10))
  170. plot(emaF32, title='Fast EMA 30', style=plot.style_line, linewidth=1, color=color.new(#cc4b00, 10))
  171. plot(emaF33, title='Fast EMA 33', style=plot.style_line, linewidth=1, color=color.new(#cc5f00, 10))
  172.  
  173. //Slow EMA Plots
  174. plot(emaS1, title='Slow EMA 1', style=plot.style_line, linewidth=2, color=color.new(#cc7a00, 10))
  175. plot(emaS2, title='Slow EMA 2', style=plot.style_line, linewidth=1, color=color.new(#cc8f00, 10))
  176. plot(emaS3, title='Slow EMA 3', style=plot.style_line, linewidth=1, color=color.new(#cca000, 10))
  177. plot(emaS4, title='Slow EMA 4', style=plot.style_line, linewidth=1, color=color.new(#ccad00, 10))
  178. plot(emaS5, title='Slow EMA 5', style=plot.style_line, linewidth=1, color=color.new(#ccc500, 10))
  179. plot(emaS6, title='Slow EMA 6', style=plot.style_line, linewidth=1, color=color.new(#c2cc00, 10))
  180. plot(emaS7, title='Slow EMA 7', style=plot.style_line, linewidth=1, color=color.new(#a7cc00, 10))
  181. plot(emaS8, title='Slow EMA 8', style=plot.style_line, linewidth=1, color=color.new(#9ccc00, 10))
  182. plot(emaS9, title='Slow EMA 9', style=plot.style_line, linewidth=1, color=color.new(#88cc00, 10))
  183. plot(emaS10, title='Slow EMA 10', style=plot.style_line, linewidth=1, color=color.new(#70cc00, 10))
  184. plot(emaS11, title='Slow EMA 11', style=plot.style_line, linewidth=1, color=color.new(#55cc00, 10))
  185. plot(emaS12, title='Slow EMA 12', style=plot.style_line, linewidth=1, color=color.new(#41cc00, 10))
  186. plot(emaS13, title='Slow EMA 13', style=plot.style_line, linewidth=1, color=color.new(#22cc00, 10))
  187. plot(emaS14, title='Slow EMA 14', style=plot.style_line, linewidth=1, color=color.new(#00cc00, 10))
  188. plot(emaS15, title='Slow EMA 15', style=plot.style_line, linewidth=1, color=color.new(#00cc11, 10))
  189. plot(emaS16, title='Slow EMA 16', style=plot.style_line, linewidth=1, color=color.new(#00cc30, 10))
  190. plot(emaS17, title='Slow EMA 17', style=plot.style_line, linewidth=1, color=color.new(#00cc47, 10))
  191. plot(emaS18, title='Slow EMA 18', style=plot.style_line, linewidth=1, color=color.new(#00cc58, 10))
  192. plot(emaS19, title='Slow EMA 19', style=plot.style_line, linewidth=1, color=color.new(#00cc69, 10))
  193. plot(emaS20, title='Slow EMA 20', style=plot.style_line, linewidth=1, color=color.new(#00cc81, 10))
  194. plot(emaS21, title='Slow EMA 21', style=plot.style_line, linewidth=1, color=color.new(#00cc9c, 10))
  195. plot(emaS22, title='Slow EMA 22', style=plot.style_line, linewidth=1, color=color.new(#00ccb8, 10))
  196. plot(emaS23, title='Slow EMA 23', style=plot.style_line, linewidth=1, color=color.new(#00ccc9, 10))
  197. plot(emaS24, title='Slow EMA 24', style=plot.style_line, linewidth=1, color=color.new(#00becc, 10))
  198. plot(emaS25, title='Slow EMA 25', style=plot.style_line, linewidth=2, color=color.new(#00a3cc, 10))
  199.  
  200.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement