diff --git a/.vs/AAOlivia/v15/.suo b/.vs/AAOlivia/v15/.suo index ba82208a3..d8f6b9432 100644 Binary files a/.vs/AAOlivia/v15/.suo and b/.vs/AAOlivia/v15/.suo differ diff --git a/Multi-Period-Daily/Interval.js b/Multi-Period-Daily/Interval.js index ead80db00..248159bfc 100644 --- a/Multi-Period-Daily/Interval.js +++ b/Multi-Period-Daily/Interval.js @@ -107,13 +107,9 @@ Read the candles and volumes from Bruce and produce a single Index File for each let periods = '[' + - '[' + 55 * 60 * 1000 + ',' + '"55-min"' + ']' + ',' + - '[' + 50 * 60 * 1000 + ',' + '"50-min"' + ']' + ',' + '[' + 45 * 60 * 1000 + ',' + '"45-min"' + ']' + ',' + '[' + 40 * 60 * 1000 + ',' + '"40-min"' + ']' + ',' + - '[' + 35 * 60 * 1000 + ',' + '"35-min"' + ']' + ',' + '[' + 30 * 60 * 1000 + ',' + '"30-min"' + ']' + ',' + - '[' + 25 * 60 * 1000 + ',' + '"25-min"' + ']' + ',' + '[' + 20 * 60 * 1000 + ',' + '"20-min"' + ']' + ',' + '[' + 15 * 60 * 1000 + ',' + '"15-min"' + ']' + ',' + '[' + 10 * 60 * 1000 + ',' + '"10-min"' + ']' + ',' + @@ -391,24 +387,8 @@ Read the candles and volumes from Bruce and produce a single Index File for each try { - /* - - Firstly we prepere the arrays that will accumulate all the information for each output file. - - */ - - let outputCandles = []; - let outputVolumes = []; - - for (n = 0; n < outputPeriods.length; n++) { - - const emptyArray1 = []; - const emptyArray2 = []; - - outputCandles.push(emptyArray1); - outputVolumes.push(emptyArray2); - - } + let outputCandles; + let outputVolumes; advanceTime(); @@ -435,6 +415,25 @@ Read the candles and volumes from Bruce and produce a single Index File for each } + /* + + We prepere the arrays that will accumulate all the information for each output file. + + */ + + outputCandles = []; + outputVolumes = []; + + for (n = 0; n < outputPeriods.length; n++) { + + const emptyArray1 = []; + const emptyArray2 = []; + + outputCandles.push(emptyArray1); + outputVolumes.push(emptyArray2); + + } + periodsLoop(); } diff --git a/this.bot.config.json b/this.bot.config.json index 48c155288..0244a5323 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -26,6 +26,27 @@ }, "intervalLapse": 3600000, "intervalMaxLoops": -1 + }, + { + "name": "Multi-Period-Daily", + "description": "Produces different files with multi-period candles and volumes on a daily format.", + "startMode": { + "allMonths": { + "run": "false", + "minYear": "", + "maxYear": "" + }, + "oneMonth": { + "run": "false", + "year": "", + "month": "" + }, + "noTime": { + "run": "true" + } + }, + "intervalLapse": 3600000, + "intervalMaxLoops": -1 } ] }