Upto loading the right files implemented

This commit is contained in:
Luis Fernando Molina committed 2021-02-02 11:22:45 +01:00
1 parent 74e80cb43c
commit b18fc0335a
2 files changed
+11 -12

No files matched your search

@@ -340,7 +340,11 @@
continue
}
if (dataDependenciesModule.isItAChartDepenency('atAnyTimeFrame', datasetModule.node.parentNode.config.singularVariableName) !== true) {
if (dataDependenciesModule.filters.timeFrames.get(datasetModule.exchange, datasetModule.market, datasetModule.product, 'atAnyTimeFrame') !== true) {
/*
If we can not find the current data set is used at the current time
frame we will skip this file.
*/
continue
}
@@ -515,10 +519,12 @@
continue
}
/*
If it is not a dependency then we pass..
*/
if (dataDependenciesModule.isItAChartDepenency(timeFrameLabel, datasetModule.node.parentNode.config.singularVariableName) !== true) {
if (dataDependenciesModule.filters.timeFrames.get(datasetModule.exchange, datasetModule.market, datasetModule.product, timeFrameLabel) !== true) {
/*
If we can not find the current data set is used at the current time
frame we will skip this file, unless we are in the only special
case that we are retrieving candles.
*/
if (!(TS.projects.superalgos.globals.processConstants.CONSTANTS_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_NODE.tradingParameters.timeFrame.config.label === timeFrameLabel && datasetModule.node.parentNode.config.pluralVariableName === 'candles')) {
continue
}
@@ -23,7 +23,6 @@
filters: undefined,
curatedDependencyNodeArray: undefined,
dataSetsModulesArray: [],
isItAChartDepenency: isItAChartDepenency,
initialize: initialize,
finalize: finalize
}
@@ -246,10 +245,4 @@
thisObject.filters = undefined
bot = undefined
}
function isItAChartDepenency(timeFrame, product) {
let key = timeFrame + '-' + product
return thisObject.filters.chart.products.get(key)
}
}