export a .csv file with an expert advisor

Back to topics list To post a new topic, please log in or register
avatar
2
pixsi 2016.03.21 07: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 !

avatar
Moderator
3406
GumRai 2016.03.21 07:54 #
 
The tester writes files to MT4\tester\files
avatar
2
pixsi 2016.03.23 04: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.

 

 

avatar
Moderator
3406
GumRai 2016.03.23 05:03 #
 
It got me at first as well :)
avatar
125
zirkoner 2016.03.23 15: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.


Back to topics list  

To add comments, please log in or register