I'm trying to read a value from a csv file. Everything works fine when I attach the EA on a chart. The problem is only with the strategy tester.
As per the documentation : The file is opened in the folder of the cli ent terminal in the subfolder MQL5\files (or testing_agent_directory\MQL5\files in case of testing).
I tried to put the files in AppData\Roaming\MetaQuotes\Terminal\XXXXXXXXXXXXXXXX\Tester\Files or AppData\Roaming\MetaQuotes\Terminal\XXXXXXXXXXXXXXXX\testing_agent_directory\MQL5\files but I always got the same error (error code 5004).
I also use the following directive in mycode :
#property tester_file "testfile"
Obviously there is something that I don't understand.
My question is what or where is testing_agent_directory\MQL5\file directory.
Can someone help me locate the folder please
Finally, I found the good path for the file by using this
I find that there is a lot of lack in the MQL5 documentation or it is not intuitive. Hope this can help
Please enable the necessary setting in your browser, otherwise you will not be able to log in.