OPEN-SOURCE SCRIPT

EMA VIP

67
//version=6
indicator("EMA VIP", shorttitle=".", format=format.price, precision=0, overlay=true, max_bars_back=481)

len1 = 5
src1 = close
out1 = ta.ema(src1, len1)

len2 = 10
src2 = close
out2 = ta.ema(src2, len2)

len3 = 21
src3 = close
out3 = ta.ema(src3, len3)

len4 = 50
src4 = close
out4 = ta.ema(src4, len4)

len5 = 100
src5 = close
out5 = ta.ema(src5, len5)

len6 = 200
src6 = close
out6 = ta.ema(src6, len6)

plot(out1, title="EMA5", color=color.green, linewidth=2)
plot(out2, title="EMA10", color=color.blue, linewidth=2)
plot(out3, title="EMA21", color=color.purple, linewidth=2)
plot(out4, title="EMA 50", color=color.orange, linewidth=2)
plot(out5, title="EMA 100", color=color.black, linewidth=2)
plot(out6, title="EMA 200", color=color.red, linewidth=2)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.