trevor88 #: I can access my data... the only thing I can't do is create a multidimensional array automatically. I have to type the values.
The solution in post #3 is indeed the best option!
Create a class that uses a simple single dimensional array as the data storage, and then overload the [] operator to translate the multidimensional coordinates. In the class constructor or an initialisation method, you can then set the sizes of each dimension dynamically, and allocate the necessary storage accordingly.
You can also use templates to declare classes for different data-types besides "double".
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.
The solution in post #3 is indeed the best option!
Create a class that uses a simple single dimensional array as the data storage, and then overload the [] operator to translate the multidimensional coordinates. In the class constructor or an initialisation method, you can then set the sizes of each dimension dynamically, and allocate the necessary storage accordingly.
You can also use templates to declare classes for different data-types besides "double".
Also, have a look at the latest MQL5 functionality for using matrices. It may be useful for what you want to achieve.