Multiple EMA
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © nirav8605

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

Lengthema1 = input.int(title = "EMA1", defval = 9, minval = 1, maxval = 200)
Lengthema2 = input.int(title = "EMA2", defval = 44, minval = 1, maxval = 200)
Lengthema3 = input.int(title = "EMA3", defval = 55, minval = 1, maxval = 200)
Lengthema4 = input.int(title = "EMA4", defval = 100, minval = 1, maxval = 200)
Lengthema5 = input.int(title = "EMA5", defval = 200, minval = 1, maxval = 200)


/// EMA INDICATOR
EMA1 = ta.ema(close,Lengthema1)
EMA2 = ta.ema(close,Lengthema2)
EMA3 = ta.ema(close,Lengthema3)
EMA4 = ta.ema(close,Lengthema4)
EMA5 = ta.ema(close,Lengthema5)

/// PLOT

plot(EMA1, color = color.new(color.green,0))
plot(EMA2, color = color.new(color.red,0))
plot(EMA3, color = color.new(color.purple,0))
plot(EMA4, color = color.new(color.yellow,0))
plot(EMA5, color = color.new(color.blue,0))



plot(close)
