Lets say I need a SMA(3) of a 5 min, but I want it intrabar. Is it possible?
An example:
I'm on a 10:15 bar, so the SMA(3)[0] = (Closes[0][2] + Closes[0][1] + Closes[0][0])/3
At 10:16 my strategy is processing 1 min TF (BarsInProgress == 1).
Now I need the SMA(3)[0] = (Closes[0][1] + Closes[0][0] + Closes[1][0]) / 3.
This is the value in live trading at 10:16. Correct?
The same for 10:17, 10:18, 10:19. At 10:20 it should be as at 10:15.
Is it possible?
The SMA(3) was just an example that is not an indicator I really need.
Baruch

Comment