-
for(int i=Bars-1; i>0; i--) { ⋮ { for(int j=i; j<=Number_Of_Candle_Check+i; j++) { ⋮ if( (Close[i]>Open[i] && Close[j]>Open[j]
When i equals Bars-1, you try to read [Bars-1 … Bars-1+Number_Of_Candle_check-1]. Bars and higher does not exist.
-
Do your lookbacks correctly #9 … #14 & #19
.

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
I have also attached the mq4 file.
I am getting following error(array out of range) :
I tried array resize in OnInit then also tried to print it and found that just after I use ArraySize, Size is increased but just after few more lines on code I again printed size and found, it's Zero.
A little Bit help will be really really appreciated.