Exponential Moving Average 20/50 - of D/W/M by Trilochan
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © itsmethri11

//@version=5
indicator("EMA 20/50 - D/W/M by Trilochan", overlay=true)
shortest = ta.ema(close, 20)
short = ta.ema(close, 50)
ema200 = ta.ema(close, 200)

H1shortest = request.security(syminfo.tickerid,"60",ta.ema(close, 20))
H1short = request.security(syminfo.tickerid,"60",ta.ema(close, 50))

dshortest = request.security(syminfo.tickerid,"D",ta.ema(close, 20))
dshort = request.security(syminfo.tickerid,"D",ta.ema(close, 50))

wshortest = request.security(syminfo.tickerid,"W",ta.ema(close, 20))
wshort = request.security(syminfo.tickerid,"W",ta.ema(close, 50))

mshortest = request.security(syminfo.tickerid,"M",ta.ema(close, 20))
mshort = request.security(syminfo.tickerid,"M",ta.ema(close, 50))

plot(shortest, color=color.red, title='EMA 20 Dyn')
plot(short, color=color.blue, title='EMA 50 Dyn')
plot(ema200, color=color.rgb(0, 0, 0), title='EMA 200 Dyn')
plot(H1shortest, color=color.red, title='1H EMA 20')
plot(H1short, color=color.orange, title='1H EMA 50')
plot(dshortest, color=color.orange, title='DEMA 20')
plot(dshort, color=color.purple, title='DEMA 50')
plot(wshortest, color=color.yellow, title='WEMA 20')
plot(wshort, color=color.black, title='WEMA 50')
plot(mshortest, color=color.lime, title='MEMA 20')
plot(mshort, color=color.green, title='MEMA 50')
