I agree with you. The array seems to be of the same type. Although, on the other hand, substrings obviously contain different types of data, for example EURUSD cannot take an intrinsic value in any way.
The good thing about a programming language is that there are several ways of doing things. Our task is to choose the more elegant one.
Aren't these crutches? Including my version.
Why are they crutches? You may get a string, convert it to a certain type and insert it wherever you need. However, I think the array in your version is excessive. The structure will suffice. After all, it is a string that is read, not several strings.
Sergei has multiple EAs working there, multiple rows, so it's an array. And that's why everything looks ugly. Maxim Kuznetsov suggested SQL, this is the right way for these EAs to communicate with each other.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Let me try again to convey the idea of the usability of an array
I've already written how to save this array.
Or parse your string.
But you can't use the StringSplit function to switch from a string to an array?
Can you use the StringSplit function to switch from a string to an array?
Yes, you can, if you put an explicit conversion to double before the price, for example
EURUSD,5,0.02,1.17808,70,0,0,302090516
What type of array do I need to get?
EURUSD,5,0.02,1.17808,70,0,0,302090516
This string will be converted to a string array, e.g. string arr[];
The good thing about a programming language is that there are several ways of doing things. Our task is to choose the more elegant one.
Aren't these crutches? Including my option.
EURUSD,5,0.02,1.17808,70,0,0,302090516
What type of array do you want to get?
I agree with you. The array seems to be of the same type. Although, on the other hand, substrings obviously contain different types of data, for example EURUSD cannot take an intrinsic value in any way.
This string will be converted to a string array, e.g. string arr[];
Thank you very much, that calms me down, I was beginning to have doubts.
The good thing about a programming language is that there are several ways of doing things. Our task is to choose the more elegant one.
Aren't these crutches? Including my version.
Why are they crutches? You may get a string, convert it to a certain type and insert it wherever you need. However, I think the array in your version is excessive. The structure will suffice. After all, it is a string that is read, not several strings.