Download MetaTrader 5

Global variables dont load in strategy tester

To add comments, please log in or register
John Sellmann
2759
John Sellmann 2013.03.21 21:03 

I tested my EA at a friends pc and the global variables show up fine.

 But at my PC it only returns 0. same ea. same set. same time.

 Also they shop up at my pc in demo or real mode. they only dont show up in strategy tester mode 

anyone has an idea? 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties - Documentation on MQL5
Alain Verleyen
Moderator
31133
Alain Verleyen 2013.03.21 21:10  
Amion:

I tested my EA at a friends pc and the global variables show up fine.

 But at my PC it only returns 0. same ea. same set. same time.

 Also they shop up at my pc in demo or real mode. they only dont show up in strategy tester mode 

anyone has an idea? 

Is this helpful ?
John Sellmann
2759
John Sellmann 2013.03.21 21:14  
angevoyageur:
Is this helpful ?
thanks for reply but not really. the ea works fine in demo and real mode just not in strategy tester mode. already installed mt5 on a seperate partition but it didnt help.
Alain Verleyen
Moderator
31133
Alain Verleyen 2013.03.21 21:22  
Amion:
thanks for reply but not really. the ea works fine in demo and real mode just not in strategy tester mode. already installed mt5 on a seperate partition but it didnt help.
Ok, but if you need help, you have to post some details about your problem. Is there any message in journal tab of Startegy Tester ?
John Sellmann
2759
John Sellmann 2013.03.21 21:28  
angevoyageur:
Ok, but if you need help, you have to post some details about your problem. Is there any message in journal tab of Startegy Tester ?

there are no errors in journal only the normal orders. like i said it runs fine in demo/money mode the code seems ok. can the strategy tester be defective? 

 

Demo Acc:

 

 

Strategy tester:

 

Alain Verleyen
Moderator
31133
Alain Verleyen 2013.03.21 21:32  

Have you read the link I post ?

It means that all operations with the global variables of the terminal, during testing, take place outside of the client terminal (in the testing agent).

It means that you can't view Global Variables used by Strategy Tester with this windows (F3).

John Sellmann
2759
John Sellmann 2013.03.21 21:35  
angevoyageur:

Have you read the link I post ?

It means that you can't view Global Variables used by Strategy Tester with this windows (F3).

now i understand ok..... but since i cant see them does my ea use them in strategy tester?
Alain Verleyen
Moderator
31133
Alain Verleyen 2013.03.21 21:44  
Amion:
now i understand ok..... but since i cant see them does my ea use them in strategy tester?

Yes and no :-D.

They use Global Variables but emulated. You can set/get GV in your EA but they are not the same variable that those on terminal.

To add comments, please log in or register