Information about the client terminal can be obtained by two functions: TerminalInfoInteger() and TerminalInfoString(). For parameters, these functions accept values from ENUM_TERMINAL_INFO_INTEGER and ENUM_TERMINAL_INFO_STRING respectively.
Identifier |
Description |
Type |
TERMINAL_BUILD |
The client terminal build number |
int |
TERMINAL_CONNECTED |
Connection to a trade server |
bool |
TERMINAL_DLLS_ALLOWED |
Permission to use DLL |
bool |
TERMINAL_TRADE_ALLOWED |
Permission to trade |
bool |
TERMINAL_EMAIL_ENABLED |
Permission to send e-mails using SMTP-server and login, specified in the terminal settings |
bool |
TERMINAL_FTP_ENABLED |
Permission to send reports using FTP-server and login, specified in the terminal settings |
bool |
TERMINAL_MAXBARS |
The maximal bars count on the chart |
int |
TERMINAL_CODEPAGE |
Number of the code page of the language installed in the client terminal |
int |
TERMINAL_CPU_CORES |
The number of CPU cores in the system |
int |
TERMINAL_DISK_SPACE |
Free disk space for the MQL5\Files folder of the terminal (agent), MB |
int |
TERMINAL_MEMORY_PHYSICAL |
Physical memory in the system, MB |
int |
TERMINAL_MEMORY_TOTAL |
Memory available to the process of the terminal (agent), MB |
int |
TERMINAL_MEMORY_AVAILABLE |
Free memory of the terminal (agent) process, MB |
int |
TERMINAL_MEMORY_USED |
Memory used by the terminal (agent), MB |
int |
TERMINAL_X64 |
Indication of the "64-bit terminal" |
bool |
TERMINAL_OPENCL_SUPPORT |
The version of the supported OpenCL in the format of 0x00010002 = 1.2. "0" means that OpenCL is not supported |
int |
File operations can be performed only in two directories; corresponding paths can be obtained using the request for TERMINAL_DATA_PATH and TERMINAL_COMMONDATA_PATH properties.
Identifier |
Description |
Type |
TERMINAL_LANGUAGE |
Language of the terminal |
string |
TERMINAL_COMPANY |
Company name |
string |
TERMINAL_NAME |
Terminal name |
string |
TERMINAL_PATH |
Folder from which the terminal is started |
string |
TERMINAL_DATA_PATH |
Folder in which terminal data are stored |
string |
TERMINAL_COMMONDATA_PATH |
Common path for all of the terminals installed on a computer |
string |
For a better understanding of paths, stored in properties of TERMINAL_PATH, TERMINAL_DATA_PATH and TERMINAL_COMMONDATA_PATH parameters, it is recommended to execute the script, which will return these values for the current copy of the client terminal, installed on your computer
Example: Script returns information about the client terminal paths
//+------------------------------------------------------------------+ |
As result of the script execution in the Experts Journal you will see a messages, like the following:
