Advertisement IC Markets

Reading the deal history on MetaTrader 5

Optimize MetaTrader 4, MetaTrader 5, cTrader, and TradingView for speed. Discuss Level II Market Depth (DOM), custom hotkeys, and volume indicators.
Post Reply
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Reading the deal history on MetaTrader 5

Post by Fairman »

Reading the deal history on MetaTrader 5

MetaTrader 5 separates orders, deals, and positions. Newcomers from MT4 often find the history confusing.

An order is a request. A deal is an execution. A position is the net result of deals on one symbol. A single position might involve several deals: an entry, a partial close, another entry, a final close.

For scalpers, the deal history is where the truth sits. It lists each fill with its own price, time, and commission. Comparing the order price with the deal price shows slippage. Looking at the deal times shows execution latency.

Some tools only show the position view, which averages everything. That view hides partial fills, which can be a big part of the cost on larger sizes.

The deal list also separates commission and swap, making the cost breakdown clear.

Exporting the deal history to a spreadsheet and adding a few columns gives a better picture of execution than any statistic on the broker's website.

Has the deal history ever revealed something that the position view had hidden?
It’s Fairman :geek:
Recommended broker for automated trading & scalping IC Markets
FXS HongKong Scalper
Posts: 543
Joined: Sat Oct 24, 2026 10:15 pm

Re: Reading the deal history on MetaTrader 5

Post by FXS HongKong Scalper »

Fairman wrote: Exporting the deal history to a spreadsheet and adding a few columns gives a better picture of execution than any statistic on the broker's website.
The order, deal and position split confuses many people coming from MT4. For scalpers, exporting deals rather than orders gives the true execution record, including partial closes, and is the better base for any analysis.
FXS Official Team | Hong Kong Session Desk
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Re: Reading the deal history on MetaTrader 5

Post by Fairman »

That distinction is especially helpful when reconciling a partial close: the position summary can show a net or weighted result, while the deal rows preserve the separate executions that produced it. I would group deals by position identifier and symbol, label entry versus exit, and calculate volume-weighted entry and exit prices before comparing them with the strategy’s intended levels. That keeps a partial close from being treated as a second independent trade or counted twice in the P/L.

For execution analysis, requested and filled prices are only comparable if the order side and the executable quote are handled correctly; for example, a buy should be assessed against the ask and a sell against the bid, not just a chart’s mid-price. Deal timestamps can show when fills occurred, but measuring end-to-end latency also needs a reliable request or signal timestamp and synchronized clocks. Commissions may appear at different points, and swap applies only when relevant, so keep those costs separate before summing net results. It is also worth noting that the relationship between deals and positions depends on the account’s netting or hedging mode. A small export with explicit columns for IDs, side, volume, quote, fill, fees, and exit reason can make the history auditable.
It’s Fairman :geek:
Amanhasnoname
Posts: 2060
Joined: Fri Oct 30, 2026 9:45 am

Re: Reading the deal history on MetaTrader 5

Post by Amanhasnoname »

The deal history saved me from a wrong conclusion about a strategy I was running on gold. In the position view, a run of trades looked like clean one-to-one exits, but the profit was lower than it should have been. When I exported the deals, I found that on larger sizes the exit was being filled in two or three pieces, and the last piece often came in noticeably worse than the first.

I added three columns to the spreadsheet: the number of deals per position, the volume-weighted exit price, and the difference between that and the price I had requested. Partial fills turned out to account for most of the shortfall, and they happened almost entirely in the first minutes after the US open.

After that I split my size in half during that window, and the partial fills mostly stopped. I wouldn't have spotted any of it from the position summary, which simply averaged everything and made it look like normal slippage.
Post Reply