iCustom
Posted: Tue Jul 04, 2017 9:42 am
Dear mladen, im useing indicators with iCustom function but i need to use it when candle is bullish or bearish respectibely, How to add that condition to the indicator.
RSX green with bullish
RSX red with bearish
I know is basic question for you but im learning. Thanks soo much.
RSX green with bullish
RSX red with bearish
I know is basic question for you but im learning. Thanks soo much.
Code: Select all
double RSX(int i)
{
double up = iCustom(Symbol(),0,"3c_JRSX_H",8,5000,0,i)!=0;
double dn = iCustom(Symbol(),0,"3c_JRSX_H",8,5000,1,i)!=0;
if(up)
{
return(1);
}
if(dn)
{
return(-1);
}
return(0);
}
bool Arrowup(int i)
{
bool up=false;
up = RSX(i)==1;
if(up)
{
return true;
}
return false;
}
bool Arrowdn(int i)
{
bool dn=false;
dn = RSX(i)==-1;
if(dn)
{
return true;
}
return false;
}