- An MT5 group is the account type: every account in it inherits the same margin rules, leverage, symbols, commissions, swaps and stop-out level.
- MetaQuotes’ MT4-versus-MT5 comparison for brokers lists a 512 account-group limit on MT4 and no fixed limit on MT5, so MT5 lets you split groups more finely — but only if you name them consistently.
- Build every new group from a reviewed template and a naming pattern such as <code>real\standard\usd</code>, never by cloning whatever group happens to be closest.
- Demo and real groups should mirror each other’s trade conditions while staying strictly separated for routing, reporting and permissions.
- Routing (A-Book, B-Book or hybrid) is decided at group level, so a group move can change your risk exposure as much as a leverage change.
- Treat every edit to a live group as a change request: measure impact, test on a copy, notify clients where needed, apply in a quiet window and log it.
MT5 group configuration in one paragraph
In MetaTrader 5, a group is the container that defines an account type. When you configure a group you set the deposit currency, the default leverage, how margin is calculated, the Margin Call and Stop Out levels, which symbols the accounts can trade, the commissions and swaps they pay, and how their orders are routed. Every account placed in that group inherits those settings, so one change to the group changes trading conditions for every client in it at once. Good MT5 group configuration therefore comes down to three habits: a clear naming convention, a small number of reviewed templates, and a disciplined change process.
MetaQuotes describes the broker side of MT5 as a place where you “assign role-based managers (e.g. accountants, administrators, dealers, risk managers)” and “control trade conditions (margin requirements, contract terms, credit limits, swaps, trade sessions, spreads, markups, commissions…)”. Most of those trade conditions live on groups and on the symbol settings that groups reference.
What an account group controls in MetaTrader 5
Think of a group as a profile with several layers. Some settings are purely commercial (commissions, markups), some are about risk (margin, leverage, Stop Out) and some are operational (routing, reports, permissions). The table summarises the layers most administrators touch, with the question each one answers.
| Setting area | What it decides | Typical admin question |
|---|---|---|
| Deposit currency | The currency of balance, equity and profit for every account in the group | Do we need a separate group per currency (USD, EUR, GBP…)? |
| Leverage | The default account leverage used in margin formulas | Which leverage applies to new accounts, and which clients may request a different one? |
| Margin settings | Margin calculation, margin rates per symbol or symbol group, hedged margin | Does the group use the symbol’s defaults or group-level overrides? |
| Margin Call / Stop Out | The margin levels at which the account is warned and at which positions are closed | Are levels in percent or in money, and do they match the client agreement? |
| Symbols | Which instruments the accounts see and trade, plus spread differences or markups | Should this account type trade crypto CFDs, indices, shares? |
| Commissions | Per-deal or per-volume charges applied to trades | Is this a raw-spread type with commission or a spread-only type? |
| Swaps | Overnight financing applied by symbol, sometimes adjusted per group | Is this a swap-free group, and how is that controlled? |
| Routing | Whether orders are executed internally, sent to a liquidity provider, or split by rules | Is the group A-Book, B-Book or hybrid? |
| Reports and permissions | Which managers can see and change the group; which reports include it | Who is allowed to move accounts in or out of the group? |
Administrator screens are documented by MetaQuotes behind a login, so this guide stays conceptual. The terminal side is public: account properties such as ACCOUNT_LEVERAGE, ACCOUNT_MARGIN_SO_CALL, ACCOUNT_MARGIN_SO_SO and ACCOUNT_MARGIN_SO_MODE (percent or money) are documented in MQL5, and they reflect what the group has set. That makes them a handy way to verify a group change from a test account.
MT5 vs MT4 account groups: limits and differences
Many brokers run both platforms for a while, and group habits carried over from MT4 do not always fit MT5. According to MetaQuotes’ MT4-versus-MT5 comparison for brokers, MetaTrader 4 is limited to 512 account groups, while MetaTrader 5 has no fixed limit. On MT4 that cap pushed brokers to cram several offerings into one group; on MT5 you can afford a group per real business distinction. That freedom is useful, but without naming rules it quickly becomes hundreds of near-identical groups nobody can audit.
| Topic | MetaTrader 4 | MetaTrader 5 |
|---|---|---|
| Number of account groups | Limited to 512 (per MetaQuotes’ broker comparison) | No fixed limit (per the same comparison) |
| Group naming | Flat names, often with prefixes to fake a hierarchy | Path-style names (for example real\pro\usd) that read like folders |
| Position accounting | Hedging only | Netting or hedging, chosen per account setup — worth mirroring in your group names |
| Margin and leverage | Group leverage plus symbol margin settings | Account leverage plus margin rates per order type; floating margin by volume or notional value; floating leverage since build 4150 |
| Automation | Mostly plugins and manual work | Built-in automations can, among other things, update Margin Call and Stop Out levels in group settings |
When you migrate, don’t copy MT4 groups one-to-one: rebuild the catalogue from your actual account types. For a wider platform comparison see MT4 vs MT5 for brokers.
Naming conventions that scale
The single most valuable decision in MT5 group configuration is the naming convention. A good name tells any manager, at a glance, what the group is for, and makes reports and filters work without a lookup table. MT5 group names use backslashes as separators, which lets you build a readable hierarchy.
A practical pattern is environment\brand-or-entity\account-type\currency[\variant]:
real\eu\standard\usd— real accounts, EU entity, standard type, USD deposit currency.real\global\raw\eur\swapfree— raw-spread accounts with a swap-free variant.demo\global\standard\usd— the demo mirror of the real standard group.real\global\standard\usd\bor\a— a routing variant, if your routing is decided by group.test\admin\standard\usd— an internal group for testing changes, never visible to clients.
Rules that keep the pattern honest:
- Fixed order of segments. Environment always comes first, so a filter on
real\*never catches demo accounts. - Lowercase, no spaces, short codes. Agree on a list of codes (
stdorstandard, not both). - One meaning per segment. Don’t encode leverage in one group’s name and commission in another’s.
- No client names or temporary notes in group names. Use a separate register for “why this group exists”.
- Document the convention in your runbook and review new groups against it before they go live.
Keep a group register with each group’s purpose, owner, routing and last change ticket.
Templates: build groups from a reviewed baseline
Most group mistakes come from cloning the nearest existing group and forgetting one inherited setting — a leftover markup, an extra symbol, the wrong Stop Out mode. The fix is to maintain a small set of template groups that are reviewed, documented and never used for live accounts.
- Define one template per account type (for example standard, raw, swap-free, professional) in your test environment or under a
template\prefix. - Write down the intended value for every setting: currency, leverage, margin mode, Margin Call and Stop Out levels and their mode, symbol list, commission rules, swap handling, routing, report inclusion.
- Create new live groups only by copying a template, then change only the segments that differ (currency, entity, routing variant).
- Diff after creation. Export or screenshot the new group and compare it with the template line by line, or use the Manager API to dump settings and compare them automatically.
- Update templates first. When the business changes an account type, change the template, then roll the change out to the live groups built from it.
Symbols deserve special attention: a group’s symbol list usually references symbol groups and individual symbols, so when you add a new symbol you must decide which groups should see it. Doing that from the template register is far safer than remembering it group by group.
Demo vs real groups
Demo groups are not an afterthought: they are where prospects judge your conditions, and where many traders test strategies before funding. Two principles work well.
Mirror conditions. A demo group should offer the same symbols, commissions, swaps, margin rules and Stop Out level as its real counterpart. If demo conditions are looser, clients get a nasty surprise on their first real trade, and your support team inherits the complaints. MetaQuotes documents that when opening a demo account the trader picks leverage from a drop-down the broker provides, so keep the demo leverage list consistent with what you actually offer on real accounts.
Separate everything else. Demo groups must never share routing to liquidity providers, must be excluded from financial and regulatory reports, and should be editable by a wider set of managers than real groups. Prefixing every demo group with demo\ makes those exclusions easy to implement and to verify.
- Check demo and real pairs side by side after every template change.
- Use a separate internal
test\group for administrator testing, so you never experiment on the demo groups prospects use.
Want your MT5 groups reviewed or rebuilt?
Group structures tend to drift as brokers add account types, partners and markets. Our administrators audit existing groups, propose a clean naming and template scheme and migrate accounts without disrupting trading. Choose on-call help for specific tasks, or a part-time or full-time dedicated administrator for your MT4/MT5 servers.
See how hiring an MT5 administrator works or contact us for a free consultation.
Leverage, margin call and stop out in group settings
Risk settings are the part of a group that clients notice most. In MT5 the margin formulas use the account’s leverage — for Forex, MetaQuotes documents margin as Volume × Contract size / Leverage — and the result is additionally multiplied by the margin rate for the order type. Margin rates can also float by volume or by notional value, per symbol or across the account, with the platform checking “within which range the position or order falls” and applying the appropriate rate.
Margin level is calculated as Equity / Margin × 100. When it falls to the group’s Margin Call level the client is warned, and at the Stop Out level positions start to be closed — according to MetaQuotes, the position with the largest loss first, or by FIFO if that rule is enabled. Levels can be expressed in percent or in money, which is exactly what ACCOUNT_MARGIN_SO_MODE reports to the terminal.
Since build 4150, MT5 also supports floating leverage: margin requirements can be adjusted depending on open position volumes, applied “to individual symbols or symbol groups”, and leverage can be reduced, for example, an hour before trading closes. MetaQuotes notes that traders “can view all conditions directly within their terminals”.
Group-level checklist for risk settings:
- Confirm Stop Out mode (percent or money) and that the levels match the client agreement and regulatory limits for each entity.
- Decide whether leverage varies by group or by individual account, and document who may approve exceptions.
- If you use floating margin or floating leverage, record the tiers in the group register so support can explain them.
The detailed formulas and a worked example are in our guide to margin and leverage settings in MT5.
Symbols, commissions and swaps per group
Groups decide which symbols an account sees and often adjust how they are priced and charged. Keep the responsibilities clear: the symbol holds the contract specification, trading sessions and base swap settings; the group decides access and applies group-level differences such as markups, commissions or swap-free handling.
Symbols
Give each account type an explicit symbol list rather than “everything”.
Commissions
Commission rules are typically defined per group and can target symbol groups. Name commission profiles clearly and keep raw-spread and spread-only types in different groups, so reports never mix the two.
Swaps
MT5 supports several swap types (in points, in base, margin or deposit currency, as a percentage of current or open price, and re-open variants), plus a swap multiplier for each day of the week — for example, a Wednesday multiplier of 3 triples the Wednesday-to-Thursday rollover. Swap-free account types are usually implemented as dedicated groups, so they are easy to audit. When rates change, follow the swap rate update procedure and check that swap-free groups were not affected by mistake.
A-Book, B-Book and hybrid routing by group
In many MT5 setups the group is also the routing key. Orders from an A-Book group are passed to a liquidity provider through a gateway, B-Book groups are executed internally, and hybrid groups use rules — for example by symbol, by volume or by client profile — to decide which orders go where.
That makes moving an account between groups a risk decision, not just an admin task. A practical approach many brokers use:
- Make routing visible in the name (an
\a,\bor\hsegment) or at least in the group register. - Restrict who can move accounts between routing variants to dealing or risk managers, and log every move. Our manager permissions guide shows how to scope those rights.
- Review routing rules after symbol changes. A new symbol added to an A-Book group needs a matching route and liquidity, or orders will be rejected.
- Keep client-facing conditions identical across routing variants of the same account type, so routing never becomes visible to clients as different pricing.
Change management checklist for live groups
A group edit is applied to every account in the group, including accounts with open positions. That is why changes to live groups should go through the same discipline as a server change. Use this checklist, or add it to your MT5 admin checklists.
- Define the change. Which group(s), which setting, old value, new value, who requested it and why.
- Measure impact. Count accounts and open positions in the group; for margin or Stop Out changes, estimate how many accounts would move into Margin Call at current prices.
- Check dependencies. Templates, demo mirrors, routing rules, reports, plugins or automations that read group settings.
- Test on a copy. Apply the change to a
test\copy of the group and verify with a test account (for example by readingACCOUNT_LEVERAGEand Stop Out properties from the terminal). - Get approval. Risk, dealing and compliance sign-off for anything client-facing.
- Notify clients where the agreement or regulation requires notice — leverage, margin and Stop Out changes usually do.
- Back up configuration before applying, following your backup and restore procedure.
- Apply in a quiet window, away from high-impact news and session opens, with a named person watching the server.
- Verify and monitor. Re-check the group settings, a sample of accounts, margin levels and the journal for errors over the following hours.
- Log and update the register. Record the ticket, time and outcome, and update the template if the change is permanent.
Where possible, automate the boring parts: MT5 automations can update Margin Call and Stop Out levels in group settings, and scheduled reports can flag groups that drift from their template. See automating MT5 reports.
Common group configuration mistakes
- Cloning the wrong group. Inherited markups, symbols or routing rules end up on a new account type. Always start from a template.
- Demo and real drifting apart. Conditions change on real but not on demo, and prospects see different trading.
- Too many one-off groups. Because MT5 has no fixed limit, it’s tempting to create a group per client request. Prefer account-level exceptions with documented approval, or a reviewed variant.
- Symbols open to every group. New instruments go live on account types they were never priced for.
- Unlogged account moves. Accounts moved between A-Book and B-Book groups with no record of who or why.
If your team doesn’t have the time to maintain a clean group catalogue, an outsourced administrator can audit, document and run it. Our team has deployed 500+ servers for brokers in 50+ countries with 24/7 support — see how to hire an MT5 administrator.
Sources
MetaTrader Administrator is independent and not affiliated with MetaQuotes. Facts are based on public MetaQuotes and MQL5 documentation.
- MetaTrader 5 for brokers — role-based managers, trade conditions and APIs.
- Margin calculation — formulas, margin rates and floating margin.
- Floating leverage announcement — build 4150.
- Performing deals — margin level, Margin Call and Stop Out.
- MQL5 account properties — leverage and Stop Out properties.
- MT5 automations — updating Margin Call and Stop Out levels.
- Opening an account — demo leverage selection.
- Market Watch and symbol specification — swap types and weekday multipliers.
Frequently asked questions
What is a group in MetaTrader 5?
A group is the set of trade conditions that defines an account type on the MT5 server. It holds the deposit currency, leverage, margin rules, Margin Call and Stop Out levels, symbol access, commissions, swap handling and routing. Every account placed in the group inherits those settings.
How many account groups can MT5 have compared with MT4?
According to MetaQuotes’ MT4-versus-MT5 comparison for brokers, MT4 is limited to 512 account groups while MT5 has no fixed limit. In practice the limiting factor on MT5 is your ability to manage and audit groups, which is why a naming convention and a group register matter.
Can a trader change their own group or account type?
No. Groups are assigned by the broker on the server side. A trader who wants different conditions, such as another leverage or a swap-free account, has to ask the broker, who either moves the account to another group or applies an approved account-level exception.
What happens to open positions when I edit a live group?
The new settings apply to every account in the group, including those with open positions. A tighter leverage or higher Stop Out level can push accounts into Margin Call or Stop Out immediately, so measure the impact first and apply the change in a quiet window.
What is a good naming convention for MT5 groups?
Use a fixed order of segments, separated by backslashes, such as environment, entity, account type, currency and optional variant — for example real\eu\standard\usd. Keep codes short and lowercase, and never put client names or temporary notes in group names.
Should demo groups have the same conditions as real groups?
Yes, demo groups should mirror the trade conditions of their real counterparts so prospects see realistic trading. They should still be fully separated for routing, reporting and manager permissions, which is easiest when every demo group starts with a demo\ prefix.
Are Margin Call and Stop Out set per group or per account?
They are normally set at group level and expressed either as a percentage of margin level or as a money amount. The terminal exposes them through account properties such as ACCOUNT_MARGIN_SO_CALL, ACCOUNT_MARGIN_SO_SO and ACCOUNT_MARGIN_SO_MODE, which is a simple way to verify a change.
How do A-Book and B-Book relate to MT5 groups?
Many brokers use the group as the routing key: A-Book groups send orders to liquidity providers, B-Book groups execute internally, and hybrid groups apply rules. Because of that, moving an account between groups can change your risk exposure and should be restricted and logged.
How should swap-free accounts be configured?
Swap-free account types are usually implemented as dedicated groups with their own swap handling, so they can be audited separately. Mark them clearly in the group name and check them after every swap rate update to make sure they were not changed by mistake.
Does floating leverage replace group leverage?
No. Floating leverage, available since build 4150, adjusts margin requirements depending on position volumes for individual symbols or symbol groups, and can reduce leverage before a session closes. It works on top of the account’s leverage, so document the tiers alongside your group settings.
How often should groups be audited?
Many brokers review their group catalogue at least quarterly and after every major product change. An audit compares each live group with its template, checks demo and real mirrors, confirms routing and permissions, and removes groups that no longer hold accounts.
Can group changes be automated in MT5?
Partly. MetaQuotes’ automation feature can, among other things, update Margin Call and Stop Out levels in group settings, and the Manager API lets you build tools that read and compare group configurations. Automated changes should still follow the same approval and logging process as manual ones.