Seriously guys... why?
I have a complex EA and I can't manually write the Array rows and columns every fricking time. It would mean stopping the program and run it again for like 10 times. It is not possibile.
I would like to pass those values in a function like this:
All I was able to do was to "ArrayResize" the first dimension, but i need both of the dimensions to be initialized automatically.
I couldn't find nothing online...
Can you pls help me?
Thank you.
are u seriuous? Try code it for yourself and see... it is not possible. Incredibile, I know.
The second dimension must always be defined which is probably not what you want since it looks like you want a dynamic matrix.
A solution to this is to use a single dimension dynamic array and do a bit of calculation when accessing specific cells of
the matrix, for example.
double matrix[]; // 4X3 matrix (4 rows, 3 columns). ArrayResize(matrix, 12); ArrayInitialize(matrix, 0); int row = 2; // Row goes from 0 - 3 int column = 0; // Column goes from 0 - 2 // Access the first cell in the 4th row. matrix[row * 3 + column] = 123;
Ideally you could put all this logic inside a class and overload the operator[] to do all these calculations behind the scenes.
are u seriuous? Try code it for yourself and see... it is not possible. Incredibile, I know.
The second dimension must always be defined which is probably not what you want since it looks like you want a dynamic matrix.
A solution to this is to use a single dimension dynamic array and do a bit of calculation when accessing specific cells of
the matrix, for example.
Ideally you could put all this logic inside a class and overload the operator[] to do all these calculations behind the scenes.
I can't do this... you see I am working with excel databases... columns and rows are very large and there are also multiple nested loops in the code which work properly only in a matrix array logic.
... I really don't know what to do....
fun fuct: theoretically you could insert "constants" into the matrix declaration. But of course you can't assing variabiles to them. So you always need to type those numbers. The more I think of it, the crazier it gets
#define Columns 66 #define Rows 55 double arr[Rows][Columns];
I can access my data... the only thing I can't do is create a multidimensional array automatically. I have to type the values.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Seriously guys... why?
I have a complex EA and I can't manually write the Array rows and columns every fricking time. It would mean stopping the program and run it again for like 10 times. It is not possibile.
I would like to pass those values in a function like this:
All I was able to do was to "ArrayResize" the first dimension, but i need both of the dimensions to be initialized automatically.
I couldn't find nothing online...
Can you pls help me?
Thank you.