I have a multi time frame indicator called MultiTest. For instance, I added 3 minute bars data to MultiTest using Add(PeriodType.Minute, 3). I applied the MultiTest indicator to a 1 minute chart. I have the indicator set to CalculateOnBarClose = false so as to update on every tick. I then calculate EMA's for the two different time frames:
ema1Minute = EMA(Closes[0], 10)[0];
ema3Minute = EMA(Closes[1], 10)[0];
I can plot these and they update real time (tick by tick) using something like this:
The1MinuteEMA.Set(ema1Minute);
The3MinuteEMA.Set(ema3Minute);
However, if I take the difference of the 2 EMA's and try and plot then I can't get tick by tick updating of the difference. It only updates at the end of the 1 minute bar. For instance, if I do the following then I don't get tick by tick updating:
Diff.Set(ema1Minute - ema3Minute)
This only updates at the end of a the 1 minute bar and not tick by tick.
I don't understand why the Diff of the two different time frame EMA's won't plot tick by tick while either of the individual EMA's will plot tick by tick. Thank you.

Comment