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.
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
This should do it for you
Thanks cja, it works great.