Libraries: MT4Orders - page 11

 
hini #:

And the position history generated via CloseBy is different from the one I created manually.

It matches the timeline perfectly. Once again. MT5 generates the trading history. It is a crooked representation of closed positions.

You should not be guided by what MT5 shows, but by common sense.

 
fxsaber #:

It fits the timeline perfectly. Once again. MT5 generates a trading history. It is a crooked representation of closed positions.

You should not be guided by what MT5 shows, but by common sense.

Okay, I get it. You are focusing on the process of closing historical orders.

And I wanted to say, or more precisely, get a list of positions (orders for positions) that existed in the account between the two specified points in time.

Of course, because of the CloseBy operation, the price and closing time of some orders may be inaccurate. But for me (as a user) it is not critical, as the profit calculation is correct. If you need details, you can always look in the "Orders & Deals" section.
 
hini #:
a list of positions (position orders) that existed in the account between the two specified points in time.
This shows MT4Orders in the mode without snapshots. I.e. at once.