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

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.e. it is only a question of localising the use for local areas with the same argument names by reference. Well, not much, but there is something. Thought there was more to it.
That's just what I know about, what's comfortable for me. Surely there are other benefits, such as memory redundancy or whatever. Why don't you ask Fedoseev directly?
Different level of perception))) Maybe I sin myself, obvious things are very difficult to convey to others))))
It is possible to do with one argument x by declaring r in global scope.
If not from 0.01 then I have to select orders from 0.02 and so on. How do I write this point?
If not from 0.01 then I have to select orders from 0.02 and so on. How do I write this point?
You really do not see it yourself?
"How to check this point?" - you have to calculate the minimum value of the lot 0.01.
Perhaps, the slippage should be specified in points, i.e. 3*Point() and not 3
If not from 0.01 then I have to select orders from 0.02 and so on. How should this point be written?
Do you really not see it yourself?
"How do I write this down?" - where it says 0.01 lot, you have to calculate the minimum available.
I can see that. If you set it to 0.02, the order with 0.02 lot will be selected. I asked how to set it to look at the 0.01 lot first, then at 0.02 and so on.
You need 2 cycles: you find out the minimum volume in the first one, and close it in the second one. And note that when you close the orders are shifted by 1 position, so you have to do the cycle from the maximum position to 0.
How do you go from maximum to 0 ?
I'm asking how to make it look first at 0.01, then 0.02 and so on.
You have already been told how twice.
I can see that. If you set it to 0.02, it will select orders with 0.02 lot. I'm asking how to set it to look at 0.01 first, then 0.02 and so on.
Collect in a two-dimensional array, the first dimension contains lots, the second ticket. Sort the array, and close while the first dimension has the smallest lot. Or if you need to close all, but as the lot increases, close until the end...