Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1636
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
It was quite the opposite. In OnDeInit(), the Expert Advisor didn't have time to delete all objects by the loop. It was discussed here on the forum. The solution is unambiguous, to delete everything by prefix...
Isn't the prefix without a cycle?
Isn't the prefix without a cycle?
Oh, man... You know, it's just old times, you know?
Yeah, that's what I do. As a good rule of thumb, don't remove anything superfluous, just your own)
It was quite the opposite. In OnDeInit(), the Expert Advisor had no time to delete all objects by the loop. This has been discussed here on the forum. The solution is unambiguous, delete everything by prefix...
Exactly the opposite was true,ObjectsDeleteAll had no time to delete everything because it was interrupted by deinit)
while a simple loop deletes everything - the terminal is waiting for the program.
ps.ObjectsDeleteAll is the same loop, no different from the custom one.
How to work with file in mql5 program without writing the file to disk, but to work only in RAM, to speed up. I want to transfer data from an mql5 program to a program on my computer.
Without writing to disk you can try BD SQLite, but I haven't done that and am not very confident of success. In general you need to experiment.
Without writing to disk you can try BD SQLite, but I haven't done that and am not very confident of success. In general you need to experiment.
It is better to give the reason, about the displacement, well done, I wanted to write)
That's what I was counting on - either the person will want to think about the reason, or someone else will tell the person the second (third, fifth) time - it's easier to understand (especially if the person wants to understand it, shows interest)
The cycle for deleting must be reversed:
and this applies not only to deleting graphical objects, but in general to deleting any objects in the terminal lists.
Is it because objects are systematically stored in an array?
While the output of the cycles is the same as in the first case:If you delete each group of objects separately by a cycle (ArrowDown and ArrowUp), they are deleted correctly from the chart.
Why do you need to delete through a loop?