MQL5 File dissapear during testing

 

Hi,

I have an EA which is using a file from dir:

MetaQuotes\Terminal\FE0E65DDB0B7B40DE125080872C34D61\MQL5\Files

During debuging it is working perfectly, but when it comes to testing, the file had to be placed in:

MetaQuotes\Tester\FE0E65DDB0B7B40DE125080872C34D61\Agent-127.0.0.1-3000\MQL5\Files

As the testing starts the file dissapear from this folder and the testing ends with error:

2017.08.26 14:25:08.077 tester stopped because OnInit failed

2017.08.26 14:25:08.077 log file "C:\...\MetaQuotes\Tester\FE0E65DDB0B7B40DE125080872C34D61\Agent-127.0.0.1-3000\logs\20170826.log" written

Due to the non existing file:

MN 0 14:07:26.317 name_of_the_EA (USDCHF,M5) 2017.01.05 00:00:00   Failed to open FileName.csv file, Error code = 5004

Please, could anyone help, how to proceed?

What is the reason?


Thanks a lot.


 
Martin Nohejl:

During debuging it is working perfectly, but when it comes to testing, the file had to be placed in:

MetaQuotes\Tester\FE0E65DDB0B7B40DE125080872C34D61\Agent-127.0.0.1-3000\MQL5\Files

Not it doesn't. You need to use #property tester_file

Please do some searches before opening a new topic.

Reason: