Hello everyone! I will go directly to the point:
This is the code:
"
double AUX[22];
double EMASMAANGLE=0;
int j=0;
for(j=0; j<21; j++)
AUX[j] = iCustom(NULL, 0, "SMAAngle", 0, j);
EMASMAANGLE=iMAOnArray(AUX,21,21,0,MODE_EMA,j);
Alert(EMASMAANGLE);
"
Shouldnt that give me an alert with the EMA(21) of the last 21 EMAAngle indicator values?
This returns 0 instead!!
Thankyou!
This is the code:
"
double AUX[22];
double EMASMAANGLE=0;
int j=0;
for(j=0; j<21; j++)
AUX[j] = iCustom(NULL, 0, "SMAAngle", 0, j);
EMASMAANGLE=iMAOnArray(AUX,21,21,0,MODE_EMA,j);
Alert(EMASMAANGLE);
"
Shouldnt that give me an alert with the EMA(21) of the last 21 EMAAngle indicator values?
This returns 0 instead!!
Thankyou!