expression on global scope not allowed.

 

Hi Friends,

For MT4 EA I have get passed out of many errors but there is sill many warning message with "expression on global scope not allowed. "

How can I deal with this.  Will this warning message affect my EA.

 

Thanks

kchandek 

 
kchandek:

Hi Friends,

For MT4 EA I have get passed out of many errors but there is sill many warning message with "expression on global scope not allowed. "

How can I deal with this.  Will this warning message affect my EA.

This is the mql5 forum . . . mql4/MT4 specific queries should be posted at the mql4 forum  

Please post your code there and make sure you use the SRC button . . . 

MQL4: automated trading forum
  • www.mql5.com
MQL4: automated trading forum
 
RaptorUK:
This is the mql5 forum . . . mql4/MT4 specific queries should be posted at the mql4 forum  
Done thanks
 
kchandek:

Hi Friends,

For MT4 EA I have get passed out of many errors but there is sill many warning message with "expression on global scope not allowed. "

How can I deal with this.  Will this warning message affect my EA.

 

Thanks

kchandek 

Hi kchandek,

That means you have a variable defined outside a function. It is probably a wrongly closed { or }.