Skip to content

CAccountInfo

CAccountInfo

CAccountInfo is a class for easy access to the currently opened trade account properties.

Description

CAccountInfo class provides easy access to the currently opened trade account properties.

Declaration

class CAccountInfo : public CObject

Title

#include <Trade\AccountInfo.mqh>

Inheritance hierarchy

CObject

CAccountInfo

Class methods by groups

Access to integer type properties
LoginGets the account number
TradeModeGets the trade mode
TradeModeDescriptionGets the trade mode as a string
LeverageGets the amount of given leverage
StopoutModeGets the mode of stop out setting
StopoutModeDescriptionGets the mode of stop out setting as a string
TradeAllowedGets the flag of trade allowance
TradeExpertGets the flag of automated trade allowance
LimitOrdersGets the maximal number of allowed pending orders
MarginModeGets margin calculation mode
MarginModeDescriptionGets margin calculation mode as a string
Access to double type properties
BalanceGets the balance of account
CreditGets the amount of given credit
ProfitGets the amount of current profit on account
EquityGets the amount of current equity on account
MarginGets the amount of reserved margin
FreeMarginGets the amount of free margin
MarginLevelGets the level of margin
MarginCallGets the level of margin for deposit
MarginStopOutGets the level of margin for Stop Out
Access to text properties
NameGets the client name
ServerGets the trade server name
CurrencyGets the deposit currency name
CompanyGets the company name that serves an account
Access to MQL5 API functions
InfoIntegerGets the value of specified integer type property
InfoDoubleGets the value of specified double type property
InfoStringGets the value of specified string type property
Additional methods
OrderProfitCheckGets the evaluated profit based on the parameters passed
MarginCheckGets the amount of margin required to execute trade operation
FreeMarginCheckGets the amount of free margin left after execution of trade operation
MaxLotCheckGets the maximal possible volume of trade operation

Methods inherited from class CObject

: Prev, Prev, Next, Next, Save, Load, Type, Compare

Last updated on