You are on page 1of 1

//@version=3

study(title="Moving Average Exponential", shorttitle="EMA", overlay=true)


len = input(3, minval=1, title="Length")
src = input(close, title="Source")
out = ema(src, len)
plot(out, title="EMA", color=red)

len1 = input(6, minval=1, title="Length")


src1 = input(close, title="Source")
out1 = ema(src1, len1)
plot(out1, title="EMA", color=green)

len2 = input(50, minval=1, title="Length")


src2 = input(close, title="Source")
out2 = ema(src2, len2)
plot(out2, title="EMA", color=black)

You might also like