So, Instead of looking at my account balance everyday for my EA, I would like to create a text file with the relevant information.
Problem: When I backtest, the file is being saved at : C:\Users\Chiji\AppData\Roaming\MetaQuotes\Tester\***MY_HEX_KEY***\Agent-127.0.0.1-3000\MQL5\Files
I would like to save the file in C:\Chiji\AccountHist\
How do I specify file save location?
It works, and it creates the file with account date and account balance, just as desired, but it is just in the wrong location.
If you check the documentation
Using the Shared Folder of All of the Client Terminals #
All testing agents are isolated from each other and from the client terminal: each agent has its own folder in which its logs are recorded. In addition, all file operations during the testing of the agent occur in the folder agent_name/MQL5/Files. However, we can implement the interaction between the local agents and the client terminal through a shared folder for all of the client terminals, if during the file opening you specify the flag FILE_COMMON:
https://www.mql5.com/en/docs/runtime/testing#common_folder
- www.mql5.com
If you check the documentation
Using the Shared Folder of All of the Client Terminals #
All testing agents are isolated from each other and from the client terminal: each agent has its own folder in which its logs are recorded. In addition, all file operations during the testing of the agent occur in the folder agent_name/MQL5/Files. However, we can implement the interaction between the local agents and the client terminal through a shared folder for all of the client terminals, if during the file opening you specify the flag FILE_COMMON:
https://www.mql5.com/en/docs/runtime/testing#common_folder
yes but how do I specify an exact file location?
From what I am understanding, there are only 2 choices,
1) Each agents folder, The folder agent_name/MQL5/Files. (Pretty much where I can see my own txt file.)
2) The file path in the common folder of all client terminals \Terminal\Common\Files.
There is no method of specifying another separate folder.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
So, Instead of looking at my account balance everyday for my EA, I would like to create a text file with the relevant information.
Problem: When I backtest, the file is being saved at : C:\Users\Chiji\AppData\Roaming\MetaQuotes\Tester\***MY_HEX_KEY***\Agent-127.0.0.1-3000\MQL5\Files
I would like to save the file in C:\Chiji\AccountHist\
How do I specify file save location?
It works, and it creates the file with account date and account balance, just as desired, but it is just in the wrong location.