Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 246
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
The task is to take data from the site, I get the file I attached, but I don't know what to do with it next.
int b = 100;
int a = FileOpen("zulu2.txt", FILE_WRITE);
FileWrite(a, ReadCBOE()); // получаем txt файл
FileSeek(a, 0, SEEK_SET);
string str1 = FileReadString(a, b); //по идее должна возвращать строку длинной в 100 с начала файла
FileClose(a);
Alert(str1); // но возвращает пустоту, не зависимо от значения b
// вот и как этот файл нормально оприходовать?
There is no difference in principle, the string str1 has no length anyway, so something is wrong:)
No difference in principle, still string str1 has no length, so something is wrong:)
Also try this way...
Is there anything in the file?
What are the errors in the log?
Insert error handling and see.
Rzhevsky is resting, so I will simply say: do not click anywhere yet. He will come back from holiday and tell you where to press.)
The optimisation graph has always looked like dots.
Maybe you take the testing schedule as the optimisation schedule?
https://www.youtube.com/watch?v=ly8AImE0hDg
Here in this video between 20 and 21 minutes he does what I need him to do.
But for some reason I don't have a DOUBLE UP in the menu
You mean Rzhevsky, the forum member, is away on holiday?
And only he knows where to click?
And when does he plan to finish his holiday and come to my rescue?
https://www.youtube.com/watch?v=ly8AImE0hDg
In this video, between 20 and 21 minutes, it does what I need it to do.
But for some reason I don't have the DUPLEX TERRIBLE option in the menu
Also try this way...
Is there anything in the file?
What are the errors in the log?
Insert error handling and see.
File attached in the post, all errors = 0, i.e. no errors, the whole problem is in the implementation of the logic.
int b = 100;
int a = FileOpen("zulu2.txt",FILE_WRITE);
FileWrite(a, ReadCBOE()); // получаем txt файл
FileClose(a);
int c = FileOpen("zulu2.txt",FILE_READ | FILE_WRITE);
Alert(GetLastError());
FileSeek(c, 1, SEEK_SET);
Alert(GetLastError());
string str1 = FileReadString(c, b); //по идее должна возвращать строку длинной в 100 с начала файла
Alert(GetLastError());
FileClose(c);
Alert(str1); // но возвращает пустоту, не зависимо от значения b
// вот и как этот файл нормально оприходовать?
You mean Rzewski is away on holiday?
And only he knows where to press?
And when does he plan to finish his vacation and come to my rescue?
Yes, of course he does.
Of course he does.
He says he's still dealing with the surfaces he took out of your tester. When he's done with them, he'll deal with you. On all planes.
I haven't watched the video - no time. There is no two-dimensional surface in MT4 tester/optimiser. Three-dimensional all the more so.
http://clip2net.com/s/68GgQ9 two-dimensional surface
http://clip2net.com/s/68Glq8 optimisation graph as a line
Yes, of course he does.
Of course he does.
He says he's still dealing with the surfaces he took out of your tester. As soon as he's done with them, he'll deal with you. On all planes.
Give him my warmest regards and best wishes!!!!