Running MQL Program Properties
To obtain information about the currently running mql5 program, constants from ENUM_MQL5_INFO_INTEGER and ENUM_MQL5_INFO_STRING are used.
For function MQL5InfoInteger
Identifier |
Description |
Type |
MQL5_PROGRAM_TYPE |
Type of the mql5 program |
|
MQL5_DLLS_ALLOWED |
The permission to use DLL for the given executed program |
bool |
MQL5_TRADE_ALLOWED |
The permission to trade for the given executed program |
bool |
MQL5_DEBUGGING |
The flag, that indicates the debug mode |
bool |
MQL5_TESTING |
The flag, that indicates the tester process |
bool |
MQL5_OPTIMIZATION |
The flag, that indicates the optimization process |
bool |
MQL5_VISUAL_MODE |
The flag, that indicates the visual tester process |
bool |
For function MQL5InfoString
Identifier |
Description |
Type |
MQL5_PROGRAM_NAME |
Name of the mql5-program executed |
string |
MQL5_PROGRAM_PATH |
Path for the given executed program |
string |
Information about the type of the running program, values of ENUM_PROGRAM_TYPE are used.
Identifier |
Description |
PROGRAM_SCRIPT |
Script |
PROGRAM_EXPERT |
Expert |
PROGRAM_INDICATOR |
Indicator |
Example:
ENUM_PROGRAM_TYPE mql_program=(ENUM_PROGRAM_TYPE)MQL5InfoInteger(MQL5_PROGRAM_TYPE); |
© 2000-2010, MetaQuotes Software Corp.
