Code: Select all
double Arrow(int i)
{
double up = iCustom(Symbol(),0,"1 arrows & curves",0,i+1)!=EMPTY_VALUE;
double dn = iCustom(Symbol(),0,"1 arrows & curves",1,i+1)!=EMPTY_VALUE;
if(up)
{
return(1);
}
if(dn)
{
return(-1);
}
return(0);
}