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