ATK EMA 5/50/75/200
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TKMOR

//@version=5
indicator("ATK EMA 5/50/75/200", overlay=true)

openshort=input(true, title="Show EMA 5")
openshorter=input(true, title="Show EMA 50")
openlong=input(true, title="Show EMA 75")
openlonger=input(true, title="Show EMA 200")
opensrc=input(true, title="Show Close Line")
src = input(close, title="Source")

shortline = ta.ema(src,input.int(5, minval=1))
shorterline = ta.ema(src,input.int(50, minval=1))
longline = ta.ema(src,input.int(75, minval=1))
longerline = ta.ema(src,input.int(200, minval=1))


plot(openshort?shortline:na, color = color.new(color.red,0),linewidth=2)
plot(openshorter?shorterline:na, color = color.new(color.orange,0),linewidth=2)
plot(openlong?longline:na, color = color.new(color.aqua,0),linewidth=2)
plot(openlonger?longerline:na, color = color.new(color.green,0),linewidth=2)

plot(opensrc?src:na)
