Difference between this 2 code lines? New comment [Deleted] 2009.11.15 18:48 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); help fineturn EA Market Prediction with EMA CROSS 1/2 Can anyone help with this please? Ray 2009.11.15 19:18 #1 Second one calculates the EMA at bar "i", first one calculates the EMA from the next older bar. [Deleted] 2009.11.15 19:24 #2 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! New comment
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);