CopyHigh and CopyLow for Breakouts. CopyLow DOES NOT seem to work. - page 2

 
Aleksandr Morozov:

'if without "else" ??'

'if (ask> . . . ) buy;'

'if (bid< . . .) sell;'

Done. I was missing a double to allocate the iHigh and iLow first, before sending it as a signal.

Thank you all, I would not had been able to find it if you had not made me think a little bit more 

      double CoH= CopyHigh(Symbol(),TimeFrame2,1,Shift2,Maxima_Candle);
      int position_max=ArrayMaximum(Maxima_Candle);
      double CL=Maxima_Candle[position_max];


      double CoL= CopyLow(Symbol(),TimeFrame3,1,Shift3,Minima_Candle);
      int position_min=ArrayMinimum(Minima_Candle);
      double CL1=Minima_Candle[position_min];
Reason: