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 would very much like to know what's wrong with this option ???
You have a sequence of n orders. You have selected an order m(m<n) with the OrderSelect function.
During the processing of order m, the server closes order m-1, and the position of order m (which you are processing) changes to m-1.
In the next loop, you go to process order m-1 and think it is a new order, but no, it is the same order m
Which has changed its position and taken the place of the order closed by the server. So you process two orders in a row
the same order twice in a row.
it's mql4 ...
Everything is mixed up in the house...
If MQL6 is introduced and MQL4 isn't gone yet, what will happen then?
You have a sequence of n orders. You have selected order m(m<n) with OrderSelect.
While you are processing order m, the server closes order m-1 and the position of order m (which you are processing) changes to m-1.
In the next loop, you go to process order m-1 and think it is a new order, but no, it is the same order m
Which has changed its position and taken the place of the order closed by the server. So you process two orders in a row
the same order.
I do not agree ... And may the forum users judge us ....
We have 10 orders in the terminal ... but in the list the orders are 0 1 2 3 4 5 6 7 8 9 Ten ? 0 from programming is difficult to remove.
So OrdersTotal() will have a value of 10, but in reverse counting we take the total of orders as 10-1, i.e. 9, and when we get to 0, we call one more integration of the loop 0>=0
it means we have 1 order left which we go over at this point 0>=0.
Nothing is too natural or wrong ....
Ahaa! I get the point of this thread!
It will help identify coders who may be talking nonsense or stupid right in the same thread.
Which means they automatically go by the algorithm: said stupid - ban. :)
So feel free to express your most "intelligent" thoughts. Maybe you'll get lucky ;)
one is better than the other)))
You can only troll ??? Offer your version with an explanation ...
What for? For whom? They are all in the same place, but they do not have any idea how to deal with orders and who of all the programmers present here is worthy of working in Job.