Is this possible?

To add comments, please log in or register
Kaper
72
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

lowphat
466
lowphat  

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

Perky
971
Perky  

just a thought

search multitimeframe in this forum there is a multi timeframe MA

maybe this will save all the calcs

ccjjaa
2038
ccjjaa  

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:
Kaper
72
Kaper  

Thanks cja, it works great.

Kevin

To add comments, please log in or register