int size_bars_new = ArrayResize(BARS,size_bars+1);
= 24 elements, 1st dimension is 1
BARS[size_bars_new-1][TimeHour(time1)]= bars ; //gives out of range error
You are trying to access element 23 of the 1st dimension. The 1st dimension only contains 1 element
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
Hi guys, what am I missing here? The docs say ArrayResize sizes the first dimension yet I get this error. Any pointers as to where I go wrong are appreciated. Thanks!