User model represents a client or trader in the MetaTrader 5 platform, containing personal information, credentials, and account settings.
Properties
The user’s login number (unique identifier)
The user’s full name
The trading group the user belongs to
User’s leverage ratio (e.g., 100 for 1:100 leverage)
User’s trading password
User’s investor (read-only) password
User access rights (bitfield)
User’s email address
User’s city
User’s phone number
Password for phone trading
User account status
User’s state/province
User’s street address
Additional comments or notes about the user
User’s postal/ZIP code
Agent account number if user has an agent
User’s identification number
Registration date
Example
Methods
The User model provides getter and setter methods for all properties:getLogin()/setLogin($login)- Get/set the user logingetName()/setName($name)- Get/set the user namegetGroup()/setGroup($group)- Get/set the trading groupgetLeverage()/setLeverage($leverage)- Get/set the leveragegetPassword()/setPassword($password)- Get/set the passwordgetPasswordInvestor()/setPasswordInvestor($password_investor)- Get/set investor passwordgetRights()/setRights($rights)- Get/set user rightsgetEmail()/setEmail($email)- Get/set the emailgetCity()/setCity($city)- Get/set the citygetPhone()/setPhone($phone)- Get/set the phone numbergetPhonePassword()/setPhonePassword($phone_password)- Get/set phone passwordgetStatus()/setStatus($status)- Get/set the statusgetState()/setState($state)- Get/set the stategetAddress()/setAddress($address)- Get/set the addressgetComment()/setComment($comment)- Get/set commentsgetZipcode()/setZipcode($zipcode)- Get/set the zipcodegetAgentAccount()/setAgentAccount($agent_account)- Get/set agent accountgetIdNumber()/setIdNumber($id_number)- Get/set ID numbergetRegDate()/setRegDate($reg_date)- Get/set registration date