Global scope means you have incorrect braces {} or parentheses () before that line
like
like
int start(){ if(condition) someStatement(s); } if(condition2) // this line will not compile : }
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
I am using the following lines of code outside of the init, deinit, and start functions and I am receiving the following error for the first line: 'RScriptPath' - expression on global scope not allowed, and the following errors for the second line: '+' - comma or semicolon expected, and, 'CallRScript' - variable not defined. I have used this same statement in other EA's that I have been able to compile and run just fine so I have no idea what is wrong. Maybe the syntax of MQL4 has been changed since my last compile (December 2012).
Any help is appreciated. Thanks.