Group model represents a trading group configuration in the MetaTrader 5 platform. Groups define default settings and permissions for users.
Properties
The unique name of the trading group
The base currency for the group (e.g., “USD”, “EUR”)
The default leverage ratio for users in this group (e.g., 100 for 1:100 leverage)
Example
Group Naming Convention
Group names in MT5 typically follow a hierarchical structure using backslashes:demo\standard- Standard demo accountsdemo\vip- VIP demo accountsreal\standard- Standard real accountsreal\pro- Professional real accounts
Methods
The Group model provides getter and setter methods for all properties:getName()/setName($name)- Get/set the group namegetCurrency()/setCurrency($currency)- Get/set the base currencygetDefaultLeverage()/setDefaultLeverage($default_leverage)- Get/set the default leverage
Usage Example
Common Use Cases
Retrieving Group Information
Groups are typically used to:- Define default trading conditions for users
- Set leverage limits
- Configure currency settings
- Organize accounts by type (demo, real, VIP, etc.)