Download MetaTrader 5

expression on global scope not allowed.

To add comments, please log in or register
Kiran Chandekar
1473
Kiran Chandekar  

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 

Simon Gniadkowski
Moderator
18003
Simon Gniadkowski  
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
Kiran Chandekar
1473
Kiran Chandekar  
RaptorUK:
This is the mql5 forum . . . mql4/MT4 specific queries should be posted at the mql4 forum  
Done thanks
Arturo Lopez Perez
162805
Arturo Lopez Perez  
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 }.

To add comments, please log in or register