Attachments forums

List of attachments posted on this forum.


All files on forums: 161077

iCustom Indicator level

Cladi39, Wed Feb 22, 2017 3:25 am

Hello mladen, i need to add this indicator with others by iCustom function, but i dont know how to code when red bar and green bar is at 16 level. Im little new codeing need your help please.

I do something like this an dont work:

Code: Select all

double up = iCustom(NULL,0,"P-fractal_32_his_se_Alert",1,0);
 double dn = iCustom(NULL,0,"P-fractal_32_his_se_Alert",0,0); 
 
 if(up=16)
 {
 return(1);
 }
 if(dn=16)
 {
 return(-1);
 }
 
 return(0);
}
All files in topic