I have a guess here... alphabetical order of symbols may matter.
in your example, it's eurusd, eurusd, gbpjpy, gbpusd, usdchf, usdjpy.
I have a guess here... alphabetical order of symbols may matter.
in your example, it's eurusd, eurusd, gbpjpy, gbpusd, usdchf, usdjpy.
It's the most stupid explanation I've ever heard. I hope it was a joke :-)
If you have opened one or some orders in your terminal they are scored in a list OrdersTotal(), the oldest is 0, the newest has number - OrdersTotal()-1. So, if you have three opened orders, in the list they are - 0,1 and 2.
You can use the loop:
for(int cnt=0;cnt<OrdersTotal();cnt++) {
OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
....
}
and see each order in your list by position.
It's the most stupid explanation I've ever heard. I hope it was a joke :-)
If you have opened one or some orders in your terminal they are scored in a list OrdersTotal(), the oldest is 0, the newest has number - OrdersTotal()-1. So, if you have three opened orders, in the list they are - 0,1 and 2.
You can use the loop:
for(int cnt=0;cnt<OrdersTotal();cnt++) {
OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
....
}
and see each order in your list by position.
no, it was not a joke, it was an honest attempt to explain what we were seeing.
did you take a look at the picture OP supplied? he also wrote twice (both in posts #1 and #2) that "oldest to newest" numbering was not the case.
on a second thought however, ticket order might well be broker-specific.
OK, question to topicstarter - Did you open these orders as Buy and Sell, or as BuyLimit or BuyStop and SellStop and SellLimit?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
what is SELECT_BY_POS ?
it depens on tickets or open time ?
Neither !
i code a script :
the output as below: