From 9a5183177e71eba047a1eaaede469dc5d98b0893 Mon Sep 17 00:00:00 2001 From: Matias Date: Thu, 8 Aug 2019 07:09:52 -0300 Subject: [PATCH] Reordering sequence --- Run.js | 4 ++++ sequence.json | 29 +++++++++++++++++++++-------- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/Run.js b/Run.js index 03cc89876..06de091d0 100644 --- a/Run.js +++ b/Run.js @@ -29,6 +29,7 @@ process.on('exit', function (code) { let isRunSequence = false; let sequenceStep = 0; +let loopCount = 0; let processedSteps = new Map() if (process.env.RUN_SEQUENCE !== undefined) { isRunSequence = JSON.parse(process.env.RUN_SEQUENCE) @@ -53,6 +54,8 @@ function sequenceExecution(currentStep) { execution.endYear ? process.env.MAX_YEAR = execution.endYear : undefined; execution.month ? process.env.MONTH = execution.month : undefined; execution.beginDatetime ? process.env.BEGIN_DATE_TIME = execution.beginDatetime : undefined; + execution.dataSet ? process.env.DATA_SET = execution.dataSet : undefined; + process.env.CLONE_ID = 1; execution.timePeriod ? process.env.TIME_PERIOD = execution.timePeriod : undefined; @@ -80,6 +83,7 @@ function onExecutionFinish(result, finishStepKey) { } else { setTimeout(function () { console.log("[INFO] onExecutionFinish -> New round for sequence execution started."); + loopCount++; sequenceStep = 0; processedSteps = new Map(); sequenceExecution(sequenceStep); diff --git a/sequence.json b/sequence.json index 27d5df3d4..3e7206562 100644 --- a/sequence.json +++ b/sequence.json @@ -23,6 +23,19 @@ "endYear": 2021, "month": 1 }, + + { + "devTeam": "AAMasters", + "bot": "AABruce", + "mode": "noTime", + "resumeExecution": true, + "type": "Indicator", + "exchangeName": "Poloniex", + "process": "Single-Period-Daily", + "startYear": 2019, + "endYear": 2021, + "month": 1 + }, { "devTeam": "AAMasters", "bot": "AAOlivia", @@ -155,15 +168,15 @@ "timePeriod": "05-min" }, { - "devTeam": "AAMasters", - "bot": "AABruce", - "mode": "allMonths", + "devTeam": "vikingsalerts", + "bot": "bot-vikingsalerts", + "mode": "live", "resumeExecution": true, - "type": "Indicator", + "type": "Trading", "exchangeName": "Poloniex", - "process": "Single-Period-Daily", - "startYear": 2019, - "endYear": 2021, - "month": 1 + "process": "Trading-Process", + "beginDatetime": "2019-08-01T08:00:00.000Z", + "timePeriod": "05-min", + "dataSet": "Multi-Period-Daily" } ]