Bug Dataset Updated Fixed
This commit is contained in:
1 parent
e90ccebe8f
commit
4d6c0ad493
7 files changed
+35
-28
No files matched your search
@@ -617,9 +617,9 @@
|
||||
}
|
||||
|
||||
if (currentTimeFrame > global.dailyFilePeriods[0][0]) {
|
||||
writeMarketStatusReport(onMarketStatusReport)
|
||||
writeMarketStatusReport(currentTimeFrameLabel, onMarketStatusReport)
|
||||
} else {
|
||||
writeDailyStatusReport(bot.tradingProcessDate, onDailyStatusReport);
|
||||
writeDailyStatusReport(bot.tradingProcessDate, currentTimeFrameLabel, onDailyStatusReport);
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
@@ -709,22 +709,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
function writeDailyStatusReport(lastFileDate, callBack) {
|
||||
function writeDailyStatusReport(lastFileDate, currentTimeFrameLabel, callBack) {
|
||||
let reportKey = bot.dataMine + "-" + bot.codeName + "-" + bot.processNode.referenceParent.config.codeName
|
||||
let thisReport = statusDependencies.statusReports.get(reportKey);
|
||||
|
||||
thisReport.file.lastExecution = bot.currentDaytime;
|
||||
thisReport.file.lastFile = lastFileDate;
|
||||
thisReport.file.simulationState = bot.simulationState;
|
||||
thisReport.file.timeFrames = currentTimeFrameLabel
|
||||
thisReport.save(callBack);
|
||||
}
|
||||
|
||||
function writeMarketStatusReport(callBack) {
|
||||
function writeMarketStatusReport(currentTimeFrameLabel, callBack) {
|
||||
let reportKey = bot.dataMine + "-" + bot.codeName + "-" + bot.processNode.referenceParent.config.codeName
|
||||
let thisReport = statusDependencies.statusReports.get(reportKey);
|
||||
|
||||
thisReport.file.lastExecution = bot.processDatetime;
|
||||
thisReport.file.simulationState = bot.simulationState;
|
||||
thisReport.file.timeFrames = currentTimeFrameLabel
|
||||
|
||||
logger.newInternalLoop(bot.codeName, bot.process, bot.tradingProcessDate);
|
||||
thisReport.save(callBack);
|
||||
|
||||
@@ -521,7 +521,7 @@
|
||||
let timeFrameLabel = global.dailyFilePeriods[n][1]
|
||||
|
||||
/* Check Time Frames Filter */
|
||||
if (bot.marketTimeFrames !== undefined) {
|
||||
if (bot.dailyTimeFrames !== undefined) {
|
||||
if (bot.dailyTimeFrames.includes(timeFrameLabel) === true) {
|
||||
timeFramesArray.push(timeFrameLabel)
|
||||
}
|
||||
@@ -554,6 +554,9 @@
|
||||
thisReport.file.lastFile = lastFileDate;
|
||||
thisReport.file.interExecutionMemoryArray = interExecutionMemoryArray;
|
||||
thisReport.file.beginingOfMarket = beginingOfMarket.toUTCString()
|
||||
if (bot.dailyTimeFrames !== undefined) {
|
||||
thisReport.file.timeFrames = bot.dailyTimeFrames
|
||||
}
|
||||
thisReport.save(callBack)
|
||||
|
||||
bot.hasTheBotJustStarted = false;
|
||||
|
||||
@@ -88,7 +88,6 @@
|
||||
}
|
||||
global.EVENT_SERVER_CLIENT.createEventHandler(key, 'Dataset Updated')
|
||||
global.EVENT_SERVER_CLIENT.raiseEvent(key, 'Dataset Updated', event)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user