Download MetaTrader 5
To add comments, please log in or register
Write articles, help other developers and make money
danarag
27
danarag 2013.05.29 08:52 

Hello,

 MT5 in tester mode clears the contents of the folder ...\MQL5\Files\ within the branch ...\AppData\Roaming\Metaquotes\Tester\ just before starting a new test.

 

However, the branch ...\AppData\Roaming\Metaquotes\Terminal\ is always preserved.

 

How can I keep persistent files to be read by MT5 in tester mode from de very start?

 

Thank you. 

 

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
30640
Alain Verleyen 2013.05.29 09:07  
danarag:

Hello,

 MT5 in tester mode clears the contents of the folder ...\MQL5\Files\ within the branch ...\AppData\Roaming\Metaquotes\Tester\ just before starting a new test.

 

However, the branch ...\AppData\Roaming\Metaquotes\Terminal\ is always preserved.

 

How can I keep persistent files to be read by MT5 in tester mode from de very start?

 

Thank you. 

 

Do not install MT5 in a system folder, install it in C:\MT5 for example. Read some topics about UAC issue.
danarag
27
danarag 2013.05.29 09:54  
angevoyageur:
Do not install MT5 in a system folder, install it in C:\MT5 for example. Read some topics about UAC issue.

Thank you for your prompt reply.

 

I have already installed MT5 in C:\ALPARi5 under Windows 7. I think it is not an UAC issue because in terminal mode (no testing), things go alright. Files inside ...\MQL5\Files\ before the start of the expert can be read by the EA in forward terminal mode.

 

Testing mode has a different behaviour. That is the problem. 

Alain Verleyen
Moderator
30640
Alain Verleyen 2013.05.29 10:17  
danarag:

Thank you for your prompt reply.

 

I have already installed MT5 in C:\ALPARi5 under Windows 7. I think it is not an UAC issue because in terminal mode (no testing), things go alright. Files inside ...\MQL5\Files\ before the start of the expert can be read by the EA in forward terminal mode.

 

Testing mode has a different behaviour. That is the problem. 

Ok, if you use main mode of execution then your EA in testing mode don't use directory like "\AppData\Roaming\Metaquotes\Tester\".

Can you show some code or log to explain your issue ?

danarag
27
danarag 2013.05.29 12:42  
angevoyageur:

Ok, if you use main mode of execution then your EA in testing mode don't use directory like "\AppData\Roaming\Metaquotes\Tester\".

Can you show some code or log to explain your issue ?

Thank you for your reply. I ignored the existence of main mode launched with the command line with the parameter /portable.

I have just started to experiment with it. If the issue persists, I will comment back.

Florent
183
Florent 2015.05.13 22:34  

Hello,

I'n actually running MT5 on Linux Ubuntu with Wine but Strategy Tester cannot locates external data file I use : Cannot Read File Error : 5004. I've copy the file in /home/vivaldi/.wine/dosdevices/c:/users/vivaldi/Application Data/MetaQuotes/Terminal and all it's sub-directory but still it cannot read the file :-(

I also started the program in portable mode with vivaldi@vivaldi wine terminal.exe /portable but still the same.

Can somebody please help me ?

Aleksei Beliakov
23815
Aleksei Beliakov 2015.05.14 13:30  
i use wine on ubuntu too but all works fine for me and i confused because my path is program files\mt5\mql5\files
/
To add comments, please log in or register