diff --git a/MultiPeriodDaily.js b/MultiPeriodDaily.js index 01108f4df..7fd39a18f 100644 --- a/MultiPeriodDaily.js +++ b/MultiPeriodDaily.js @@ -2,12 +2,11 @@ const FULL_LOG = true; const LOG_FILE_CONTENT = false; - const MODULE_NAME = "Multi Period Daily"; - const EXCHANGE_NAME = "Poloniex"; - const commons = COMMONS.newCommons(bot, logger, UTILITIES); + const GMT_SECONDS = ':00.000 GMT+0000'; + const ONE_DAY_IN_MILISECONDS = 24 * 60 * 60 * 1000; thisObject = { initialize: initialize, @@ -243,6 +242,7 @@ try { let n; + currentDate = new Date(contextVariables.lastFile.valueOf() - ONE_DAY_IN_MILISECONDS); // Go back one day to start well when we advance time at the begining of the loop. advanceTime();