Why does "nearPosition" become "false" when it should be "true"? - page 2

 
jollydragon: Then I asked why and if you have any examples for "not reiable".
  1. History is definitely not reliable Order History sort by closing date - MQL4 forum
  2. If you do a partial close, you get a new ticket number, but the OrderOpenTime is not changed. So what slot will you find it in? Original order is gone, everything moves down, and the new ticket with an older time in last slot? Or perhaps, the original slot just changes ticket number and lotisze?
  3. Same thing for pending orders - ticket number doesn't change but OrderOpenTime does. So what slot will you find it in?
  4. Don't assume. Either test it, or just sort it and be done.
 
WHRoeder:
  1. History is definitely not reliable Order History sort by closing date - MQL4 forum
  2. If you do a partial close, you get a new ticket number, but the OrderOpenTime is not changed. So what slot will you find it in? Original order is gone, everything moves down, and the new ticket with an older time in last slot? Or perhaps, the original slot just changes ticket number and lotisze?
  3. Same thing for pending orders - ticket number doesn't change but OrderOpenTime does. So what slot will you find it in?
  4. Don't assume. Either test it, or just sort it and be done.

Thank you for the examples!
Reason: