iCustom coding help

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


2
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
These users thanked the author XeroforeX for the post:
euro_rapp
Happy Happy Joy Joy

3
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 


Who is online

Users browsing this forum: No registered users and 16 guests