Zarik: How can I define the return type as an array
You don't. The best you can do is return a class object that contains an array.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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, Please take a look at the following code:
and more specifically to the function's header:
I am aware of possibility to pass an array reference as function's parameter and modify that inside the function. But that's not what I am looking for this scenario. How can I define the return type as an array of MqlCalendarEvents? Is that even possible in Mql5?
Thank you in advance for your help.