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
Guys, how do I write the data on one line, separated by commas?)
I get it every time from a new line.
In principle, it should work faster if I put all the data into an array at once, as advised:
Guys, how do I write the data on one line, separated by commas?)
I get it every time from a new line.
In principle, it should work faster if all the data at once in the array, as advised:
I've read the article on string functions, I think I've done it:
Guys, how do I write the data on one line, separated by commas?)
I get it every time from a new line.
In principle, it should work faster if I put all the data into an array at once, as you advised:
Why would you want to do that? Dmitry gave links to documentation on reading and writing an array to a file.
https://www.mql5.com/ru/docs/files/filereadarray
https://www.mql5.com/ru/docs/files/filewritearray
There are also examples at the links.
Does anyone have instructions on how to convert a normal file with digits to Bin? I can't figure out what separator the digits should have?
By reading the digits, we can stuff them into the array and then write the array to the file in binary mode.
I see, i.e. you can read the ready file with digits into an array (my case), then write it into a binary file, and then use it.
Well, if you need to read data of 10 arrays from the file, then you need to make a sorter, which will understand the end of the array by special digit and fill the next array... For it is not convenient to write the array size every time.
I see, i.e. you can read the ready file with digits into an array (my case), then write it into a binary file, and then use it.
Well, if you need to read data of 10 arrays from the file, then you need to make a sorter, which will understand the end of the array by special digit and fill the next array... because it would be inconvenient to write the array size every time by hand.
What a mess.
Writing an array to a file is necessary to save this array for the time of EA reloading. It should be written before exit and read on entry.
If there are 10 arrays in the Expert Advisor, there will be 10 files. But before it (an array) can be read, it should be created and written...
A mess in the head.
Writing an array to a file is necessary to save that array for when the EA is rebooted. Writing before exiting and reading on entry.
If there are 10 arrays in the EA, there will be 10 files. But before it (the array) can be read, it must be created and written...
You're so stuck up, I'm talking about solutions and you're praising the problem. My post is not about solving the top starter's problem.
Inattentiveness and aggressiveness - apparently apathy, autumn...
Why do I need to do it? Dmitry gave links to documentation reading and writing an array to a file.
It's like in the movie "The Diamond Arm"... "With one move of the hand, the trousers are transformed..." Only in this case there is no technical malfunction. After all, I didn't ask for nothing how writing and reading an array is organised.It's quite possible that it would be faster with a bin file.
Yesterday I tried to declare the array at once. After all, I know the array beforehand, before optimization.
For example, like this (I deleted a part of strings):
It hasn't worked so well yet. At present terminals are busy with optimization and I will try to do it in different ways later. I suppose I have to convert from string to date.