In MT5 strategy test, the FileOpen() function deletes the files.
Why is this happening and what is the solution, please?
FileOpen() doesn't delete files, they are delete automatically.
You have to use #property tester_file. See documentation.
Thanks for your info.
So in my case to maintain the file "data.csv" I add:
#property tester_file "Data.csv"
But then I still see the file being deleted. What am I doing wrong?
You didn't do anything wrong. As I said it's deleted automatically.
You need to use #property°tester_file, so it will be copied (automatically) again when needed.
What's the problem ?
I also need some help with this automatically file being deleted. How do I use #property°tester_file in order to copy the file I need?
I created a csv file wich is erased every time I run the EA, so I'd like to keep this file in folder.