Hello everybody! I will go directly to the stage:
This is the code:
dual AUX[22];
dual EMASMAANGLE=0;
int j=0;
for(j=0; jlt;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 together with the EMA(21) of their last 21 EMAAngle indior values?
This returns 0 instead!!
Thankyou!