iCustom coding help
Posted: Fri Mar 24, 2017 5:27 pm
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);
}