- eatrader1231231231231233r5235134: I am trying to read in the log file from the strategy tester by
eatrader1231231231231233r5235134: Is it actually allowed to read from this folder as writing is restricted to the Sandbox files folderYou can't read (or write) outside the sandbox with normal code.
For security reasons, work with files is strictly controlled in the MQL5 language. Files with which file operations are conducted using MQL5 means, cannot be outside the file sandbox.
FileOpen - File Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5File Write Problem (Error: 5002) - Expert Advisors and Automated Trading - MQL5 programming forum #1-2 (2020)
and FolderDelete using TERMINAL_DATA_PATH - General - MQL5 programming forum (2017) -
There are two ways around this, but you still can't read the logs correctly because of the caching.
Can a file that exists outside of the MetaTrader folders be opened? - MQL4 programming forum #1-#3 (2020)
File Path for saving .csv files in MT5 - MQL5 programming forum (2019)
File Operations via WinAPI - MQL4 Articles (2008)Stop trying. Have your code write its own file with whatever data you want.
-
You can't read (or write) outside the sandbox with normal code.
File Write Problem (Error: 5002) - Expert Advisors and Automated Trading - MQL5 programming forum #1-2 (2020)
and FolderDelete using TERMINAL_DATA_PATH - General - MQL5 programming forum (2017) -
There are two ways around this, but you still can't read the logs correctly because of the caching.
Can a file that exists outside of the MetaTrader folders be opened? - MQL4 programming forum #1-#3 (2020)
File Path for saving .csv files in MT5 - MQL5 programming forum (2019)
File Operations via WinAPI - MQL4 Articles (2008)Stop trying. Have your code write its own file with whatever data you want.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, I am trying to read in the log file from the strategy tester by
The documentation of FileOpen says that the way I try it is incorrect but I don't know how to access the path otherwise? Is it actually allowed to read from this folder as writing is restricted to the Sandbox files folder