diff --git a/Projects/Superalgos/TS/Function-Libraries/FromOneMinToMultiTimeFrameFunctions.js b/Projects/Superalgos/TS/Function-Libraries/FromOneMinToMultiTimeFrameFunctions.js index 567705a3f..8cd16589b 100644 --- a/Projects/Superalgos/TS/Function-Libraries/FromOneMinToMultiTimeFrameFunctions.js +++ b/Projects/Superalgos/TS/Function-Libraries/FromOneMinToMultiTimeFrameFunctions.js @@ -324,7 +324,7 @@ exports.newSuperalgosFunctionLibrariesFromOneMinToMultiTimeFrameFunctions = func } doHeartBeat() - + function doHeartBeat() { /* Telling the world we are alive and doing well */ let currentDateString = @@ -536,6 +536,12 @@ exports.newSuperalgosFunctionLibrariesFromOneMinToMultiTimeFrameFunctions = func element.end <= outputElement.end) { aggregateElements() } + /* + If the Timestamp is not a numeric value, then we will convert it to it. + */ + if (element.timestamp !== undefined && isNaN(element.timestamp)) { + element.timestamp = (new Date(element.timestamp)).valueOf() + } /* Here we discard all the elements out of range based on the timestamp propertiy of the Data Dependency element.