Rating: Empty Star Empty Star Empty Star Empty Star Empty Star
Array out of Range error?
sirius1fx

Member Since Oct 23, 2012  342 posts sirius1fx (sirius1fx) 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!
compuforexpamm

Member Since Aug 20, 2009  239 posts kennyhubbard (compuforexpamm) Oct 15 2017 at 11:49
No bars in your chart

Wealth Creation Through Technology
compuforexpamm

Member Since Aug 20, 2009  239 posts kennyhubbard (compuforexpamm) Oct 15 2017 at 13:42
No bars in the chart.

Wealth Creation Through Technology
Please login to comment.
Producer Price Index (YoY) (1h 36min)
Deep Dive: More than half of S&P 500 sto...(22 min ago)
EURUSD 1.22575 GBPUSD 1.39107
USDJPY 110.879 USDCAD 1.2416
FxPro

Tools

Community

Reviews

Brokers

Platform

Support


Twitter |  Facebook |  Site Map  |  Terms  |   Privacy Policy
©2014 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.