View Single Post
  #127 (permalink)  
Old 04-13-2008, 03:56 PM
Badguy's Avatar
Badguy Badguy is offline
Member
 
Join Date: Jan 2006
Posts: 43
Badguy is on a distinguished road
Global variables?

hi matrixbiz

What's mean with "global scope"? The variables in begin of script to define the parameters of indicators ect?

See attached # 1EA_Test_Template. I need this to test function of scripts.

Let it run in strategytester and it works.
Open Ea with MetaEditor and activate the inactive script after int start()
Now compile and let it run in strategytester, the EA don't trade. See the error message in journal.

Quote:
Originally Posted by matrixebiz View Post
How do you fix a "'CloseHour' - expression on global scope not allowed" error?
Attached Files
File Type: mq4 # 1EA_Test_Template v1.mq4 (12.2 KB, 5 views)
Reply With Quote