I want to declare variables or arrays that will store dates, colors, strings.
On the mql4 shell, I write this way: datetime, color, string, but nothing happens here when specifying these data types?
I want to declare variables or arrays that will store dates, colors, strings.
On the mql4 shell, I write this way: datetime, color, string, but nothing happens here when specifying these data types?
To work with the date, you can use std::chrono , strings - std::string . To do this, you need to connect: #include <chrono> and #include<string> To store color parameters, you can write your own structure or class that will store the data you need, depending on the task, either a numerical color representation, or as a string. Here you can see an example.
<chrono> library, you can create your own structure for storing time, but processing it without <chono> or <ctime> will be an extremely difficult process. - Lex MarchenkoSource: https://ru.stackoverflow.com/questions/978780/
All Articles