Maxim Kuznetsov:
one questions : how to obtain 12 freelance finished projects and not knowns about arrays ?
Well I didn’t have any problems with arrays then, but this case is specific
one questions : how to obtain 12 freelance finished projects and not knowns about arrays ?
You know where the error is
" Trendline EA 1.4 EURUSD,M15: array out of range in 'Trendline EA 1.4.mq4' (108,50)."
so look at line 108 and maybe highlight it if so that others also know where it is, if you want them to help you.
for(int l=0;l<linB;l++) { for( int i=0;i<linS;i++) { if(hlineBuy[l]+offset*point<Close[0] && hlineBuy[l]+offset*point>Open[0] && hlineBuy[l]>0) { buyHLA=true; break; } else if( hlineSell[i]-offset*point>Close[0] && hlineSell[i]-offset*point<Open[0] && hlineSell[i]>0) // This is line 108 { sellHLB=true; break; } else buyHLA=false;sellHLB=false; } }
Actually, By knowing that I fixed it, Thank you very much
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I have some issues regarding 2 array for storing horizontal lines. This is the code, it shows Trendline EA 1.4 EURUSD,M15: array out of range in 'Trendline EA 1.4.mq4' (108,50).