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
Most probably you have low resources during runtime.
32 GB RAM
Available memory size? Not installed RAM!
in ArrayResize documentation there is 2.147.483.647 as the maximum number of elements.
But, I cannot set an 25.000x10.000 array. It's only 250.000.000, far less than 2.147.483.647. Why?
Linux+Wine 6
We've experienced weird things in other OS than Windows, try MQL in Windows.
Thanks Mohammad.
Maybe I can ask you this: would you check what is approx. the maximum array size that you can define?
For example you have this:
What is the maximum number that you can set instead of the 25.000?
Thanks Mohammad.
Maybe I can ask you this: would you check what is approx. the maximum array size that you can define?
For example you have this:
What is the maximum number that you can set instead of the 25.000?
According to documentation, the array elements are limited to (2^31)-1, but in runtime it can't be achieved, it seems the limit is not by elements, but by bytes, the size of char variable type is 1 byte, so I tested the char array.
Sample 1: One-dimensional char array:
Result:
Array 1st dim size: 2139353037, ArrayResize ret value: 2139353037
Sample 2: Two-dimensional char array, 2nd dimension size is 2:
Result:
Array 1st dim size: 1069676511, ArrayResize ret value: 2139353022
Sample 3: Two-dimensional char array, 2nd dimension size is 3:
Result:
Array 1st dim size: 713117672, ArrayResize ret value: 2139353016