Backtests Tested and Running with events

This commit is contained in:
Luis Fernando Molina committed 2019-09-12 10:07:30 +02:00
1 parent e8165368fd
commit 2a88a6da88
6 files changed
+501 -506

No files matched your search

+2 -10
View File
@@ -632,11 +632,7 @@
function checkLoopHealth(pLastLoop) {
let stop = false
if (process.env.STOP_GRACEFULLY !== undefined)
stop = JSON.parse(process.env.STOP_GRACEFULLY)
if (bot.enableCheckLoopHealth === false || stop === true) {
if (bot.enableCheckLoopHealth === false || global.STOP_TASK_GRACEFULLY === true) {
logger.write(MODULE_NAME, "[WARN] run -> loop -> checkLoopHealth -> bot.enableCheckLoopHealth = " + bot.enableCheckLoopHealth);
@@ -672,11 +668,7 @@
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> shallWeStop -> Entering function. "); }
let stop = false
if (process.env.STOP_GRACEFULLY !== undefined)
stop = JSON.parse(process.env.STOP_GRACEFULLY)
if (!stop) {
if (!global.STOP_TASK_GRACEFULLY) {
continueCallBack();
} else {
stopCallBack();