From 89e9b6ed8447c2e4ce38e0219eec4850b773edc9 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 7 Oct 2020 23:41:41 +0200 Subject: [PATCH] Deep Scan Medium Severity --- Multi-Period-Daily/User.bot.js | 6 +++--- Multi-Period-Market/User.bot.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Multi-Period-Daily/User.bot.js b/Multi-Period-Daily/User.bot.js index 3afe0c7ea..bfee3276b 100644 --- a/Multi-Period-Daily/User.bot.js +++ b/Multi-Period-Daily/User.bot.js @@ -274,7 +274,7 @@ Read the candles and volumes from Exchange Raw Data and produce a file for each outputCandles = []; outputVolumes = []; - for (n = 0; n < global.dailyFilePeriods.length; n++) { + for (let n = 0; n < global.dailyFilePeriods.length; n++) { const emptyArray1 = []; const emptyArray2 = []; @@ -589,7 +589,7 @@ Read the candles and volumes from Exchange Raw Data and produce a file for each let fileRecordCounter = 0; let fileContent = ""; - for (i = 0; i < candles.length; i++) { + for (let i = 0; i < candles.length; i++) { let candle = candles[i]; @@ -640,7 +640,7 @@ Read the candles and volumes from Exchange Raw Data and produce a file for each let fileRecordCounter = 0; let fileContent = ""; - for (i = 0; i < volumes.length; i++) { + for (let i = 0; i < volumes.length; i++) { let candle = volumes[i]; diff --git a/Multi-Period-Market/User.bot.js b/Multi-Period-Market/User.bot.js index 1b1055a6a..31d6e930f 100644 --- a/Multi-Period-Market/User.bot.js +++ b/Multi-Period-Market/User.bot.js @@ -392,7 +392,7 @@ let outputCandles = []; let outputVolumes = []; - for (n = 0; n < global.marketFilesPeriods.length; n++) { + for (let n = 0; n < global.marketFilesPeriods.length; n++) { const emptyArray1 = []; const emptyArray2 = []; @@ -799,7 +799,7 @@ let fileRecordCounter = 0; let fileContent = ""; - for (i = 0; i < candles.length; i++) { + for (let i = 0; i < candles.length; i++) { let candle = candles[i]; @@ -849,7 +849,7 @@ let fileRecordCounter = 0; let fileContent = ""; - for (i = 0; i < volumes.length; i++) { + for (let i = 0; i < volumes.length; i++) { let candle = volumes[i];