ValidSymbol must have some value to initiate its size, so put some numbers between the brackets ;)
Just put 1 between the brackets
Keelan: ValidSymbol must have some value to initiate its size, so put some numbers between the brackets ;
That makes it a fixed array and can't be resized.jollydragon: Why does the "Experts Log" always say "array out of range" even though I changed "symbolCount" in line 37 into '0'?
You are storing into validSymbol[0], but the array has no size. Resize the array and then store.Valid validSymbol[]; int symbolCount=0 for(i=0;i<totalPOS;i++){ validSymbol[symbolCount].name=symbolName;
ArrayResize(validSymbol, symbolCount + 1);
validSymbol[symbolCount].name=symbolName;
validSymbol[symbolCount].POS=i;
++symbolCount;
WHRoeder:
That makes it a fixed array and can't be resized.
You are storing into validSymbol[0], but the array has no size. Resize the array and then store.
That makes it a fixed array and can't be resized.
You are storing into validSymbol[0], but the array has no size. Resize the array and then store.
Thanks a lot !!
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
Please refer to the screenshot below.
Why does the "Experts Log" always say "array out of range" even though I changed "symbolCount" in line 37 into '0'?
Below is the complete code.