Thankyou so
I think the smartest solution now is to apply the EMA21 formula into the array I got with the data.
I have been assessing but cant loe the EMA formula utilized on metatrader, I used the one supplied in the link below:
http://stockcharts.com/school/doku.p...ntial_moving_a
After using that formulation, the code I got is that one:
Inserted Code double AUX1=0; double EMASMAANGLE=0; int j=0 ; for(j=0; jlt;21; j ) AUX1=EMASMAANGLE; EMASMAANGLE=iCustom(NULL, 0, SMAAngle, 0, j 21) AUX1; AUX1=EMASMAANGLE; EMASMAANGLE=AUX1/21; j=0; for(j=0; jlt;21; j ) AUX1=EMASMAANGLE; EMASMAANGLE = AUX1 ((iCustom(NULL, 0, SMAAngle, 0, 20 - j)-AUX1))/11; // EMA(current) = ((Price(current) - EMA(prev)) x Multiplier) EMA(prev) Alert(DoubleToStr(EMASMAANGLE,8));
It doesnt give me the exact amount calculated supplied by the chart, but I guess its as close as I will get ^_^
Thx again