An open position can move between A-Book and B-Book before it closes. When that happens, its current book label cannot explain which book carried the risk earlier in its life. Reliable book-transfer tracking preserves the timeline and attributes market P/L to each period of allocation.
For MT4 and MT5 brokerages, that history matters when reconciling the dealing desk’s result. Without it, a final account group or routing label can assign the entire position’s result to the wrong book. The following framework separates the position’s market P/L from the broker’s wider revenue and costs.
Treat a book transfer as an event
Record the position identity, source server, transfer time, allocation before and after the change, and the valuation used to split the result. Preserve volume and any partial allocation as well. A change to an account group should not overwrite the position’s earlier allocation history.
Be precise about the event being recorded. A routing-policy update, an internal allocation change and a completed external hedge are different events. If they happen at different times, preserve each timestamp rather than assuming they are simultaneous.
Split the position into allocation segments
Each transfer ends one allocation segment and begins another. Calculate the change in cumulative market P/L within each segment using a consistent valuation basis. The sum of those segment movements should reconcile to the position’s total market P/L on the same basis.
A position opens in B-Book at $0 cumulative market P/L. It transfers to A-Book at +$1,200, returns to B-Book at +$2,000, and closes at +$1,600. The segments are +$1,200 in B-Book, +$800 in A-Book and −$400 after returning to B-Book. B-Book segments total +$800 and the A-Book segment totals +$800.
This example isolates market P/L and assumes a full allocation at each transfer. Partial allocations, position-size changes, currency conversion and execution differences require additional treatment. Document that treatment so the reconciliation can be reproduced.
Separate client market P/L from broker revenue
For a fully retained B-Book segment, the broker’s corresponding market result is the opposite of the client’s result before other income and costs. In the example above, +$800 of client market P/L across retained segments corresponds to −$800 of broker retained market P/L.
A-Book segment P/L is not automatically broker revenue. External execution, hedge timing and the hedge size affect the broker’s actual result. Markup, commissions, swaps, rebates and liquidity or bridge costs belong in a separate reconciliation. The broker revenue and costs guide explains those components.
Link the records without collapsing their meaning
Maintain the relationships between the trading-server records, allocation history and external executions. In MT5, orders, deals and positions are distinct concepts, and one position can be affected by several deals. MetaQuotes documents those relationships; treating every deal as a separate complete position can distort a transfer report.
Use a server-aware identifier and preserve the original tickets. When source records arrive late, flag the affected reconciliation for review. A report should distinguish a confirmed split from a provisional calculation that is still missing an execution or allocation event.
Test the cases that expose attribution errors
A single clean transfer is a useful demonstration, but it is not enough to validate the workflow. Test several transfers within one position, partial closes, changes in size and allocation events close to a trading-day boundary. Verify what happens if the external hedge fills later than the internal change.
- Check the opening and closing boundaries of every segment.
- Confirm whether displayed P/L includes swaps or commissions.
- Reconcile segment totals to the source position history.
- Review external hedge differences separately.
- Preserve the reason for corrections and any restated report.
Make the timeline usable for the dealing desk
A clear chart should show when the position changed books, its cumulative market P/L at each event and the movement attributed to each segment. The audit table should use the same timestamps and amounts. Let the reviewer change perspective explicitly rather than mixing client and broker signs on one display.
The BrokerCNC Book Transfers demo illustrates one position moving between books with a segment-by-segment P/L split. Pair it with the Broker Revenue demo to see how attribution connects to the desk’s net result. Request a live demonstration using the transfer scenarios your brokerage needs to reconcile.
Common book-transfer questions
Can the final book label determine the whole trade’s P/L allocation?
It cannot describe earlier allocation periods on its own. You need the effective transfer history and a consistent valuation at each boundary.
Does a transfer erase an earlier B-Book gain or loss?
It should not. Earlier market movements remain attributed to their original segment; later movements are assigned according to the allocation that applies afterwards.
See the workflow in BrokerCNC.
Explore the platform with our team and discuss your MT4/MT5 servers, books and operating priorities.
Book a Live Demo →





