Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=5
- indicator(title='The Scale of Sacred Sounds by Andre Brzek Le Roux', shorttitle='SOSS', overlay=true)
- //
- // Author: Andre Brzek Le Roux
- // Revision: 1.0
- // Date: 15-Nov-2018
- //
- src = input(close, title='EMA Source')
- //Fast EMAs
- //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
- lenF1 = input.int(32, minval=1, title='Fast EMA 1')
- lenF2 = input.int(33, minval=1, title='Fast EMA 2')
- lenF3 = input.int(34, minval=1, title='Fast EMA 3')
- lenF4 = input.int(35, minval=1, title='Fast EMA 4')
- lenF5 = input.int(36, minval=1, title='Fast EMA 5')
- lenF6 = input.int(37, minval=1, title='Fast EMA 6')
- lenF7 = input.int(38, minval=1, title='Fast EMA 7')
- lenF8 = input.int(39, minval=1, title='Fast EMA 8')
- lenF9 = input.int(40, minval=1, title='Fast EMA 9')
- lenF10 = input.int(41, minval=1, title='Fast EMA 10')
- lenF11 = input.int(42, minval=1, title='Fast EMA 11')
- lenF12 = input.int(43, minval=1, title='Fast EMA 12')
- lenF13 = input.int(44, minval=1, title='Fast EMA 13')
- lenF14 = input.int(45, minval=1, title='Fast EMA 14')
- lenF15 = input.int(46, minval=1, title='Fast EMA 15')
- lenF16 = input.int(47, minval=1, title='Fast EMA 16')
- lenF17 = input.int(48, minval=1, title='Fast EMA 17')
- lenF18 = input.int(49, minval=1, title='Fast EMA 18')
- lenF19 = input.int(50, minval=1, title='Fast EMA 19')
- lenF20 = input.int(51, minval=1, title='Fast EMA 20')
- lenF21 = input.int(52, minval=1, title='Fast EMA 21')
- lenF22 = input.int(53, minval=1, title='Fast EMA 22')
- lenF23 = input.int(54, minval=1, title='Fast EMA 23')
- lenF24 = input.int(55, minval=1, title='Fast EMA 24')
- lenF25 = input.int(56, minval=1, title='Fast EMA 25')
- lenF26 = input.int(57, minval=1, title='Fast EMA 26')
- lenF27 = input.int(58, minval=1, title='Fast EMA 27')
- lenF28 = input.int(59, minval=1, title='Fast EMA 28')
- lenF29 = input.int(60, minval=1, title='Fast EMA 29')
- lenF30 = input.int(61, minval=1, title='Fast EMA 30')
- lenF31 = input.int(62, minval=1, title='Fast EMA 31')
- lenF32 = input.int(63, minval=1, title='Fast EMA 32')
- lenF33 = input.int(64, minval=1, title='Fast EMA 33')
- //Slow EMAs
- //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
- lenS1 = input.int(256, minval=1, title='Slow EMA 1')
- lenS2 = input.int(264, minval=1, title='Slow EMA 2')
- lenS3 = input.int(272, minval=1, title='Slow EMA 3')
- lenS4 = input.int(280, minval=1, title='Slow EMA 4')
- lenS5 = input.int(288, minval=1, title='Slow EMA 5')
- lenS6 = input.int(296, minval=1, title='Slow EMA 6')
- lenS7 = input.int(304, minval=1, title='Slow EMA 7')
- lenS8 = input.int(312, minval=1, title='Slow EMA 8')
- lenS9 = input.int(320, minval=1, title='Slow EMA 9')
- lenS10 = input.int(328, minval=1, title='Slow EMA 10')
- lenS11 = input.int(336, minval=1, title='Slow EMA 11')
- lenS12 = input.int(344, minval=1, title='Slow EMA 12')
- lenS13 = input.int(352, minval=1, title='Slow EMA 13')
- lenS14 = input.int(360, minval=1, title='Slow EMA 14')
- lenS15 = input.int(368, minval=1, title='Slow EMA 15')
- lenS16 = input.int(376, minval=1, title='Slow EMA 16')
- lenS17 = input.int(384, minval=1, title='Slow EMA 17')
- lenS18 = input.int(392, minval=1, title='Slow EMA 18')
- lenS19 = input.int(407, minval=1, title='Slow EMA 19')
- lenS20 = input.int(408, minval=1, title='Slow EMA 20')
- lenS21 = input.int(416, minval=1, title='Slow EMA 21')
- lenS22 = input.int(424, minval=1, title='Slow EMA 22')
- lenS23 = input.int(432, minval=1, title='Slow EMA 23')
- lenS24 = input.int(440, minval=1, title='Slow EMA 24')
- lenS25 = input.int(448, minval=1, title='Slow EMA 25')
- mult = 1
- //Fast EMA
- emaF1 = ta.ema(src, lenF1 * mult)
- emaF2 = ta.ema(src, lenF2 * mult)
- emaF3 = ta.ema(src, lenF3 * mult)
- emaF4 = ta.ema(src, lenF4 * mult)
- emaF5 = ta.ema(src, lenF5 * mult)
- emaF6 = ta.ema(src, lenF6 * mult)
- emaF7 = ta.ema(src, lenF7 * mult)
- emaF8 = ta.ema(src, lenF8 * mult)
- emaF9 = ta.ema(src, lenF9 * mult)
- emaF10 = ta.ema(src, lenF10 * mult)
- emaF11 = ta.ema(src, lenF11 * mult)
- emaF12 = ta.ema(src, lenF12 * mult)
- emaF13 = ta.ema(src, lenF13 * mult)
- emaF14 = ta.ema(src, lenF14 * mult)
- emaF15 = ta.ema(src, lenF15 * mult)
- emaF16 = ta.ema(src, lenF16 * mult)
- emaF17 = ta.ema(src, lenF17 * mult)
- emaF18 = ta.ema(src, lenF18 * mult)
- emaF19 = ta.ema(src, lenF19 * mult)
- emaF20 = ta.ema(src, lenF20 * mult)
- emaF21 = ta.ema(src, lenF21 * mult)
- emaF22 = ta.ema(src, lenF22 * mult)
- emaF23 = ta.ema(src, lenF23 * mult)
- emaF24 = ta.ema(src, lenF24 * mult)
- emaF25 = ta.ema(src, lenF25 * mult)
- emaF26 = ta.ema(src, lenF26 * mult)
- emaF27 = ta.ema(src, lenF27 * mult)
- emaF28 = ta.ema(src, lenF28 * mult)
- emaF29 = ta.ema(src, lenF29 * mult)
- emaF30 = ta.ema(src, lenF30 * mult)
- emaF31 = ta.ema(src, lenF31 * mult)
- emaF32 = ta.ema(src, lenF32 * mult)
- emaF33 = ta.ema(src, lenF33 * mult)
- //Slow EMA
- emaS1 = ta.ema(src, lenS1 * mult)
- emaS2 = ta.ema(src, lenS2 * mult)
- emaS3 = ta.ema(src, lenS3 * mult)
- emaS4 = ta.ema(src, lenS4 * mult)
- emaS5 = ta.ema(src, lenS5 * mult)
- emaS6 = ta.ema(src, lenS6 * mult)
- emaS7 = ta.ema(src, lenS7 * mult)
- emaS8 = ta.ema(src, lenS8 * mult)
- emaS9 = ta.ema(src, lenS9 * mult)
- emaS10 = ta.ema(src, lenS10 * mult)
- emaS11 = ta.ema(src, lenS11 * mult)
- emaS12 = ta.ema(src, lenS12 * mult)
- emaS13 = ta.ema(src, lenS13 * mult)
- emaS14 = ta.ema(src, lenS14 * mult)
- emaS15 = ta.ema(src, lenS15 * mult)
- emaS16 = ta.ema(src, lenS16 * mult)
- emaS17 = ta.ema(src, lenS17 * mult)
- emaS18 = ta.ema(src, lenS18 * mult)
- emaS19 = ta.ema(src, lenS19 * mult)
- emaS20 = ta.ema(src, lenS20 * mult)
- emaS21 = ta.ema(src, lenS21 * mult)
- emaS22 = ta.ema(src, lenS22 * mult)
- emaS23 = ta.ema(src, lenS23 * mult)
- emaS24 = ta.ema(src, lenS24 * mult)
- emaS25 = ta.ema(src, lenS25 * mult)
- //Fast EMA Plots
- plot(emaF1, title='Fast EMA 1', style=plot.style_line, linewidth=2, color=color.new(#00cc8f, 10))
- plot(emaF2, title='Fast EMA 2', style=plot.style_line, linewidth=1, color=color.new(#00ccad, 10))
- plot(emaF3, title='Fast EMA 3', style=plot.style_line, linewidth=1, color=color.new(#00c5cc, 10))
- plot(emaF4, title='Fast EMA 4', style=plot.style_line, linewidth=1, color=color.new(#00b4cc, 10))
- plot(emaF5, title='Fast EMA 5', style=plot.style_line, linewidth=1, color=color.new(#00a7cc, 10))
- plot(emaF6, title='Fast EMA 6', style=plot.style_line, linewidth=1, color=color.new(#0096cc, 10))
- plot(emaF7, title='Fast EMA 7', style=plot.style_line, linewidth=1, color=color.new(#0085cc, 10))
- plot(emaF8, title='Fast EMA 8', style=plot.style_line, linewidth=1, color=color.new(#0074cc, 10))
- plot(emaF9, title='Fast EMA 9', style=plot.style_line, linewidth=1, color=color.new(#0063cc, 10))
- plot(emaF10, title='Fast EMA 10', style=plot.style_line, linewidth=1, color=color.new(#005ccc, 10))
- plot(emaF11, title='Fast EMA 11', style=plot.style_line, linewidth=1, color=color.new(#004ecc, 10))
- plot(emaF12, title='Fast EMA 12', style=plot.style_line, linewidth=1, color=color.new(#0030cc, 10))
- plot(emaF13, title='Fast EMA 13', style=plot.style_line, linewidth=1, color=color.new(#0007cc, 10))
- plot(emaF14, title='Fast EMA 14', style=plot.style_line, linewidth=1, color=color.new(#3000cc, 10))
- plot(emaF15, title='Fast EMA 15', style=plot.style_line, linewidth=1, color=color.new(#4400cc, 10))
- plot(emaF16, title='Fast EMA 16', style=plot.style_line, linewidth=1, color=color.new(#5200cc, 10))
- plot(emaF17, title='Fast EMA 17', style=plot.style_line, linewidth=1, color=color.new(#7400cc, 10))
- plot(emaF18, title='Fast EMA 18', style=plot.style_line, linewidth=1, color=color.new(#8800cc, 10))
- plot(emaF19, title='Fast EMA 19', style=plot.style_line, linewidth=1, color=color.new(#9600cc, 10))
- plot(emaF20, title='Fast EMA 20', style=plot.style_line, linewidth=1, color=color.new(#a000cc, 10))
- plot(emaF21, title='Fast EMA 21', style=plot.style_line, linewidth=1, color=color.new(#b800cc, 10))
- plot(emaF22, title='Fast EMA 22', style=plot.style_line, linewidth=1, color=color.new(#cc00c2, 10))
- plot(emaF23, title='Fast EMA 23', style=plot.style_line, linewidth=1, color=color.new(#cc00a7, 10))
- plot(emaF24, title='Fast EMA 24', style=plot.style_line, linewidth=1, color=color.new(#cc008b, 10))
- plot(emaF25, title='Fast EMA 25', style=plot.style_line, linewidth=1, color=color.new(#cc004b, 10))
- plot(emaF26, title='Fast EMA 26', style=plot.style_line, linewidth=1, color=color.new(#cc0030, 10))
- plot(emaF27, title='Fast EMA 27', style=plot.style_line, linewidth=1, color=color.new(#cc000a, 10))
- plot(emaF28, title='Fast EMA 28', style=plot.style_line, linewidth=1, color=color.new(#cc0000, 10))
- plot(emaF29, title='Fast EMA 29', style=plot.style_line, linewidth=1, color=color.new(#cc0e00, 10))
- plot(emaF30, title='Fast EMA 30', style=plot.style_line, linewidth=1, color=color.new(#cc1800, 10))
- plot(emaF31, title='Fast EMA 30', style=plot.style_line, linewidth=1, color=color.new(#cc3600, 10))
- plot(emaF32, title='Fast EMA 30', style=plot.style_line, linewidth=1, color=color.new(#cc4b00, 10))
- plot(emaF33, title='Fast EMA 33', style=plot.style_line, linewidth=1, color=color.new(#cc5f00, 10))
- //Slow EMA Plots
- plot(emaS1, title='Slow EMA 1', style=plot.style_line, linewidth=2, color=color.new(#cc7a00, 10))
- plot(emaS2, title='Slow EMA 2', style=plot.style_line, linewidth=1, color=color.new(#cc8f00, 10))
- plot(emaS3, title='Slow EMA 3', style=plot.style_line, linewidth=1, color=color.new(#cca000, 10))
- plot(emaS4, title='Slow EMA 4', style=plot.style_line, linewidth=1, color=color.new(#ccad00, 10))
- plot(emaS5, title='Slow EMA 5', style=plot.style_line, linewidth=1, color=color.new(#ccc500, 10))
- plot(emaS6, title='Slow EMA 6', style=plot.style_line, linewidth=1, color=color.new(#c2cc00, 10))
- plot(emaS7, title='Slow EMA 7', style=plot.style_line, linewidth=1, color=color.new(#a7cc00, 10))
- plot(emaS8, title='Slow EMA 8', style=plot.style_line, linewidth=1, color=color.new(#9ccc00, 10))
- plot(emaS9, title='Slow EMA 9', style=plot.style_line, linewidth=1, color=color.new(#88cc00, 10))
- plot(emaS10, title='Slow EMA 10', style=plot.style_line, linewidth=1, color=color.new(#70cc00, 10))
- plot(emaS11, title='Slow EMA 11', style=plot.style_line, linewidth=1, color=color.new(#55cc00, 10))
- plot(emaS12, title='Slow EMA 12', style=plot.style_line, linewidth=1, color=color.new(#41cc00, 10))
- plot(emaS13, title='Slow EMA 13', style=plot.style_line, linewidth=1, color=color.new(#22cc00, 10))
- plot(emaS14, title='Slow EMA 14', style=plot.style_line, linewidth=1, color=color.new(#00cc00, 10))
- plot(emaS15, title='Slow EMA 15', style=plot.style_line, linewidth=1, color=color.new(#00cc11, 10))
- plot(emaS16, title='Slow EMA 16', style=plot.style_line, linewidth=1, color=color.new(#00cc30, 10))
- plot(emaS17, title='Slow EMA 17', style=plot.style_line, linewidth=1, color=color.new(#00cc47, 10))
- plot(emaS18, title='Slow EMA 18', style=plot.style_line, linewidth=1, color=color.new(#00cc58, 10))
- plot(emaS19, title='Slow EMA 19', style=plot.style_line, linewidth=1, color=color.new(#00cc69, 10))
- plot(emaS20, title='Slow EMA 20', style=plot.style_line, linewidth=1, color=color.new(#00cc81, 10))
- plot(emaS21, title='Slow EMA 21', style=plot.style_line, linewidth=1, color=color.new(#00cc9c, 10))
- plot(emaS22, title='Slow EMA 22', style=plot.style_line, linewidth=1, color=color.new(#00ccb8, 10))
- plot(emaS23, title='Slow EMA 23', style=plot.style_line, linewidth=1, color=color.new(#00ccc9, 10))
- plot(emaS24, title='Slow EMA 24', style=plot.style_line, linewidth=1, color=color.new(#00becc, 10))
- plot(emaS25, title='Slow EMA 25', style=plot.style_line, linewidth=2, color=color.new(#00a3cc, 10))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement