When you get an arrayout of range error, the error report will tell you in which line of your code that the error occurs.
Please paste that line and block of code here
Please find attached an indicator that does nothing but display the values passed to OnCalculate - and a few other values from functions common in indicator development.
Question: Why, when accessing volume[] or spread[] do I get an 'index out of range error'? Are these values not supported in all instances of MQL4? I'm using FXCM demo account to test, with version 4, build 950.
When you get an arrayout of range error, the error report will tell you in which line of your code that the error occurs.
Please paste that line and block of code here
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please find attached an indicator that does nothing but display the values passed to OnCalculate - and a few other values from functions common in indicator development.
Question: Why, when accessing volume[] or spread[] do I get an 'index out of range error'? Are these values not supported in all instances of MQL4? I'm using FXCM demo account to test, with version 4, build 950.