From a7205d6c2f47f0026899aa7e692f3bbb46383ce3 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 4 Jun 2019 17:24:38 +0200 Subject: [PATCH] Refactoring and Cleaning --- Commons.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Commons.js b/Commons.js index dc03865af..1cf7da350 100644 --- a/Commons.js +++ b/Commons.js @@ -100,7 +100,6 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { /* Building records */ - let record; let sellRate = 0; let sellAmount = 0; let sellInstant; @@ -873,7 +872,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { // Since we are going to write the message to a file that the Simulation Executor is going to read, we use the abbreviations. let messageType; let message; - let record; + let simulationRecord; let orderRecord; messageId++; @@ -938,7 +937,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { "") } - record = { + simulationRecord = { begin: candle.begin, end: candle.end, type: type, @@ -968,7 +967,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { sellAmount: sellAmount } - recordsArray.push(record); + recordsArray.push(simulationRecord); previousStopLoss = stopLoss;