Hi
What do you mean by “newer ones will always have larger OrderOpenTime() and OrderTicket()”? OrderOpenTme always equals to the time when trade was opened/triggered – so new trades always have “larger” time (since now is later than before ;)
As for the OrderTicket – that depends on the broker (what are their rules for numbering orders) – but I suppose the most common rule is that new trades has bigger numbers as ticets (to avoid repeating).
Best Regards
Hi
What do you mean by “newer ones will always have larger OrderOpenTime() and OrderTicket()”? OrderOpenTme always equals to the time when trade was opened/triggered – so new trades always have “larger” time (since now is later than before ;)
As for the OrderTicket – that depends on the broker (what are their rules for numbering orders) – but I suppose the most common rule is that new trades has bigger numbers as ticets (to avoid repeating).
Best Regards
What you said of course makes all sense in the world, but MetaTrader and Forex broker practices are not very predictable. I've seen many assumptions that seemed just natural in theory not apply in the real world. There many "gotchas."
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
"Sorting of the resulting list of orders cannot be guaranteed."
OK. But can I at least rely on their opening times or ticket numbers? Is it guaranteed that newer ones will always have larger OrderOpenTime() and OrderTicket() values?