Download MetaTrader 5
To add comments, please log in or register
Have you just installed MetaTrader 5? Learn it in details!
pixsi
9
pixsi 2016.03.21 06:06 

I try a lot to make a simple ExpertAdvisor that make a .csv file,

that contains all the close values of all bars of any symbol/currency that I run in the tester.

So that when the EA finish, it export a  .csv file with all close price values.

 

I read many web sites of diferent functions (FileOpen, FileWrite, FileClose, FileSeek and FileFlush),

but I didn't achive that the EA export a  .csv file with all close price values.

 

Could anybody please help me to give me a little and clear example of an EA

and explain me where can I find the .csv??

 

Thank you very much in advance !

Keith Watford
Moderator
7896
Keith Watford 2016.03.21 06:54  
The tester writes files to MT4\tester\files
pixsi
9
pixsi 2016.03.23 03:55  

GumRai:
The tester writes files to MT4\tester\files

 

I was going crazy. 

Thank you I just didn't know where was the correct folder, but know I found it.

 

 

Keith Watford
Moderator
7896
Keith Watford 2016.03.23 04:03  
It got me at first as well :)
Zirkon
123
Zirkon 2016.03.23 14:31  

However it's documented :-)

The file is opened in the folder of the client terminal in the subfolder MQL4\files (or Tester\Files in case of testing). If FILE_COMMON is specified among flags, the file is opened in a shared folder for all MetaTrader 4 client terminals.

/
To add comments, please log in or register