diff --git a/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js b/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js index 2846c34f4..3c2b8254c 100644 --- a/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js +++ b/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js @@ -1,4 +1,4 @@ -exports.newSuperalgosProcessModulesStatusDependencies = function (processIndex, PROCESS_OUTPUT) { +exports.newSuperalgosProcessModulesStatusDependencies = function (processIndex) { const MODULE_NAME = "Status Dependencies"; @@ -46,7 +46,7 @@ for (let i = 0; i < dependenciesToProcess.length; i++) { - let statusReportModule = STATUS_REPORT.newSuperalgosProcessModulesStatusReport(processIndex, PROCESS_OUTPUT); + let statusReportModule = STATUS_REPORT.newSuperalgosProcessModulesStatusReport(processIndex); TS.projects.superalgos.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE.write(MODULE_NAME, "[INFO] initialize -> onInitilized -> Initializing Status Report # " + (i + 1)); let statusDependency = dependenciesToProcess[i] diff --git a/Projects/Superalgos/TS/Process-Modules/StatusReport.js b/Projects/Superalgos/TS/Process-Modules/StatusReport.js index 1d8b008a8..9c8b96041 100644 --- a/Projects/Superalgos/TS/Process-Modules/StatusReport.js +++ b/Projects/Superalgos/TS/Process-Modules/StatusReport.js @@ -1,4 +1,4 @@ -exports.newSuperalgosProcessModulesStatusReport = function (processIndex, PROCESS_OUTPUT) { +exports.newSuperalgosProcessModulesStatusReport = function (processIndex) { /* diff --git a/TaskServer/IndicatorBot.js b/TaskServer/IndicatorBot.js index 703942abd..da1b584fd 100644 --- a/TaskServer/IndicatorBot.js +++ b/TaskServer/IndicatorBot.js @@ -104,9 +104,6 @@ /* We tell the UI that we are running. */ TS.projects.superalgos.functionLibraries.processFunctions.processHeartBeat(processIndex) - /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const PROCESS_OUTPUT = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'ProcessOutput'); - /* We define the datetime for the process that we are running now. This will be the official processing time for both the infraestructure and the bot. */ TS.projects.superalgos.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME = new Date(); // This will be considered the process date and time, so as to have it consistenly all over the execution. @@ -227,7 +224,7 @@ function initializeStatusDependencies() { try { - statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, PROCESS_OUTPUT); + statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex); statusDependencies.initialize(onInizialized); function onInizialized(err) { diff --git a/TaskServer/SensorBot.js b/TaskServer/SensorBot.js index 6edc01fc0..91d4a8579 100644 --- a/TaskServer/SensorBot.js +++ b/TaskServer/SensorBot.js @@ -109,9 +109,6 @@ /* We tell the UI that we are running. */ TS.projects.superalgos.functionLibraries.processFunctions.processHeartBeat(processIndex) - /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const PROCESS_OUTPUT = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'ProcessOutput'); - /* We define the datetime for the process that we are running now. This will be the official processing time for both the infraestructure and the bot. */ TS.projects.superalgos.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME = new Date(); // This will be considered the process date and time, so as to have it consistenly all over the execution. @@ -232,7 +229,7 @@ function initializeStatusDependencies() { try { - statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, PROCESS_OUTPUT); + statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex); statusDependencies.initialize(onInizialized); function onInizialized(err) { diff --git a/TaskServer/TradingBot.js b/TaskServer/TradingBot.js index f189fd875..b5d94502b 100644 --- a/TaskServer/TradingBot.js +++ b/TaskServer/TradingBot.js @@ -68,9 +68,6 @@ /* We tell the UI that we are running. */ TS.projects.superalgos.functionLibraries.processFunctions.processHeartBeat(processIndex, undefined, undefined, "Running...") - /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const PROCESS_OUTPUT = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'ProcessOutput'); - /* We define the datetime for the process that we are running now. This will be the official processing time for both the infraestructure and the bot. */ TS.projects.superalgos.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME = new Date(); // This will be considered the process date and time, so as to have it consistenly all over the execution. @@ -214,7 +211,7 @@ function initializeStatusDependencies() { try { - statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, PROCESS_OUTPUT); + statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex); statusDependencies.initialize(onInizialized); function onInizialized(err) {