Attachments forums

List of attachments posted on this forum.


All files on forums: 135347

iCustom

Cladi39, Wed May 10, 2017 12:25 pm

Please mladen im trying to call this indicator with iCustom and dont work. Whats wrong? Thanks in advance.

Code: Select all

double 3CTURBO(int i)
{
  double S1 = iCustom(Symbol(),0,"3c_Turbo",2,i)!=EMPTY_VALUE;
  double S2 = iCustom(Symbol(),0,"3c_Turbo",1,i)!=EMPTY_VALUE; 
  
  if(S1)
  {
  return(1);
  }
  if(S2)
  {
  return(-1);
  }
 
 return(0);
}


bool Arrowup(int i)
{
          bool up=false;
       
          up = 3CTURBO(i)==1;
         
          if(up)
          {
          return true;
          }
          return false;
          
}
bool Arrowdn(int i)
{
          bool dn=false;
          
          dn = 3CTURBO(i)==-1;
 
          if(dn)
          {
          return true;
          }
          return false;
}
All files in topic