OPEN-SOURCE SCRIPT

SMA 5/10/20/50/100/150/200/250

102
//version=6

indicator (title="SMA8", shorttitle="SMA8", overlay=true)
len1 = input.int(5, minval=1, title="SMA 1")
src1 = input(close, title="Source One")
out1 = ta.sma(src1, len1)
plot(out1, title="SMA 1", color=color.rgb(233, 11, 11), linewidth=1)
len2 = input.int(10, minval=1, title="SMA 2")
src2 = input(close, title="Source Two")
out2 = ta.sma(src2, len2)
plot(out2, title="SMA 2", color=color.orange, linewidth=1)
len3 = input.int(20, minval=1, title="SMA 3")
src3 = input(close, title="Source Three")
out3 = ta.sma(src3, len3)
plot(out3, title="SMA 3", color=color.rgb(250, 226, 12), linewidth=1)
len4 = input.int(50, minval=1, title="SMA 4")
src4 = input(close, title="Source Four")
out4 = ta.sma(src4, len4)
plot(out4, title="SMA 4", color=color.rgb(51, 255, 0), linewidth=1)
len5 = input.int(100, minval=1, title="SMA 5")
src5 = input(close, title="Source Five")
out5 = ta.sma(src5, len5)
plot(out5, title="SMA 5", color=color.rgb(0, 249, 249), linewidth=1)
len6 = input.int(150, minval=1, title="SMA 6")
src6 = input(close, title="Source Six")
out6 = ta.sma(src6, len6)
plot(out6, title="SMA 6", color=#014ff9, linewidth=1)
len7 = input.int(200, minval=1, title="SMA 7")
src7 = input(close, title="Source Seven")
out7 = ta.sma(src7, len7)
plot(out7, title="SMA 7",color=#6c01f9, linewidth=1)
len8 = input.int(250, minval=1, title="SMA 8")
src8 = input(close, title="Source Eight")
out8 = ta.sma(src8, len8)
plot(out8, title="SMA 8",color=color.white, linewidth=1)

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.