Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
If i use you example I get an error message at the point where the function is supposed to return the Array. That error says "Invalid array access"
You cannot return an "Array". The example is flawed. It would make more sense like this:
Please note however, that the array is passed by reference, so that the original array is being directly modified!
If you need to keep the original and the "returned array" separate, you will have to make a copy of it before calling the function.