6x EMA - 50-500

50, 100, 200, 300, 400, 500 EMA for your convenience.
Skrip sumber terbuka

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Ingin menggunakan skrip ini pada carta?
study(title="50-500 EMA", overlay=true)
src = input(close, title="Source")
len0 = input(50, minval=1, title="Length")
out0 = ema(src, len0)
len1 = input(100, minval=1, title="Length")
out1 = ema(src, len1)
len2 = input(200, minval=1, title="Length")
out2 = ema(src, len2)
len3 = input(300, minval=1, title="Length")
out3 = ema(src, len3)
len4 = input(400, minval=1, title="Length")
out4 = ema(src, len4)
len5 = input(500, minval=1, title="Length")
out5 = ema(src, len5)

plot(out0, linewidth=2, color=white, transp=0)
plot(out1, linewidth=2, color=white, transp=0)
plot(out2, linewidth=3, color=yellow, transp=0)
plot(out3, linewidth=4, color=orange, transp=0)
plot(out4, linewidth=4, color=red, transp=0)
plot(out5, linewidth=4, color=maroon, transp=0)