Array out of Range error?

Oct 13, 2017 at 17:17
1,401流覽
2 Replies
會員從Oct 23, 2012開始   355帖子
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!
會員從Aug 20, 2009開始   266帖子
Oct 15, 2017 at 11:49
No bars in your chart
Wealth Creation Through Technology
會員從Aug 20, 2009開始   266帖子
Oct 15, 2017 at 13:42
No bars in the chart.
Wealth Creation Through Technology
登錄 / 註冊 to comment
You must be connected to Myfxbook in order to leave a comment
*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。