[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 286

 

I would like to take this opportunity to repeat my first question.

Can you tell me how to solve a "simple" problem?

For example, I need to delete the second line in a CSV file. I couldn't find any information in documentation about how to do it.

Example:

12:30;1;1.34818;12:32;3;3;100;1.34939;18:45\r\n

14:00;1;1.32219;14:26;6;6;100;0.0000;00:00\r\n

19:00;0;1.35828;19:12;12;6;600;1.37939;19:59\r\n

 
tuner:

I would like to take this opportunity to repeat my first question.

Can you tell me how to solve a "simple" problem?

For example, I need to delete the second line in a CSV file. I couldn't find any information in documentation about how to do it.

Example:

12:30;1;1.34818;12:32;3;3;100;1.34939;18:45\r\n

14:00;1;1.32219;14:26;6;6;100;0.0000;00:00\r\n

19:00;0;1.35828;19:12;12;6;600;1.37939;19:59\r\n

If you want to change something other than at the end of a file, you do it by overwriting the file or a part of the file.

Prepare the data in memory, then overwrite the file or part of the file.

 
Zhunko:

If something needs to be changed other than at the end of the file, it is done by overwriting the file or part of the file.

You prepare data in memory, then overwrite the file or part of the file.


Terribly inconvenient :(

Then I will rebuild my EA to work with arrays, it's probably easier there. I originally wanted to work with files - because files are not limited in size, while arrays probably have serious limitations, although I'm not sure for sure

 

Guys!

Please advise - how to code.

If the pending order N 123 is converted into a market order N 123

Place a pending order 100 points away from the open price of

of market order N 123

Note: Several pending orders may be present in trade at the same time.

And after transformation of each of them it is necessary to put the pending order.

Thank you for your help.

 
tuner:


Terribly inconvenient :(

Then I'll rebuild my EA to work with arrays, it's probably easier there. I originally wanted to work with files - because files are not limited in size, while arrays probably have serious limitations, although I'm not sure for sure

Files are limited by disk size, but mapping is limited by memory size. It is unlikely you have that amount of data.
 
Why is it that when I start a second MT4 terminal, both start to slow down wildly?
 
tuner:

Can you tell me what I'm doing wrong...

I need a variable of double type to contain the date as 0,20130429164459 (meaning 2013.04.29 16:44:59)

Part of the EA code:

Event log for Precision 12,13 and 14 gives wrong result, see picture



And can you show the values of hours, minutes and seconds before insertion into the total number?

What is the practical value of this conversion?

 
Neo333:
Why is it that when I start a second MT4 terminal, both start to slow down wildly?

RAM ))
 
tuner:

Part of the EA code:

Wrong part of the code:( you'll need your own function.
 

Alexander Vasilyevich, the champagne is making me fart.

string time = TimeToStr(Time[0],TIME_MINUTES)

if (time == "23:00")