Auto-hedging B-book exposure: when forex brokers should hedge client flow
Learn when forex brokers should auto-hedge B-book exposure, what risk teams should monitor, and how MT5 auto-hedging can reduce net client-flow risk.
B-booking pays when client flow is balanced. The losers fund the winners, you keep the spread, and your net position barely moves. It turns dangerous the moment the book tips one way: gold running long into a CPI or NFP print, every retail account short the same index at the US open, crypto carrying a heavy directional position into a weekend gap, or one IB feeding you correlated flow that all points in the same direction. At that point the real question is not whether you run a B-book, but how much one-sided exposure you are willing to hold before you act.
The short answer
A forex broker should auto-hedge B-book exposure when net client flow exceeds a predefined risk limit for a symbol, group, or book. The broker should not hedge every trade by default. A better model is to internalize normal flow, monitor live net exposure, and hedge only the excess above the broker's tolerance.
Auto-hedging is a risk-control workflow, not a replacement for your risk policy. It enforces the limits you have already set; it does not set them for you. The policy still answers the hard questions (which symbols, which groups, how much exposure you can carry, how aggressively you reduce it). The automation just applies those answers on every tick instead of whenever someone happens to be watching the screen.
What is B-book exposure?
B-book exposure is the broker's market risk created when client trades are internalized instead of passed directly to a liquidity provider. If clients are net long a symbol, the broker is economically short that exposure. The risk is not total volume; it is the net directional imbalance after client positions offset each other.
This distinction matters because gross volume can look alarming while net risk is near zero. A symbol with 500 lots long and 480 lots short carries 20 lots of net exposure, not 980. The offsetting lots cost you nothing but spread; the 20 that do not offset are the position you actually hold against the market.
A simple example. Clients are net long 50 lots of XAUUSD. The broker's tolerance is 30 lots. The excess is 20 lots. The broker may hedge the 20-lot excess to a cover account, leaving 30 lots of internalized exposure inside the band it has chosen to keep.
Why manual B-book hedging breaks
Most desks start with a manual process: a dealer watches exposure, and when a number looks too big, they place an offsetting trade. It works until the book gets busy, and then it fails in predictable ways.
- Exposure changes faster than the risk desk can react. A news candle can move your net position by tens of lots in seconds, long before a human reads the screen and decides.
- Multiple MT5 groups can hide aggregate exposure. A symbol that looks balanced in one group can be heavily one-sided once you sum every group on the book.
- Symbol naming creates mistakes. XAUUSD.p versus GOLD, or US100.cash versus NAS100, are easy to confuse when you are reading exposure under pressure.
- Manual thresholds are applied inconsistently. Two dealers will tolerate different levels of risk, and the same dealer will tolerate more on a slow afternoon than during a release.
- Reconciliation lags behind client activity. By the time the back office reconciles, the exposure that triggered the concern has already changed.
- If clients close positions and the hedge is not adjusted, the broker can become over-hedged. The hedge that protected you ten minutes ago is now a fresh position pointing the wrong way.
Manual oversight is not the problem. Manual reaction time is, and that is the part a rules engine handles better than a person.
When should brokers auto-hedge B-book exposure?
Auto-hedging earns its place in specific, definable conditions. These are the triggers worth wiring into a rules engine.
When net exposure exceeds a per-symbol limit
Each symbol should have its own long and short exposure limits. Gold, crypto, indices, and major FX pairs do not share a risk profile, so they should not share a threshold. A single global limit is too loose for the volatile symbols and too tight for the quiet ones. Separate long and short limits matter too, because a book that can tolerate being short gold may not tolerate being long it.
During scheduled high-risk windows
Some risk is on the calendar. CPI, NFP, FOMC, the market open and close, weekends, holidays, and thin overnight sessions are all windows where the same net position carries more tail risk than it does mid-session. A sensible policy tightens thresholds automatically around these windows rather than relying on someone to remember to do it before a Friday close.
When exposure is concentrated by client, IB, group, or strategy
One correlated source of flow is riskier than many unrelated clients. Fifty independent accounts that happen to net long are a statistical position. Fifty accounts copying one signal provider, or all introduced by the same IB, are a single position wearing fifty logins. Exposure concentrated by client, IB, group, or strategy deserves a tighter limit, because it moves together and unwinds together.
When liquidity is still available
Hedge while you can still get filled at a sane price. If you wait until LP spreads are already extreme or the market has gone thin, the hedge costs more and may only fill partially. The point of monitoring live exposure is to act before conditions degrade, not to discover the problem at the same moment the market does.
When the cover account has enough margin
Auto-hedging only works if the cover account can execute and hold the hedge. A rule that fires when there is no margin to back it produces rejected orders and a false sense of protection. Cover-account margin is a precondition for hedging, which means it has to be monitored as closely as the exposure itself.
Should brokers hedge all B-book trades?
No, not by default. It helps to separate three distinct postures:
- Hedge every trade. Each internalized position is immediately offset on the cover account.
- Hedge no trades. The book carries all client exposure, capped only by leverage and stop-outs.
- Hedge only the excess above a threshold. Normal flow stays internalized; only the part above your tolerance is hedged.
Most B-book brokers should not auto-hedge every trade. If every internalized position is immediately hedged, the broker may recreate A-book economics while adding operational complexity. You give up the spread capture and the losing flow that make the B-book worth running, and you pay execution costs and carry hedge plumbing for the privilege. A better model is threshold-based hedging: keep normal internalized exposure inside tolerance and hedge only the excess. You keep the margin on the flow you can absorb, and you cap the tail on the part of the book that has run too far in one direction. For the wider picture of execution and leverage controls that sit alongside this, see our guide to MT5 for broker back offices.
What should a B-book risk dashboard show?
Before automating anything, the desk needs to see the right numbers. A monitoring view that drives hedging decisions should surface these.
| Metric | Why it matters |
|---|---|
| Net exposure by symbol | The core number. Net directional risk per instrument, not gross volume. |
| Long and short limits | The thresholds each symbol is measured against, set separately per direction. |
| Current hedge size | How much is already offset on the cover account right now. |
| Hedge gap | The difference between target hedge and actual hedge. The number that triggers action. |
| Group/book breakdown | Where the exposure lives, so a one-sided group is not hidden by a balanced total. |
| Symbol mapping | Which client symbol maps to which cover symbol, so hedges land on the right instrument. |
| Cover-account margin | Whether the account can actually execute and hold the next hedge. |
| Last hedge action | What was hedged, when, in what size, and by which rule. |
| Rejected or partial hedge orders | Failed protection that needs attention, not silent gaps in coverage. |
| Reconciliation status | Whether the displayed exposure matches the server after restarts or network blips. |
| Audit log | A record of what triggered each hedge and what rule changed, for compliance and review. |
What can go wrong with auto-hedging?
Automation removes reaction-time risk and adds a different class of risk: a wrong rule executes faster than any human would. These are the failure modes to test for before you let a system trade your cover account.
Wrong symbol mapping
If XAUUSD.p maps to the wrong LP symbol, every hedge lands on the wrong instrument. The dashboard shows a hedge, the exposure looks covered, and you are actually carrying the original position plus a new one elsewhere. Bad mapping produces false confidence, which is worse than a visible gap.
Wrong hedge direction
If clients are net long and the broker is economically short, the hedge has to buy, not sell. Direction is the single easiest thing to get backwards in configuration, so test it deliberately, both ways, before it runs on live flow. A reversed hedge doubles the exposure instead of reducing it.
Over-hedging
If clients close positions and the hedge stays open, the broker creates a new exposure in the opposite direction. Auto-hedging has to scale down as exposure falls, not only scale up as it rises.
Hedge churn
If limits are too tight or the cooldown too short, the system places too many hedge trades, opening and closing around the threshold as exposure wobbles. Each round trip costs spread and commission. A minimum hedge size and a cooldown between orders keep the system from reacting to noise.
Insufficient margin or failed execution
Hedge orders can be rejected, partially filled, or refused because the market is closed or the cover account is short of margin. The system has to detect these outcomes and surface them, not assume a hedge filled just because it was sent. An unnoticed partial fill is an uncovered position you believe is covered.
Weak audit trail
When a hedge fires, you need to answer four questions later: what triggered it, what rule changed and when, who changed it, and whether the order filled. Maintaining documented, written risk controls is a baseline expectation for regulated dealers under NFA guidance, and an audit trail is how you evidence it.
A practical auto-hedging policy template
A workable policy is concrete and per-symbol. The example below is one row of what should be a table covering every instrument you internalize.
| Field | Example |
|---|---|
| Symbol | XAUUSD |
| Included groups | B-book retail standard |
| Excluded groups | A-book, staff, test accounts |
| Long exposure limit | 30 lots |
| Short exposure limit | 25 lots |
| Hedge ratio above limit | 100% of excess |
| Minimum hedge order | 1 lot |
| Hedge cooldown | 30 seconds |
| Client symbol | XAUUSD.p |
| Cover symbol | GOLD |
| Cover account | LP hedge account |
| News override | Reduce threshold by 50% |
| Weekend override | Reduce threshold by 70% |
| Manual override | Senior risk manager only |
| Review cadence | Weekly and post-incident |
The discipline is in the details: excluded groups keep test and staff accounts out of the exposure number, the cooldown and minimum order size prevent churn, and the overrides encode the high-risk windows so nobody has to remember them.
Rollout plan: monitor-only before auto-hedge
Do not switch on automated hedging across the whole book on day one. Earn trust in the rules first, the same way a phased CRM migration proves each stage before cutover.
- Connect your B-book groups.
- Map symbols between the client book and the cover account.
- Set test limits per symbol.
- Run in monitor-only mode, generating suggested hedges without placing them.
- Compare the suggested hedges with what the desk would have done.
- Enable auto-hedging for one or two liquid symbols only.
- Add alerts and exception handling for rejected, partial, and failed orders.
- Expand gradually by group and symbol.
- Review hedge cost and incidents weekly, and adjust thresholds.
Monitor-only is the most valuable step, because it shows where your rules disagree with your desk before any money is at stake. A week of agreement means a calibrated policy; disagreement means you have found a bug in your thresholds, not in the market.
What to ask before choosing an auto-hedging tool
Build or buy, these are the questions that separate a real risk tool from a static dashboard.
- Can it calculate live net exposure by symbol, group, and book?
- Can it set separate long and short limits per symbol?
- Can it hedge only the excess above the threshold, not every trade?
- Does it support client-symbol to cover-symbol mapping?
- Does it support monitor-only mode?
- Does it include cooldowns between hedge orders?
- Does it reconcile after restarts or network issues?
- Does it show failed, rejected, or partially filled hedge orders?
- Can rules be changed without restarting the server?
- Does it provide an audit trail?
- Can it support multiple MT5 groups or servers?
- Can risk managers override automation during abnormal market conditions?
A tool that answers yes to all twelve is a risk system. One that only shows a net exposure number and leaves the rest to you is a report, not a control.
Where BrokerTech fits
BrokerTech's B-Book Risk Manager is a server-side MetaTrader 5 plugin that gives brokers live visibility into B-book exposure and the option to reduce it automatically. It monitors net long and short exposure by symbol, account group, and book; supports per-symbol limits; can run in monitor-only or auto-hedge mode; maps client-book symbols to cover-account symbols; includes hedge cooldowns; and periodically re-checks exposure after restarts or network issues. The same client and IB records it works against are the ones your CRM and back office already manage, so exposure control sits inside your operations rather than beside them.
Book a demo to see how BrokerTech can map your B-book groups, symbols, limits, and cover account into a live risk-management workflow. You can start in monitor-only mode and switch on hedging when the rules have proven themselves on your own flow.
Frequently asked questions
What is B-book exposure?
B-book exposure is the broker's market risk from internalized client positions. If clients are net long a symbol, the broker is economically short that exposure. The important number is not gross volume, but net directional exposure after client long and short positions offset.
When should a broker auto-hedge B-book exposure?
A broker should auto-hedge when net exposure exceeds a predefined limit for a symbol, group, or book. The safest model is usually threshold-based: internalize normal flow within tolerance and hedge only the excess exposure above the limit.
Should a B-book broker hedge every trade?
Usually no. Hedging every trade can recreate A-book economics while adding operational complexity. Many brokers prefer to hedge only when exposure exceeds a risk threshold, especially on volatile symbols or during high-risk market windows.
What does an MT5 auto-hedging plugin do?
An MT5 auto-hedging plugin monitors client-book exposure, checks it against configured limits, maps client symbols to cover-account symbols, and can place hedge trades automatically when exposure exceeds the broker's threshold.
What can go wrong with auto-hedging?
Common problems include wrong symbol mapping, wrong hedge direction, over-hedging, excessive hedge churn, insufficient cover-account margin, rejected hedge orders, stale exposure data, and missing audit logs.