iCustom Indicator level

1
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);
}


Re: iCustom Indicator level

2
Cladi39 wrote: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.
Hi Cladi39
Man you are welcome here,thanks for joining us.
can you illustrate in picture what exactly you want or trying to form.
regards
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.

Re: iCustom Indicator level

3
Cladi39 wrote: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);
}
Cladi39

There are two things that you have to pay attention too :
fractal will never happen on a current bar (the last "0") in your iCustom() callthe value will not be some strict value
In any case that indicator itself must be rewritten to be usable, otherwise it will repaint - and I don't mean repaint like fractal but like classical repainters - there are coding errors in it


Who is online

Users browsing this forum: No registered users and 5 guests