Difference between this 2 code lines?

 

hi all,


can anyone explain, what is the difference, or what does on line do, what the other do not? sorry i'm not a coder, but very interested to understand.


thanks in advance


extern int LongEma=50;

double LEMA1=iMA(Symbol(),0,LongEma,0,MODE_EMA,PRICE_CLOSE,i+1);
double LEMA2=iMA(Symbol(),0,LongEma,0,MODE_EMA,PRICE_CLOSE,i);

 
Second one calculates the EMA at bar "i", first one calculates the EMA from the next older bar.
 
phy:
Second one calculates the EMA at bar "i", first one calculates the EMA from the next older bar.

thx phy, you help me a lot!