Array out of Range error?

Oct 13, 2017 at 17:17
Vistas 1,228
2 Replies
Miembro desde Oct 23, 2012   posts 349
Oct 13, 2017 at 17:17
Why am i getting this error on this code?


array out of range in 'EA.mq4' (194,14)




bool IsBarPattern()
   {
      bool res=false;
      if(
          
         Open[3]<Close[3] &&
         Open[2]>Close[2] &&
         Open[1]<Close[1]
         )res=true;
      if(
         
         Open[3]>Close[3] &&
         Open[2]<Close[2] &&
         Open[1]>Close[1]
         )res=true;
      return(res);
   }
if you follow the flock like sheep you always end up stepping in shit!
Miembro desde Aug 20, 2009   posts 266
Oct 15, 2017 at 11:49
No bars in your chart
Wealth Creation Through Technology
Miembro desde Aug 20, 2009   posts 266
Oct 15, 2017 at 13:42
No bars in the chart.
Wealth Creation Through Technology
Conectarse / Inscribirse to comment
You must be connected to Myfxbook in order to leave a comment
*El uso comercial y el spam no serán tolerados y pueden resultar en el cierre de la cuenta.
Consejo: Al publicar una imagen o una URL de YouTube, ésta se integrará automáticamente en su mensaje!
Consejo: Escriba el signo @ para completar automáticamente un nombre de usuario que participa en esta discusión.