Download MetaTrader 5

File Function in Tester

To add comments, please log in or register
They are making profit already using Freelance service. You can join them!
Marco Milani
257
Marco Milani 2011.11.23 16:36 

Hi,

 

I have written an EA that need to write ad read data from a text file... when i use in live i have no problem but if i want to use in Tester i have some problems with the Text File...

AT THE END of the test the file is written in :  tester/Agent/MQL5/files/myFile.txt , but if i want start a new test and read data from myFile.txt i can't!! Because the file is deleted at the test start!

 

There is a way to READ a file in the Tester??

 

Thanks a lot and sorry for my bad english!

 

Supermilo 

Marco Milani
257
Marco Milani 2011.11.23 18:11  

Find! i will use FILE_COMMON...

 

Thanks.. 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Input/Output Constants / File Opening Flags
  • www.mql5.com
Standard Constants, Enumerations and Structures / Input/Output Constants / File Opening Flags - Documentation on MQL5
TradeMachine
57
TradeMachine 2011.11.24 10:52  
Supermilo:

Find! i will use FILE_COMMON...

 

Thanks.. 

Hi Supermilo,

see here https://www.mql5.com/en/forum/5276 

It´s a known issue with Build 540. Next Build will solve this.

Best 

To add comments, please log in or register