J Sky:
When I attach my EA to the chart it can create and read files no problem.
In the tester, I can create files, but when trying to read them I get ERR_CANNOT_OPEN_FILE.
- Files are at “«DataFolder»\MQLx\Files”.
- In the tester, files are at “«DataFolder»\MQLx\Tester\Files”.
- Files are at “«DataFolder»\MQLx\Files”.
- In the tester, files are at “«DataFolder»\MQLx\Tester\Files”.
Hi yes I know they are created there but then I can't open them. I can navigate to the tester files folder and see the created files, but then when trying to read the files, FileOpen deletes the files and returns error code ERR_CANNOT_OPEN_FILE.
Hi yes I know they are created there but then I can't open them. I can navigate to the tester files folder and see the created files, but then when trying to read the files, FileOpen deletes the files and returns error code ERR_CANNOT_OPEN_FILE.
Files are deleted by the tester.
If you need to use persistent data files for multiple backtests, use the attribute FILE_COMMON.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone,
When I attach my EA to the chart it can create and read files no problem.
In the tester, I can create files, but when trying to read them I get ERR_CANNOT_OPEN_FILE.