Need help in some codes

MQL4 Asesoramiento

Tarea técnica

the code bellow and explaing image in attach



extern double     distance = 80 ;   //Distance between high or low and level
extern string     DateBegin    = "2018.07.09 15:00" ;   //date of my high or low 
extern string     Statut       = "FHL" ; // from high to low - FLH : from low to high


int start()
  {
//----------------------------------------
      int timenow=TimeCurrent(); 
       datetime Begin;
       double   hi,  low , hi1 , low1;
       int      iBarBegin , i , j ,cx, shifthigh , shiftlow;
       datetime TimeHigh , TimeLow ;
       
       Begin = StrToTime(TimeToStr(timenow, TIME_DATE) + " " + DateBegin);
       iBarBegin = iBarShift(NULL, 0, Begin);
          
          if(Statut == "FHL"){
          hi = iHighest(Symbol(), Period(), MODE_HIGH, iBarBegin,1);
          low = 0 ;
              }else{
          low  = iLowest(Symbol(), Period(), MODE_LOW, iBarBegin,1);
          hi = 0 ;
          }
          
     for( i = iBarBegin ; i > 0 ; i-- ){
         if(hi != 0)
         for( j = i ; i > 0 ; i-- ){
           if((hi - Distance*_Point) >=Low[j]){
             low1 = hi - Distance*_Point ;
              //and Draw arrow at low1 value 
              cx = j ;
              shiftlow = iLowest(Symbol(), Period(), MODE_LOW, j-cx+1,cx);
              shifthigh = iHighest(Symbol(), Period(), MODE_HIGH, j-cx+1,cx);
              i = j ; // to start counting from  high or low of last candle like cycle 
           }
        }
     }
  }




Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(90)
Proyectos
118
17%
Arbitraje
44
23% / 39%
Caducado
20
17%
Libre
2
Desarrollador 2
Evaluación
(22)
Proyectos
114
98%
Arbitraje
4
0% / 75%
Caducado
35
31%
Libre

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 3 a 10 día(s)