How to select the last closed order?

 
What is the MQL4 function for selecting the last closed order? I have tried

OrderSelect(0,SELECT_BY_POS,MODE_HISTORY);

but this isn't working..
 
I have problem with this OrderSelect() function as well. When I had 3 open postions at the same time, say, ticket number 1, 2 and 3. No mather what I tried, I just could not select the position I wanted.
 
By the way, everthing works perfectly in Build 184. I think the problem is due to the upgrade to Build 186.