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];