Multiple EMAs
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Syed.Shahbaaz.Quadri

//@version=5
indicator("Multiple EMAs", overlay=true)

//length1 = input.int(50, "Fast SMA")
source1 = close
//FastSMA=ta.sma(source1, length1)
//plot(FastSMA, color=color.new(color.red,20),title="FastSMA")

length2 = input.int(100, "Slow SMA")
source2 = close
SlowSMA=ta.sma(source2, length2)
plot(SlowSMA, color=color.new(color.green,20),title="SlowSMA")

//length3 = input.int(50, "Fast EMA")
//source3 = close
//FastEMA=ta.ema(source3, length3)
//FastEMA=ta.ema(close, 50)
//plot(FastSMA, color=color.new(color.yellow,20),title="FastEMA")

//length4 = input.int(100, "Slow EMA")
//source4 = close
//SlowEMA=ta.ema(source4, length4)
//SlowEMA=ta.ema(close, 100)
//plot(SlowSMA, color=color.new(color.blue,20),title="SlowEMA")

//FastEMA=ta.ema(close, 50)
//SlowEMA=ta.ema(close, 100)

plot(ta.ema(close,20),title="20 EMA",color = color.new(color.white, 20)) 
plot(ta.ema(close,50),title="50 EMA",color = color.new(color.yellow, 20))
plot(ta.ema(close,100),title="100 EMA",color =color.new(color.blue, 20))
plot(ta.ema(close,200), title="200 EMA",color=color.new(color.red,20)) 

