Array out of Range error?

Oct 13, 2017 at 17:17
1,247 การดู
2 Replies
เป็นสมาชิกตั้งแต่ Oct 23, 2012   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!
เป็นสมาชิกตั้งแต่ 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
You must be connected to Myfxbook in order to leave a comment
*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ