Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 246

 
mzk_3om6u:



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

// вот и как этот файл нормально оприходовать?

 
Zhunko:



There is no difference in principle, the string str1 has no length anyway, so something is wrong:)
 
mzk_3om6u:

No difference in principle, still string str1 has no length, so something is wrong:)
int b = 100;

int a = FileOpen("zulu2.txt", FILE_READ | FILE_WRITE);

 FileWrite(a, ReadCBOE()); // получаем txt файл

FileSeek(a, 0, SEEK_SET);

 string str1 = FileReadString(a, b); //по идее должна возвращать строку длинной в 100 с начала файла 

 FileClose(a);

 Alert(str1); // но возвращает пустоту, не зависимо от значения b

 // вот и как этот файл нормально оприходовать?

Also try this way...

Is there anything in the file?

What are the errors in the log?

Insert error handling and see.

 
artmedia70:

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?

 
solnce600:

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


I haven't watched the video - no time. There is no two-dimensional surface in the MT4 tester/optimiser. Three-dimensional all the more so.
 
Zhunko:

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

// вот и как этот файл нормально оприходовать?

 
solnce600:

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.

 
artmedia70:
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

 
artmedia70:

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!!!!
 
solnce600:
Give him my warmest regards and best wishes!!!!

He'll be sure to pay you a visit ;)