Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1502

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
Of course I'm having a party tonight... so I've decided on
"never feed them after midnight". Don't use CXxx(standard library) in projects with a scope of more than half a year. The worst thing that could be done with MQL5 is done in it
This is an example from the help, but I get a compilation error. What should I do? I've tried, specifying types in array size, the errors are less, but they don't go away, I've also tried returning a function value in the same way, also doesn't help. Why doesn't the example from the help work?
What error does generate?
If you copy these two lines directly from the help. Errors like this.
![]()
If you copy these two lines directly from the help. Such errors.
Check the brackets.
There's nothing wrong with them. You don't need to look at my mistakes. You check your own. Or show an example where you were able to use this function without a compilation error.
0 errors:
0 errors:
0 errors:
Well, yes, it turns out I can't allocate memory to an array globally. I can't in initialization either, then it's not available in ontika. How can I allocate a reserve size of an array so that on every tick I don't have to reallocate memory?