Indicator - following the formation bar by bar - page 2

 
ok... thank you so much guys. that is a great information.

what I notice is that the EA is indeed modelling the bar[0]. exactly as the article above describes it. however the same is not occurring for the indicator. I create a simple code:
double H1;
int start(){
 H1=iMA(NULL,PERIOD_H1,15,0,MODE_EMA,PRICE_CLOSE,0);
 Print (H1);
}
if you apply this code to a EA and use a strategy tester on M1 chart, we can see easily the modelling of bar[0] for H1. however, if we use the some code in one indicator, and apply this indicator on a chart which is being tested by the strategy tester, the iMA for H1 becomes static for a whole one hour not showing any modelling. is that correct? the modelling is able just for EAs? if not, what I am missing? thanks a lot,,,
Reason: