Problem in iATR

 

i use this cmd 

 

 

double checkrange;
checkrange=range();

Alert(checkrange);


//--------------------------

double range()
{

double range=iATR(NULL,1440,14,0);
return(EMPTY_VALUE);
}
real value of ATR is 0.0097 
EA is alert (2147483647.0)
 

You can change the function to this :

double range()
{
double result=iATR(NULL,1440,14,0);
return(result);
}
 

or simply,

Alert(iATR(NULL,1440,14,0));
 
biantoro kunarto:

You can change the function to this :

thank you my friend
 
Marco vd Heijden:

or simply,

thank you :D 
 
You're welcome