multiple loops should resume
This commit is contained in:
1 parent
0631cbd16d
commit
b9e3652546
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user