Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I want to save some histories of the optimizations in a CSV file. But sometimes not all deals are written to the file correctly.
For example, maybe one pass had 2000 trades and only 3500 deals were written in the file.
Or sometimes some of the data in a row is missing.
I don't know what is happening exactly.
Is my code wrong?
The OnTester() event flushes the memory before the data is written to the file? Any ideas for this not to happen?
Below is a test code;
Thank you so much!!