What is the value of iMA with shift of 0?

 
Hello together,

a question for understanding. I'm using the

iMA(NULL,0,6,0,MODE_SMA,PRICE_CLOSE,0)

on a 5 minutes chart. During the bar is in process, how is the value calculated because the close price is not read yet? Will it use the actual price? And what is the behaviour with PRICE_WEIGHTED.

=> What ist the close price on a bar that is not closed yet?

Thanks very much in advance,

substanz
 
Close price of the current bar changed with every incoming tick.
Reason: