Backtesting on the browser must not stop according to config enddate

This commit is contained in:
Luis Fernando Molina committed 2018-06-24 20:26:49 +02:00
1 parent 93e4719e9e
commit 25863e7f7e
1 file changed
+10 -7
+10 -7
View File
@@ -270,15 +270,18 @@
}
if (bot.processDatetime.valueOf() > endDatetime.valueOf()) {
if (global.CURRENT_EXECUTION_AT === "Cloud") {
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> End of Backtesting Period reached. Exiting Bot Process Loop."); }
if (bot.processDatetime.valueOf() > endDatetime.valueOf()) {
logger.persist();
clearInterval(intervalHandle);
clearTimeout(timeoutHandle);
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> End of Backtesting Period reached. Exiting Bot Process Loop."); }
logger.persist();
clearInterval(intervalHandle);
clearTimeout(timeoutHandle);
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
}
}
}
break;