Is this possible?

I want to plot the 21 ema for 5 minute, 1 hour, 4 hour and daily on one chart. Is this possible. If it is does anyone know how to code it. Thanks.

Kevin

5 min will go into 1 hour what 12 times?

so 12x21 is 252 so adding a 252 period to a 5 min will show a smooth 21 peroid for 60 mins

if you try to time stretch it with code it will be just a tad buggish on the drawing

just a thought

search multitimeframe in this forum there is a multi timeframe MA

maybe this will save all the calcs

4xema

Kaper:
I want to plot the 21 ema for 5 minute, 1 hour, 4 hour and daily on one chart. Is this possible. If it is does anyone know how to code it. Thanks. Kevin

This should do it for you

cja

ema_x_4timeframes.mq4

Files:

Thanks cja, it works great.

Kevin