Automated Backtest fails to create Report
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Most of the time (~75%+) of the time, the backtest report will be generated correctly, but other times, the report will simply not be created, and no information can be found in the logs about failing to write the reports.
- 2021.10.14
- www.mql5.com
I do hundreds of optimizations and thousands of single runs. I don't encounter such a problem, but the implementation is not through JavaScript.
Thanks for your reply! May I ask how do you start the MT5 platform when performing a single run?
Edit: I would also add that this issue never happened for an optimization, only for single pass backtestsThanks for your reply! May I ask how do you start the MT5 platform when performing a single run?
Edit: I would also add that this issue never happened for an optimization, only for single pass backtestsAbsolutely all information (open source code) is at the link given above. Try it through an automatic translator.
Hello everyone, I'm running into an issue and was wondering if others have seen this issue.
I run lots of automated backtests with these settings in my .ini file that starts the backtest from my Node.js script :
Most of the time (~75%+) of the time, the backtest report will be generated correctly, but other times, the report will simply not be created, and no information can be found in the logs about failing to write the reports.
Since some of these backtest can last a long time, it is quite frustrating to deal with this. Anybody has had issues with that?
This is how I start MT5 from my Node.js script :
startBacktest(iniFilePath) { return new Promise((resolve, reject) => { exec(`"${GlobalConfig.getTerminalPath()}" /portable /config:"${iniFilePath}"`, (error, stdout, stderr) => { if (error) { console.log('Backtest failed'); reject(error); } else { console.log('Backtest completed successfully'); resolve(stdout); } }); }); }