diff --git a/.vs/AAOlivia/v15/.suo b/.vs/AAOlivia/v15/.suo index fad3f7f96..895082a62 100644 Binary files a/.vs/AAOlivia/v15/.suo and b/.vs/AAOlivia/v15/.suo differ diff --git a/Multi-Period-Market/Interval Executor.js b/Multi-Period-Market/Interval Executor.js index c21c761ff..baf531dcc 100644 --- a/Multi-Period-Market/Interval Executor.js +++ b/Multi-Period-Market/Interval Executor.js @@ -3,7 +3,7 @@ let bot = BOT; const ROOT_DIR = '../'; - const INTERVAL_LAPSE = 10 * 1000; + const INTERVAL_LAPSE = 60 * 60 * 1000; // There is no need for more frecuency since 1 hour files are generated at maximun. const MODULE_NAME = "Interval Executor"; const LOG_INFO = true; diff --git a/Multi-Period-Market/Interval.js b/Multi-Period-Market/Interval.js index c49997f13..208b6e9a2 100644 --- a/Multi-Period-Market/Interval.js +++ b/Multi-Period-Market/Interval.js @@ -329,7 +329,7 @@ Read the candles and volumes from Bruce and produce a single Index File for each let date = new Date(); let currentYear = date.getUTCFullYear(); - let currentMonth = date.getUTCMonth(); + let currentMonth = utilities.pad(date.getUTCMonth() + 1,2); reportFilePath = EXCHANGE_NAME + "/Processes/" + "One-Min-Daily-Candles-Volumes" + "/" + currentYear + "/" + currentMonth; @@ -356,8 +356,8 @@ Read the candles and volumes from Bruce and produce a single Index File for each */ - lastCandleFile = new Date(processDate.valueOf() - ONE_DAY_IN_MILISECONDS); - findLastCandleCloseValue(); + maxCandleFile = new Date(date.valueOf() - ONE_DAY_IN_MILISECONDS); + getThisProcessReport(); } }