I would like to have my strategy works on 15min chart.
On this chart (or any other), I want to get the real/current EMA(5) of 1Hour for example.
By real/current, I mean the EMA(5) that will be seen in an 1 hour chart each tick, or in that moment when the 15 min bar has closed.
I tried to do something like this:
Add(PeriodType.Minute, 60);
and then use
EMA(BarsArray[1], 5);
Buy I just get the EMA of the relevant closing 1H Bar, and not at the moment when my 15 min bar closed. (for every 15 min the EMA of 1H should be different...)
Thanks in advance
Arnon

Comment