Download MetaTrader 5
To add comments, please log in or register
MQL5 Cloud Network is a distributed computing network. Just give it a try!
Carl Schreiber
5938
Carl Schreiber 2014.03.08 18:13 

If I select an order by

if( OrderSelect(12470, SELECT_BY_TICKET) )

do I get a true even if this order of the Ticket is already closed and the order is already in the HistoryPool?

Gooly

whroeder1
13602
whroeder1 2014.03.08 18:44  
Per the DocumentationThe pool parameter is ignored if the order is selected by the ticket number.
GreenMoney
379
GreenMoney 2014.03.08 18:44  
gooly:

If I select an order by

. . .

do I get a true even if this order of the Ticket is already closed and the order is already in the HistoryPool?


Yes. When using the SELECT_BY_TICKET argument, the "pool parameter is ignored" because the ticket number is a unique order identifier. See OrderSelect().
Radu
29
Radu 2014.03.11 14:34  
Yes, thats correct. Unless the user has been limited the Account History by giving an date interval, because in that case you will got back false. Of course, this fact is missing from the documentation as far as I know :)
/
To add comments, please log in or register