Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1637
![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
I didn't know there was an ObjectsDeleteAll.
I use it everywhere
I use it everywhere
I did not know that there is ObjectsDeleteAll and now I want to get to the bottom of it.
Forum on trading, automated trading systems & strategy testing
Any questions from newbies on MQL4 and MQL5, help and discussion of algorithms and codes
Artyom Trishkin, 2021.09.30 05:31
You may delete it. If you have already understood the reason, you may better understand it once, so that you don't try to do it again.
When deleting an object from an array, the position of the next one is shifted in the array and the loop index now points to where? Think about it.
Print the number, ticket and order type before the second if and inside the second if.
Got it. Tried it. It's counting, but it's not quite right. It counts orders by the tick. I need the last but one order at the top of the grid. If the price goes down and another order is opened, the penultimate order is the one with the maximal OrderOpenPrice.
How to work with a file in an mql5 program without writing the file to disk, but work only in RAM, to speed up. I want to transfer data from an mql5 program to a program on my computer.
Here it is:
https://www.mql5.com/ru/articles/503
Got there. Tried it. It's counting, but it's not quite right. It counts orders by the tick. I need the last but one order at the top of the grid. If the price goes down and another order is opened, the penultimate order is the one with the maximal OrderOpenPrice.
Got there. Tried it. It's counting, but it's not quite right. It counts orders by the tick. I need the last but one order at the top of the grid. If the price goes down and another order is opened, the penultimate order is the one with the maximal OrderOpenPrice.
The last one comes out, not the penultimate one(