Click on the automated links underneath your post to get an answer: https://www.mql5.com/en/forum/11189#comment_452517
![File error 5004 File error 5004](https://c.mql5.com/36/79/file-error-5004.jpg)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I wrote an expert that saves the information of my trades in a text file every few seconds.
It works fine in the first few hours, but after a while it gives error 5004.
My code:
What do you think is the problem? Why should it stop working after a few hours and keep giving error 5004?