Hello,
i still have problems to get HistorySelect properly.
Basically, HistorySelect does not return orders latest place. They can be seen in the history tab but are not reflected through History order list.
Simply open a position with BUY or SELL manually, raise, lower Position with BUY or SELL (market).
You will see: sooner or later latest orders are not printed to expert log but can be seen in history tab.