Hi,
Finally, I found the good path for the file by using this
TerminalInfoString(TERMINAL_DATA_PATH)
I find that there is a lot of lack in the MQL5 documentation or it is not intuitive. Hope this can help
Documentation on MQL5: Checkup / TerminalInfoString
- www.mql5.com
TerminalInfoString - Checkup - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
hi,
i have same problem!!! But did not resolved with your help
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
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 :
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