Page 1 of 1

iCustom coding help

Posted: Fri Mar 24, 2017 5:27 pm
by Cladi39
Hello mladen and great people, i want to use an indicator by icustom function, the indicator show trend by colors of the candles, i think buffer 2 is up blue color and buffer 3 is down red color, but dont work, dont know if based in MA, RSI, Stoch,can you help me pls.

Code: Select all

double Hercules(int i)
{
 double up = iCustom(Symbol(),0,"Hercules",2,i);
 double dn = iCustom(Symbol(),0,"Hercules",3,i); 
 
 if(up!=EMPTY_VALUE
 {
 return(1);
 }
 if(dn!=EMPTY_VALUE
 {
 return(-1);
 }
 
 return(0);
}

Posted: Sun Mar 26, 2017 10:11 pm
by XeroforeX
Hi Cladi39,

The buffers you are looking for are 5 for red candles (see pic) and 6 and 7 come into play the candle before and after a colour change, attached is Mladens excellent Buffer explorer indi an invaluable tool for dummies like me who can't read code or in your case where you have an exe file.

enjoy

Posted: Mon Mar 27, 2017 4:06 pm
by Cladi39
XeroforeX wrote:Hi Cladi39,

The buffers you are looking for are 5 for red candles (see pic) and 6 and 7 come into play the candle before and after a colour change, attached is Mladens excellent Buffer explorer indi an invaluable tool for dummies like me who can't read code or in your case where you have an exe file.

enjoy
Thanks soo much my friend, you make my day