Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 480

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
once. Doesn't want to close positions , what's wrong???
Didn't see where you are trying to close orders?
or is it wrong?
All the bikes have been invented before you - connect the functions intelligently and that's it. It would also be a good idea to read a textbook on order closures as well.
IMHO.
Have you tried my programme? I do not quite understand the 300... If you put 300 instead of 60, is it true? If you tell me how to get profit from it, I'll look more carefully!
Yes, your programme writes to the files every 60 seconds. But the opening times of positions are different and should be counted from the opening times of each position separately, i.e. the time of entries will be different, but it turns out that the data is written almost simultaneously on all positions. For 300 seconds, the difference can be seen more clearly. Profit?) Perhaps, it is important to know at what time from the position opening the number "P" is greater than "L", it is for BOO.
Can you tell me how to read the last line of a file ?
WithFileReadDouble?
I only need theBlueLine andRedLine values ofthe last line. ????
I was writing it this way:
Can you tell me how to read the last line of a file ?
WithFileReadDouble?
I only need theBlueLine andRedLine values ofthe last line. ????
I was writing it this way:
When opening the file for writing you specified TXT or CSV. This is a text file. Read it as a string, select StringSubstr and convert it to what you need