You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello everyone,
I want to tidy up my EAs and store my functions in libraries.
Example:
EA contains this:
extern int loglevel = 1;
int start() {
}
The library contains the log-Function:
void Log(int level, string txt){
}
However I get the following error when compiling the library:
'loglevel' - variable not defined C:\Programme\MetaTrader 4\experts\libraries\MainLib.mq4 (38, 15)
My question: is it possible, to use a system variable of an EA in an extern library without passing it all the time?