export a .csv file with an expert advisor
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.
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.
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 !