OPEN-SOURCE SCRIPT

EMA

20-50-200 //EMA1
study(title="Moving Average Exponential", shorttitle="EMA", overlay=true, resolution="")
len = input(50, minval=1, title="Length")
src = input(close, title="Source")
offset = input(title="Offset", type=input.integer, defval=0, minval=-500, maxval=500)
out = ema(src, len)
plot(out, title="EMA", color=color.teal, offset=offset)


//EMA2
len2 = input(100, minval=1, title="Length2")
src2 = input(close, title="Source2")
offset2 = input(title="Offset2", type=input.integer, defval=0, minval=-500, maxval=500)
out2 = ema(src2, len2)
plot(out2, title="EMA2", color=color.orange, offset=offset2)


//EMA3
len3 = input(150, minval=1, title="Length3")
src3 = input(close, title="Source3")
offset3 = input(title="Offset3", type=input.integer, defval=0, minval=-500, maxval=500)
out3 = ema(src3, len3)
plot(out3, title="EMA3", color=color.blue, offset=offset3)
Chart patternsFundamental AnalysisMoving Averages

开源脚本

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

想在图表上使用此脚本?

免责声明