Download MetaTrader 5
To add comments, please log in or register
Develop trading robots to order. Make profit with Freelance service!
Sajib Siddiqui
6
Sajib Siddiqui 2014.11.10 05:05 


what is the Problem in my code? I have very limited knowledge on mql4. Just wanted to code somehow sup according to my imagination.
Thanks.

int start ()
{
double Temp1;
check4sup(Temp1);
 Print(" Temp1 = ", Temp1);
return (0);

}

 double check4sup(double& Temp1) {
  
   int i;
   double LOW[500];
    
   ArrayResize(LOW,500,100);
   
   
   for (i=11;i<500;i++)
  {
   ArrayResize(LOW,500,100);
  LOW[i]=iLow(NULL,0,i);
   
  int Shift1[500];
  int Shift2[500];
  double LOW1[500];
  double LOW2[500];

  int Array[500];
 
  
  Shift1[i]=iLowest(NULL,0,MODE_LOW,10,i-10);
  LOW1[i] =iLow(NULL,0,Shift1[i]);
  Shift2[i]=iLowest(NULL,0,MODE_LOW,10,i+1);
  LOW2[i] =iLow(NULL,0,Shift2[i]);
  
  
  if (LOW[i]>LOW1[i]||LOW[i]>LOW2[i])
  continue;
  else 
  {
 
  ArrayResize(Array,i,100);
  Temp1=LOW[i];
  Print ("Temp1=",Temp1);
  
  
  }
  }
  return(Temp1);
  }
 
/
To add comments, please log in or register