And where? Please mark the line!
Thanks, i have highlighted in yellow the lines which are throwing the " array out of range error"
Thanks, i have highlighted in yellow the lines which are throwing the " array out of range error"
Use the debugger and check the size of the array _ I guess you'll have forgotten to resize
the array after its definition!
HELP: I am getting an error " Array out of bound " in the above code . What am i missing ? any guidance , well appreciated
The size of your 'detrendres' is zero, need to resize it to 'statSampleSize' instead.
after that, you'll get a divide by zero error (check your AR1() function)... lolz... good luck!
Use the debugger and check the size of the array _ I guess you'll have forgotten to resize
the array after its definition!
The size of your 'detrendres' is zero, need to resize it to 'statSampleSize' instead.
after that, you'll get a divide by zero error (check your AR1() function)... lolz... good luck!
got exactly what you mentioned
.........
.........
2019.08.27 03:39:12.075 test_statistics (EURUSD,M2) dt_arr[98]= 1.11023161890671 dt_regRes[98]= 1.11008831700462 dt_res[98]=0.0001433019020895543
2019.08.27 03:39:12.075 test_statistics (EURUSD,M2) dt_arr[99]= 1.110236493681032 dt_regRes[99]= 1.110086492032748 dt_res[99]=0.0001500016482836042
2019.08.27 03:39:12.075 test_statistics (EURUSD,M2) CAp::Assert CBaseStat::SpearmanCorr2: length(x)<n
2019.08.27 03:39:12.075 test_statistics (EURUSD,M2) zero divide in 'test_statistics.mq5' (292,36)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
HELP: I am getting an error " Array out of bound " in the above code . What am i missing ? any guidance , well appreciated