Problem with 3 dimensional array

 
Hello,

i want ask if i can use in mql4 3 dimensional array. I now try it but i thing that this is not supported in mql4.

i have static array

int position[9999][30][2];

First size is id
Second size is id of timeframe
Third size is sign of SELL or BUY

And if i set for example
position[1201][1][2] = 10;

and then if i want print this
print(position[1201][1][1]); //return 10 .... but it shall return 0

Thank
 
Hello,

i want ask if i can use in mql4 3 dimensional array. I now try it but i thing that this is not supported in mql4.

i have static array

int position[9999][30][2];

First size is id
Second size is id of timeframe
Third size is sign of SELL or BUY

And if i set for example
position[1201][1][2] = 10;

and then if i want print this
print(position[1201][1][1]); //return 10 .... but it shall return 0

Thank





1) You are writing and reading from different location.
position[1201][1][2]
position[1201][1][1]

2) Try ArrayResize(array, 9999)