I am little bit confuse with OrderSelect(). I wrote below functions
Alert(OrderSelect(15958423, SELECT_BY_TICKET, MODE_HISTORY) +" "+OrderSelect(15958612, SELECT_BY_TICKET, MODE_TRADES));
open trade open then MODE_HISTORY show true and MODE_TRADES also show true.
as i know history only show order cancel or close. then why "OrderSelect(15958423, SELECT_BY_TICKET, MODE_HISTORY)" return true.
but when i close the trade then also both function return true. why?
no trade but also show 'OrderSelect(15958612, SELECT_BY_TICKET, MODE_TRADES)' return true
please help me
Please read MQL4 Reference carefully.
"The pool parameter is ignored if the order is selected by the ticket number. The ticket number is a unique order identifier."
//order is open
//order is closed