Match a Trading Signal to Partial Fills in MT5 History
One trading signal does not always become one clean record in MT5 history. A single order can be executed across several deals, so a review that counts only the first line can misstate both size and entry price. This guide shows how to connect the signal to every related deal in a private demo worksheet, while keeping any missing information visible instead of hidden.
Steps to check
- Start with the signal row. Before you look at execution results, write the signal label, symbol, intended direction and analyst timestamp in your private demo worksheet. Keep the analyst timestamp in its own field so a later execution time never overwrites it. This gives you a fixed reference to compare the deals against.
- Group the deals by order. Collect the deal records that share the same order ticket, then check that the symbol and the deal direction fit an entry for your signal. Use the order ticket, symbol and deal direction together as the grouping key. Relying on only one of the three can pull unrelated deals into the group or leave real fills out.
- Separate entry fills from closes. Label every deal as either a partial entry fill or a later partial close. Do not add closing deals to the opening volume, because that produces the wrong average entry. Total only the entry fills when you work out entry volume and entry price, and handle the closes in their own section.
- Calculate total volume and volume-weighted price. For each entry fill, multiply its volume by its price. Add those results together, then divide by the total entry volume. Label the answer as before costs, and keep any cost figures in separate columns so they do not blur the price calculation.
- Record anything that does not match. If the signal expected more volume than the entry fills show, or a field is missing from the history you can see, write the unmatched volume or the missing data in a notes column. Do not guess or fill the gap. Store the actual deal times in separate fields from the analyst timestamp, so you can see the gap between the idea and the execution.
- Keep the worksheet private and generic. If you ever describe your method to others, share only the column layout and the logic. Share no account history or identifiers, and do not paste raw deal lines into public places.
Worked example
This is an invented, hypothetical example for practice only. Suppose your demo worksheet has one signal row with a long direction on a currency pair. In MT5 history you find one order that was executed across two entry deals. The first deal is 0.04 lot at 1.1000. The second deal is 0.06 lot at 1.1005. Both share the same order ticket, the same symbol and the same entry direction, so they belong in one group. Total entry volume is 0.04 plus 0.06, which equals 0.10 lot. Now weight each price by its volume. 0.04 times 1.1000 is 0.0440, and 0.06 times 1.1005 is 0.06603. Their sum is 0.11003. Dividing 0.11003 by 0.10 gives a volume-weighted entry price of 1.1003 before costs. Notice that this is not the simple midpoint of the two prices, because the larger fill has more influence. If a later deal closes part of the position, you would log it in the close section and leave it out of this entry calculation. You would also keep the analyst timestamp in one field and each deal time in its own field.
Frequently asked questions
Why can one signal show up as several MT5 deal records?
An MT5 order can be executed across several deals. Each deal is its own record, so one intended trade may appear as more than one line. Grouping them by order ticket, symbol and deal direction lets you treat them as parts of a single execution.
Should I include a partial close when I work out the average entry?
No. A partial close is a separate event from the entry. Adding closing deals to the opening volume gives the wrong average entry. Calculate the entry from the entry fills only, and track closes separately in the worksheet.
What should I do if the filled volume is smaller than the signal intended or some data is missing?
Write the unmatched volume or the missing data in a notes column rather than estimating it. Keep the analyst timestamp and the actual deal times as separate fields, so the record shows plainly what was planned, what was filled and what is still unknown.
Related guides
Related video
Related video: order submitted, has it filled?