Client Terminal Properties
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_LANGUAGE |
Number of the code page of the language installed in the client terminal |
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_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:

© 2000-2010, MetaQuotes Software Corp.