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精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明