G_EMA's
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Amit Lulla

//@version=5
indicator("EMA's", overlay=true)
Length1 = input.int(title="EMA1", defval=5, options=[5,13,26,50,100,200], inline="EMA1")
bool1 = input.bool(true, "EMA1", inline="EMA1")
Length2 = input.int(title="EMA2", defval=13, options=[5,13,26,50,100,200], inline="EMA2")
bool2 = input.bool(true, "EMA2", inline="EMA2")
Length3 = input.int(title="EMA3", defval=26, options=[5,13,26,50,100,200], inline="EMA3")
bool3 = input.bool(true, "EMA3", inline="EMA3")
Length4 = input.int(title="EMA4", defval=50, options=[5,13,26,50,100,200], inline="EMA4")
bool4 = input.bool(true, "EMA4", inline="EMA4")
Length5 = input.int(title="EMA5", defval=100, options=[5,13,26,50,100,200], inline="EMA5")
bool5 = input.bool(true, "EMA5", inline="EMA5")
Length6 = input.int(title="EMA6", defval=200, options=[5,13,26,50,100,200], inline="EMA6")
bool6 = input.bool(true, "EMA6", inline="EMA6")
xPrice = close
xEMA1 = ta.ema(xPrice, Length1)
xEMA2 = ta.ema(xPrice, Length2)
xEMA3 = ta.ema(xPrice, Length3)
xEMA4 = ta.ema(xPrice, Length4)
xEMA5 = ta.ema(xPrice, Length5)
xEMA6 = ta.ema(xPrice, Length6)
plot(bool1? xEMA1: na, color=color.red, title="EMA 5")
plot(bool2? xEMA2: na, color=color.green, title="EMA 13")
plot(bool3? xEMA3: na, color=color.yellow, title="EMA 26")
plot(bool4? xEMA4: na, color=color.purple, linewidth=2, title="EMA 50")
plot(bool5? xEMA5: na, color=color.orange, linewidth=2, title="EMA 100")
plot(bool6? xEMA6: na, color=color.blue, linewidth=3, title="EMA 200")
