Memory calculation...
Length of the variable name has no effect on the memory footprint.
Arrays will be basic type size * length of the array.
The string type is kind of odd, the 8 bytes seem to contain a pointer to the actually memory buffer which means the overall size will be 8 bytes + the buffer size.
Assume you have already looked at MQL4 Reference - Basics - Data types?
Arrays will be basic type size * length of the array.
The string type is kind of odd, the 8 bytes seem to contain a pointer to the actually memory buffer which means the overall size will be 8 bytes + the buffer size.
Assume you have already looked at MQL4 Reference - Basics - Data types?
Thank you. I'd put a wrong data in the up question but I've corrected it.
As for string and double is 8 bytes, bool and int 4-bytes, but array?
What are the calculation modes for array?
And how much length of the variable name is increasing use of bytes in an array?