Click on the automated links underneath your post to get an answer: https://www.mql5.com/en/forum/11189#comment_452517


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?