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
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)
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
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