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

//@version=5
indicator('EMA curves', shorttitle='EMA', overlay=true)
src = input(close, title='Source')
len1 = input.int(9, minval=1, title='Length')
out1 = ta.ema(src, len1)
len2 = input.int(21, minval=1, title='Length')
out2 = ta.ema(src, len2)
len3 = input.int(55, minval=1, title='Length')
out3 = ta.ema(src, len3)
len4 = input.int(100, minval=1, title='Length')
out4 = ta.ema(src, len4)
len5 = input.int(200, minval=1, title='Length')
out5 = ta.ema(src, len5)

plot(out1, title='EMA', color=color.rgb(255, 153, 0, 20), linewidth=2)
plot(out2, title='EMA', color=color.rgb(0, 128, 0, 40), linewidth=2)
plot(out3, title='EMA', color=color.rgb(0, 0, 255, 40), linewidth=2)
plot(out4, title='EMA', color=color.rgb(0, 0, 0, 40), linewidth=2)
plot(out5, title='EMA', color=color.rgb(255, 0, 0, 40), linewidth=2)