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

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
before opening an order, store the current max_ticket in prev_ticket
before opening an order, store the current max_ticket in prev_ticket
before opening an order, store the current max_ticket in the prev_ticket
Thank you dear!!!!!
before opening an order, you store the current max_ticket in the prev_ticket
Makar, the last order may not have a bigger ticket. If a pending order is opened, then a market order, and then a pending order is activated, the ticket of the last order will be smaller than the previous one. Or, if several pending orders are opened, the order sequence will be the same as the order activation sequence, and the tickers will be different.
The opening time is always sequential...
Makar, the last order may not have a bigger ticker. If a pending order is open, then a market order, and then a pending order is activated, then the ticket of the last one will be smaller than the previous one. Or, if several pending orders are opened, the order sequence will be the same as the order activation sequence, and the tickers will be different.
The opening times are always sequential.
It doesn't have any pending orders, but you're right anyway.
For that, it has a function to search for the last open
It doesn't have any delays, but you're right anyway.
It has a search function for the last open
You need to assemble everything into an array, sort by the right parameter and take from the array by the right index.
Collect everything into an array, sort it by the right parameter and take it from the array by the right index.
It even sounds scary to me)
And you do things far scarier than you could have done them.
And you do things much scarier than you could have done them.
The problem is that not everyone wants to develop. That's quite normal.
Well thanks to you, taught a few years ago to use structure and an array of structure.
Beautifully presented new material itself asks to be studied and applied, the codes turn out many times faster and more beautiful. Not everyone uses such features.
And you do things far scarier than you could have done them.