You don't. The indicator goes in the «DataFolder»/Indicators or with the EA.
Thanks William
Let me clarify ...
Indicator is in Indicators\Final Version\iFx VW_3EMAs.mq5
There is a file MQL5\Experts\AKTAdvisor\Auxiliary\Enums.mqh, which I want to include in the Indicator, so how can I define this path as file in Expert Folder and not in Indicators Folder ?
Hope it clarifies the question better.
Regards
Can this be of any help ?
//--- Folder that stores the terminal datastring terminal_data_path=TerminalInfoString(TERMINAL_DATA_PATH);
//--- Common folder for all client terminals
string common_data_path=TerminalInfoString(TERMINAL_COMMONDATA_PATH);
Thanks Dominik Egret
#include "\..\..\Experts\AKTAdvisor\Auxiliary\Enums.mqh"
and it is 'backslash' not 'forward slash' ...
As far as I know, its irrelevant if you use a backslash or forward slash, at least within common environments of windows.
Linux does only use forward slashes on paths and files, since backslash is an indication for an escape-sequence within a string....
...
Your "comment" including variables is with no help.
Include directives and preprocessor macros are processed line by line in linear order. Same as with the C preprocessor. Otherwise things like this wouldn't work:
#define RELEASE_BUILD #ifdef RELEASE_BUILD #include "SimpleLogging.mqh" #else #include "Logging.mqh" #endif
...
As far as I know, its irrelevant if you use a backslash or forward slash, at least within common environments of windows.
Linux does only use forward slashes on paths and files, since backslash is an indication for an escape-sequence within a string....
The path specifier will be passed to the operating system's runtime environment as is. It's up to the OS how to deal with forward or backward slashes.
Windows (since XP afaik) is able to translate forward slashes into native format, which makes path specs with forward slashes more portable.
Include directives and preprocessor macros are processed line by line in linear order. Same as with the C preprocessor. Otherwise things like this wouldn't work:
...
The path specifier will be passed to the operating system's runtime environment as is. It's up to the OS how to deal with forward or backward slashes.
Windows (since XP afaik) is able to translate forward slashes into native format, which makes path specs with forward slashes more portable.
Hi lippmaje / Dominik
Thanks for the useful information. Since I am not a computer software person, but a finance professional with passion for programming, these information are helping me learn more.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear Members
My indicator is in Indicators\Final Version\iFx VW_3EMAs.mq5
There is a file MQL5\Experts\AKTAdvisor\Auxiliary\Enums.mqh, which I want to include into the Indicator. How can I define this path as file is in Expert Folder and not in Indicators Folder ?
#include "C:\Users\Anil Varma\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Experts\AKTAdvisor\Auxiliary\Enums.mqh"
I have tried "\..\Expert\AKTAdvisor\Auxiliary\Enums.mqh" but it did not worked.
thanks in advance for your guidance.