multiple loops should resume

This commit is contained in:
Luis Fernando Molina committed 2020-05-22 14:54:42 +02:00
1 parent 0631cbd16d
commit b9e3652546
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -835,7 +835,8 @@
return;
}
botNeverRan = false;
botNeverRan = false
bot.RESUME = true // From here on, all other loops executions must resume from where we left at this current run.
if (currentTimeFrame > global.dailyFilePeriods[0][0]) {
writeMarketStatusReport(onMarketStatusReport)
+1 -1
View File
@@ -78,7 +78,7 @@ exports.newTradingSimulation = function newTradingSimulation(bot, logger, UTILIT
lastInstantOfTheDay = currentDay.valueOf() + ONE_DAY_IN_MILISECONDS - 1
}
if (variable.isInitialized !== true) {
if (variable.isInitialized !== true || bot.RESUME === false) {
variable.isInitialized = true
variable.episode = {} // An Episode represents each execution of the Simulation