Download MetaTrader 5

Problem in iATR

To add comments, please log in or register
Mahfoud Allali
325
Mahfoud Allali  

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)
Biantoro Kunarto
15916
Biantoro Kunarto  

You can change the function to this :

double range()
{
double result=iATR(NULL,1440,14,0);
return(result);
}
Marco vd Heijden
Moderator
4825
Marco vd Heijden  

or simply,

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

You can change the function to this :

thank you my friend
Mahfoud Allali
325
Mahfoud Allali  
Marco vd Heijden:

or simply,

thank you :D 
Biantoro Kunarto
15916
Biantoro Kunarto  
You're welcome
To add comments, please log in or register