Reordering sequence

This commit is contained in:
Matias committed 2019-08-08 07:09:52 -03:00
1 parent 34eddf6734
commit 9a5183177e
2 files changed
+25 -8

No files matched your search

+4
View File
@@ -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);
+21 -8
View File
@@ -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"
}
]