i want to calculate the ema based on the close price of 60 min and show in 5 min timeframe. (the same thing that Dr. Al brooks uses)
i write a code but it copy the 60 min ema with 20 period on the 5 min time frame.
the 60 min have 12 bar in the 5 min. the 20 period EMA on 5 min time frame calculate 240 bar. i want to calculate every 12 bar by the close price of 1 bar in 60 min. I hope I could explain correctly what i want.
Thanks
New contributor