이동평균선/EMA 10/20/50/200

//@version=5
indicator(title="EMA 10/20/50/200 [Tujac]", overlay=true, timeframe="", timeframe_gaps=true)

len_a = input.int(10, minval=1, title="Length", group="A" )
src_a = input(close, title="Source", group="A" )
off_a = input.int(title="Offset", defval=0, minval=-500, maxval=500, group="A" )
out_a = ta.ema(src_a, len_a)
plot(out_a, title="MA A", color=color.new(#ffffff, 0), linewidth=1, offset=off_a)  

len_b = input.int(20, minval=1, title="Length", group="B" )
src_b = input(close, title="Source", group="B" )
off_b = input.int(title="Offset", defval=0, minval=-500, maxval=500, group="B" )
out_b = ta.ema(src_b, len_b)
plot(out_b, title="MA B", color=color.new(#ffeb3b, 0), linewidth=2, offset=off_b, style=plot.style_line) 

len_c = input.int(50, minval=1, title="Length", group="C" )
src_c = input(close, title="Source", group="C" )
off_c = input.int(title="Offset", defval=0, minval=-500, maxval=500, group="C" )
out_c = ta.ema(src_c, len_c)
plot(out_c, title="MA C", color=color.new(#ff00ff, 0), linewidth=2, offset=off_c, style=plot.style_line) 

len_d = input.int(200, minval=1, title="Length", group="D" )
src_d = input(close, title="Source", group="D" )
off_d = input.int(title="Offset", defval=0, minval=-500, maxval=500, group="D" )
out_d = ta.ema(src_d, len_d)
plot(out_d, title="MA D", color=color.new(#66bb6a, 0 ), linewidth=2, offset=off_d, style=plot.style_line)