MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Subscribe to signal
Chemik86
38.22%, 13 821.59 USD
Screenshot
EURUSD, M5
Demo
OpenCL: The Bridge to Parallel Worlds OpenCL: The Bridge to Parallel Worlds FiboCandles Indicator
FiboCandles
Author: GODZILLA
MarginCall Alarm MobileMarginCall Alarm Mobile Try product
MarginCall Alarm Mobile
Author: binnari1120
MQL5 ReferenceLanguage BasicsPreprocessorIncluding Files (#include) 

Including Files (#include)

The #include command line can be placed anywhere in the program, but usually all inclusions are placed at the beginning of the source code. Call format:

#include <file_name>
#include "file_name"

Examples:

#include <WinUser32.mqh>
#include "mylib.mqh"

The preprocessor replaces the line #include <file_name> with the content of the file WinUser32.mqh. Angle brackets indicate that the WinUser32.mqh file will be taken from the standard directory (usually it is terminal_installation_directory\MQL5\Include). The current directory is not visible.

If the file name is enclosed in quotation marks, the search is made in the current directory (which contains the main source file). The standard directory is not visible.

See also

Standard Library, Importing Functions


Updated: 2011.03.04