OPEN-SOURCE SCRIPT

Multi + EMA

//version=4
//Created By AlfTrader
//Multi EMA
study(title="Multi EMA", shorttitle="Multi EMA", overlay=true)
src = close
len1 = input(13, minval=1, title="EMA 1")
len2 = input(20, minval=1, title="EMA 2")
len3 = input(50, minval=1, title="EMA 3")
len4 = input(100, minval=1, title="EMA 4")
len5 = input(200, minval=1, title="EMA 5")

ema1 = ema(src, len1)
ema2 = ema(src, len2)
ema3 = ema(src, len3)
ema4 = ema(src, len4)
ema5 = ema(src, len5)

//EMA Color
col1 = color.yellow
col2 = color.blue
col3 = color.red
col4 = color.gray
col5 = color.purple

//EMA Plots
plot(ema1, title="EMA 1", style=plot.style_line, linewidth=1, color=col1)
plot(ema2, title="EMA 2", style=plot.style_line, linewidth=1, color=col2)
plot(ema3, title="EMA 3", style=plot.style_line, linewidth=1, color=col3)
plot(ema4, title="EMA 4", style=plot.style_line, linewidth=1, color=col4)
plot(ema5, title="EMA 5", style=plot.style_line, linewidth=5, color=col5)
Exponential Moving Average (EMA)

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明