Posts being recorded at User's own Github repo.
This commit is contained in:
1 parent
2b92426d9c
commit
f77aa3d1c5
20 files changed
+68
-66
No files matched your search
@@ -291,7 +291,8 @@ function newWebApp() {
|
|||||||
eventMessage = {
|
eventMessage = {
|
||||||
eventType: eventType,
|
eventType: eventType,
|
||||||
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
||||||
targetUserProfileId: userProfileId
|
targetUserProfileId: userProfileId,
|
||||||
|
timestamp: new Date()
|
||||||
}
|
}
|
||||||
|
|
||||||
event = {
|
event = {
|
||||||
@@ -326,7 +327,8 @@ function newWebApp() {
|
|||||||
eventMessage = {
|
eventMessage = {
|
||||||
eventType: SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST,
|
eventType: SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST,
|
||||||
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
||||||
text: postText
|
text: postText,
|
||||||
|
timestamp: new Date()
|
||||||
}
|
}
|
||||||
|
|
||||||
event = {
|
event = {
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ exports.newFoundationsUtilitiesFilesAndDirectories = function () {
|
|||||||
file.month = file.date.getUTCMonth() + 1
|
file.month = file.date.getUTCMonth() + 1
|
||||||
file.day = file.date.getUTCDate()
|
file.day = file.date.getUTCDate()
|
||||||
return file.year + '/' +
|
return file.year + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(file.month, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(file.month, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(file.day, 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(file.day, 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Function to create folders of missing folders at any path. */
|
/* Function to create folders of missing folders at any path. */
|
||||||
|
|||||||
@@ -922,8 +922,8 @@ exports.newFoundationsBotModulesFetchingProcess = function (processIndex) {
|
|||||||
file.month = file.date.getUTCMonth() + 1
|
file.month = file.date.getUTCMonth() + 1
|
||||||
file.day = file.date.getUTCDate()
|
file.day = file.date.getUTCDate()
|
||||||
let dateForPath = file.year + '/' +
|
let dateForPath = file.year + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(file.month, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(file.month, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(file.day, 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(file.day, 2)
|
||||||
|
|
||||||
/* We will need to save this at the Status Report */
|
/* We will need to save this at the Status Report */
|
||||||
contextVariables.lastFile = file.date
|
contextVariables.lastFile = file.date
|
||||||
|
|||||||
+10
-10
@@ -270,8 +270,8 @@
|
|||||||
/* Telling the world we are alive and doing well */
|
/* Telling the world we are alive and doing well */
|
||||||
let currentDateString =
|
let currentDateString =
|
||||||
processDate.getUTCFullYear() + '-' +
|
processDate.getUTCFullYear() + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '-' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
||||||
let currentDate = new Date(processDate)
|
let currentDate = new Date(processDate)
|
||||||
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
||||||
@@ -322,8 +322,8 @@
|
|||||||
try {
|
try {
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
previousDay.getUTCFullYear() + '/' +
|
previousDay.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCDate(), 2);
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
let filePathRoot =
|
let filePathRoot =
|
||||||
'Project/' +
|
'Project/' +
|
||||||
@@ -368,8 +368,8 @@
|
|||||||
try {
|
try {
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
processDate.getUTCFullYear() + '/' +
|
processDate.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
let filePathRoot =
|
let filePathRoot =
|
||||||
'Project/' +
|
'Project/' +
|
||||||
@@ -584,8 +584,8 @@
|
|||||||
|
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
processDate.getUTCFullYear() + '/' +
|
processDate.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
||||||
let fileName = 'Data.json';
|
let fileName = 'Data.json';
|
||||||
let filePath =
|
let filePath =
|
||||||
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
||||||
@@ -654,8 +654,8 @@
|
|||||||
|
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
processDate.getUTCFullYear() + '/' +
|
processDate.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2);
|
||||||
let fileName = 'Data.json';
|
let fileName = 'Data.json';
|
||||||
let filePath =
|
let filePath =
|
||||||
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
||||||
|
|||||||
+1
-1
@@ -406,7 +406,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Telling the world we are alive and doing well */
|
/* Telling the world we are alive and doing well */
|
||||||
let currentDateString = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCDate(), 2);
|
let currentDateString = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCDate(), 2);
|
||||||
let currentDate = new Date(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME)
|
let currentDate = new Date(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(
|
||||||
processIndex,
|
processIndex,
|
||||||
|
|||||||
+9
-9
@@ -232,8 +232,8 @@
|
|||||||
/* Telling the world we are alive and doing well */
|
/* Telling the world we are alive and doing well */
|
||||||
let currentDateString =
|
let currentDateString =
|
||||||
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '-' +
|
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '-' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
||||||
let currentDate = new Date(contextVariables.datetimeLastProducedFile)
|
let currentDate = new Date(contextVariables.datetimeLastProducedFile)
|
||||||
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
||||||
@@ -272,8 +272,8 @@
|
|||||||
function nextCandleFile() {
|
function nextCandleFile() {
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
|
|
||||||
let filePathRoot =
|
let filePathRoot =
|
||||||
@@ -396,7 +396,7 @@
|
|||||||
|
|
||||||
function nextVolumeFile() {
|
function nextVolumeFile() {
|
||||||
try {
|
try {
|
||||||
let dateForPath = contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
let dateForPath = contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
let filePathRoot =
|
let filePathRoot =
|
||||||
'Project/' +
|
'Project/' +
|
||||||
@@ -540,8 +540,8 @@
|
|||||||
let fileName = 'Data.json';
|
let fileName = 'Data.json';
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
||||||
let filePath =
|
let filePath =
|
||||||
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
||||||
"/Output/" +
|
"/Output/" +
|
||||||
@@ -588,8 +588,8 @@
|
|||||||
let fileName = 'Data.json';
|
let fileName = 'Data.json';
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
||||||
let filePath =
|
let filePath =
|
||||||
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
||||||
"/Output/" +
|
"/Output/" +
|
||||||
|
|||||||
+5
-5
@@ -412,8 +412,8 @@
|
|||||||
/* Telling the world we are alive and doing well */
|
/* Telling the world we are alive and doing well */
|
||||||
let currentDateString =
|
let currentDateString =
|
||||||
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '-' +
|
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '-' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
||||||
let currentDate = new Date(contextVariables.datetimeLastProducedFile)
|
let currentDate = new Date(contextVariables.datetimeLastProducedFile)
|
||||||
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
||||||
@@ -509,7 +509,7 @@
|
|||||||
nextCandleFile();
|
nextCandleFile();
|
||||||
|
|
||||||
function nextCandleFile() {
|
function nextCandleFile() {
|
||||||
let dateForPath = contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
let dateForPath = contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
|
|
||||||
let filePathRoot =
|
let filePathRoot =
|
||||||
@@ -635,8 +635,8 @@
|
|||||||
|
|
||||||
let dateForPath =
|
let dateForPath =
|
||||||
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2);
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
|
|
||||||
let filePathRoot =
|
let filePathRoot =
|
||||||
|
|||||||
+2
-2
@@ -160,8 +160,8 @@ exports.newFoundationsBotModulesFromOneMinToMultiTimeFrameDaily = function (proc
|
|||||||
file.month = file.date.getUTCMonth() + 1
|
file.month = file.date.getUTCMonth() + 1
|
||||||
file.day = file.date.getUTCDate()
|
file.day = file.date.getUTCDate()
|
||||||
let dateForPath = file.year + '/' +
|
let dateForPath = file.year + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(file.month, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(file.month, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(file.day, 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(file.day, 2)
|
||||||
|
|
||||||
let fileName = 'Data.json'
|
let fileName = 'Data.json'
|
||||||
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT +
|
||||||
|
|||||||
@@ -275,8 +275,8 @@
|
|||||||
|
|
||||||
/* Telling the world we are alive and doing well */
|
/* Telling the world we are alive and doing well */
|
||||||
let currentDateString = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCFullYear() + '-' +
|
let currentDateString = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCFullYear() + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCMonth() + 1, 2) + '-' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCMonth() + 1, 2) + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCDate(), 2)
|
||||||
let currentDate = new Date(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME)
|
let currentDate = new Date(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME)
|
||||||
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
||||||
@@ -360,8 +360,8 @@
|
|||||||
|
|
||||||
function getPreviousFile() {
|
function getPreviousFile() {
|
||||||
let dateForPath = previousDay.getUTCFullYear() + '/' +
|
let dateForPath = previousDay.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(previousDay.getUTCDate(), 2)
|
||||||
let filePath
|
let filePath
|
||||||
if (dependency.referenceParent.config.codeName === "Multi-Time-Frame-Daily") {
|
if (dependency.referenceParent.config.codeName === "Multi-Time-Frame-Daily") {
|
||||||
filePath = dependency.referenceParent.parentNode.config.codeName + '/' + dependency.referenceParent.config.codeName + "/" + timeFrameLabel + "/" + dateForPath;
|
filePath = dependency.referenceParent.parentNode.config.codeName + '/' + dependency.referenceParent.config.codeName + "/" + timeFrameLabel + "/" + dateForPath;
|
||||||
@@ -412,8 +412,8 @@
|
|||||||
|
|
||||||
function getCurrentFile() {
|
function getCurrentFile() {
|
||||||
let dateForPath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCFullYear() + '/' +
|
let dateForPath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).DAILY_FILES_PROCESS_DATETIME.getUTCDate(), 2)
|
||||||
let filePath
|
let filePath
|
||||||
if (dependency.referenceParent.config.codeName === "Multi-Time-Frame-Daily") {
|
if (dependency.referenceParent.config.codeName === "Multi-Time-Frame-Daily") {
|
||||||
filePath = dependency.referenceParent.parentNode.config.codeName + '/' + dependency.referenceParent.config.codeName + "/" + timeFrameLabel + "/" + dateForPath;
|
filePath = dependency.referenceParent.parentNode.config.codeName + '/' + dependency.referenceParent.config.codeName + "/" + timeFrameLabel + "/" + dateForPath;
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Telling the world we are alive and doing well */
|
/* Telling the world we are alive and doing well */
|
||||||
let currentDateString = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCDate(), 2)
|
let currentDateString = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME.getUTCDate(), 2)
|
||||||
let currentDate = new Date(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME)
|
let currentDate = new Date(TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).PROCESS_DATETIME)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(
|
||||||
processIndex,
|
processIndex,
|
||||||
|
|||||||
+2
-2
@@ -317,7 +317,7 @@ exports.newFoundationsBotModulesLearningSimulation = function (processIndex) {
|
|||||||
let fromDate = new Date(sessionParameters.timeRange.config.initialDatetime)
|
let fromDate = new Date(sessionParameters.timeRange.config.initialDatetime)
|
||||||
let lastDate = new Date(sessionParameters.timeRange.config.finalDatetime)
|
let lastDate = new Date(sessionParameters.timeRange.config.finalDatetime)
|
||||||
|
|
||||||
let currentDateString = heartBeatDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
let currentDateString = heartBeatDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
||||||
let currentDate = new Date(heartBeatDate)
|
let currentDate = new Date(heartBeatDate)
|
||||||
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
||||||
/*
|
/*
|
||||||
@@ -327,7 +327,7 @@ exports.newFoundationsBotModulesLearningSimulation = function (processIndex) {
|
|||||||
if (heartBeatDate.valueOf() !== previousHeartBeatDate) {
|
if (heartBeatDate.valueOf() !== previousHeartBeatDate) {
|
||||||
previousHeartBeatDate = heartBeatDate.valueOf()
|
previousHeartBeatDate = heartBeatDate.valueOf()
|
||||||
|
|
||||||
let processingDate = heartBeatDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
let processingDate = heartBeatDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
||||||
|
|
||||||
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
||||||
'[INFO] runSimulation -> loop -> Simulation ' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_KEY + ' Loop # ' + learningEngine.learningCurrent.learningEpisode.candle.index.value + ' @ ' + processingDate)
|
'[INFO] runSimulation -> loop -> Simulation ' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_KEY + ' Loop # ' + learningEngine.learningCurrent.learningEpisode.candle.index.value + ' @ ' + processingDate)
|
||||||
|
|||||||
@@ -258,8 +258,8 @@
|
|||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
let datetime = new Date(lastFile.valueOf())
|
let datetime = new Date(lastFile.valueOf())
|
||||||
let dateForPath = datetime.getUTCFullYear() + '/' +
|
let dateForPath = datetime.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCDate(), 2)
|
||||||
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + "/Output/" + OHLCVS_FOLDER_NAME + '/' + dateForPath;
|
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + "/Output/" + OHLCVS_FOLDER_NAME + '/' + dateForPath;
|
||||||
let fullFileName = filePath + '/' + fileName
|
let fullFileName = filePath + '/' + fileName
|
||||||
fileStorage.getTextFile(fullFileName, onFileReceived)
|
fileStorage.getTextFile(fullFileName, onFileReceived)
|
||||||
@@ -368,7 +368,7 @@
|
|||||||
/* Reporting we are doing well */
|
/* Reporting we are doing well */
|
||||||
function heartBeat(noNewInternalLoop) {
|
function heartBeat(noNewInternalLoop) {
|
||||||
let processingDate = new Date(since)
|
let processingDate = new Date(since)
|
||||||
processingDate = processingDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
processingDate = processingDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
||||||
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
||||||
"[INFO] start -> getOHLCVs -> Fetching OHLCVs @ " + processingDate + "-> exchange = " + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.name + " -> symbol = " + symbol + " -> since = " + since + " -> limit = " + limit)
|
"[INFO] start -> getOHLCVs -> Fetching OHLCVs @ " + processingDate + "-> exchange = " + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.name + " -> symbol = " + symbol + " -> since = " + since + " -> limit = " + limit)
|
||||||
let heartBeatText = "Fetching " + rawDataArray.length.toFixed(0) + " OHLCVs from " + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.name + " " + symbol + " @ " + processingDate
|
let heartBeatText = "Fetching " + rawDataArray.length.toFixed(0) + " OHLCVs from " + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.name + " " + symbol + " @ " + processingDate
|
||||||
@@ -476,7 +476,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let processingDate = new Date(earliestMarketSince)
|
let processingDate = new Date(earliestMarketSince)
|
||||||
processingDate = processingDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
processingDate = processingDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, "Invalid or No Start Date. Finding Market Start @ " + processingDate, 0)
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, "Invalid or No Start Date. Finding Market Start @ " + processingDate, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -509,7 +509,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let processingDate = new Date(since)
|
let processingDate = new Date(since)
|
||||||
processingDate = processingDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
processingDate = processingDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, "No Data Found. Fast-Forwarding to Next Data @ " + processingDate, 0)
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, "No Data Found. Fast-Forwarding to Next Data @ " + processingDate, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -945,8 +945,8 @@
|
|||||||
let processingDate = new Date(candle.begin)
|
let processingDate = new Date(candle.begin)
|
||||||
processingDate =
|
processingDate =
|
||||||
processingDate.getUTCFullYear() + '-' +
|
processingDate.getUTCFullYear() + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCMonth() + 1, 2) + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(processingDate.getUTCDate(), 2);
|
||||||
|
|
||||||
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
||||||
"[INFO] start -> saveOHLCVs -> Before Fetch -> Saving OHLCVs @ " + processingDate + " -> ohlcvArrayIndex = " + ohlcvArrayIndex + " -> total = " + rawDataArray.length)
|
"[INFO] start -> saveOHLCVs -> Before Fetch -> Saving OHLCVs @ " + processingDate + " -> ohlcvArrayIndex = " + ohlcvArrayIndex + " -> total = " + rawDataArray.length)
|
||||||
@@ -1048,8 +1048,8 @@
|
|||||||
function getFilePath(timestamp, folderName) {
|
function getFilePath(timestamp, folderName) {
|
||||||
let datetime = new Date(timestamp)
|
let datetime = new Date(timestamp)
|
||||||
let dateForPath = datetime.getUTCFullYear() + '/' +
|
let dateForPath = datetime.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(datetime.getUTCDate(), 2)
|
||||||
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + "/Output/" + folderName + '/' + dateForPath;
|
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + "/Output/" + folderName + '/' + dateForPath;
|
||||||
return filePath
|
return filePath
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -308,7 +308,7 @@ exports.newFoundationsBotModulesTradingSimulation = function (processIndex) {
|
|||||||
let fromDate = new Date(sessionParameters.timeRange.config.initialDatetime)
|
let fromDate = new Date(sessionParameters.timeRange.config.initialDatetime)
|
||||||
let lastDate = new Date(sessionParameters.timeRange.config.finalDatetime)
|
let lastDate = new Date(sessionParameters.timeRange.config.finalDatetime)
|
||||||
|
|
||||||
let currentDateString = heartBeatDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
let currentDateString = heartBeatDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
||||||
let currentDate = new Date(heartBeatDate)
|
let currentDate = new Date(heartBeatDate)
|
||||||
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
||||||
/*
|
/*
|
||||||
@@ -318,7 +318,7 @@ exports.newFoundationsBotModulesTradingSimulation = function (processIndex) {
|
|||||||
if (heartBeatDate.valueOf() !== previousHeartBeatDate) {
|
if (heartBeatDate.valueOf() !== previousHeartBeatDate) {
|
||||||
previousHeartBeatDate = heartBeatDate.valueOf()
|
previousHeartBeatDate = heartBeatDate.valueOf()
|
||||||
|
|
||||||
let processingDate = heartBeatDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
let processingDate = heartBeatDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(heartBeatDate.getUTCDate(), 2)
|
||||||
|
|
||||||
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
|
||||||
'[INFO] runSimulation -> loop -> Simulation ' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_KEY + ' Loop # ' + tradingEngine.tradingCurrent.tradingEpisode.candle.index.value + ' @ ' + processingDate)
|
'[INFO] runSimulation -> loop -> Simulation ' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_KEY + ' Loop # ' + tradingEngine.tradingCurrent.tradingEpisode.candle.index.value + ' @ ' + processingDate)
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ exports.newFoundationsFunctionLibrariesDataDependenciesFunctions = function () {
|
|||||||
processDate
|
processDate
|
||||||
) {
|
) {
|
||||||
/* Telling the world we are alive and doing well and which date we are processing right now. */
|
/* Telling the world we are alive and doing well and which date we are processing right now. */
|
||||||
let processingDateString = processDate.getUTCFullYear() + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '-' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2)
|
let processingDateString = processDate.getUTCFullYear() + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCMonth() + 1, 2) + '-' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(processDate.getUTCDate(), 2)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, processingDateString, undefined, "Running...")
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, processingDateString, undefined, "Running...")
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -327,7 +327,7 @@ exports.newFoundationsFunctionLibrariesDataDependenciesFunctions = function () {
|
|||||||
|
|
||||||
async function getDataFileFromDate(dataFileDate) {
|
async function getDataFileFromDate(dataFileDate) {
|
||||||
|
|
||||||
let dateForPath = dataFileDate.getUTCFullYear() + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(dataFileDate.getUTCMonth() + 1, 2) + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(dataFileDate.getUTCDate(), 2)
|
let dateForPath = dataFileDate.getUTCFullYear() + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(dataFileDate.getUTCMonth() + 1, 2) + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(dataFileDate.getUTCDate(), 2)
|
||||||
let filePath = dependency.referenceParent.parentNode.config.codeName + '/' + dependency.referenceParent.config.codeName + "/" + timeFrameLabel + "/" + dateForPath
|
let filePath = dependency.referenceParent.parentNode.config.codeName + '/' + dependency.referenceParent.config.codeName + "/" + timeFrameLabel + "/" + dateForPath
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
|
|
||||||
|
|||||||
@@ -329,8 +329,8 @@ exports.newFoundationsFunctionLibrariesFromOneMinToMultiTimeFrameFunctions = fun
|
|||||||
/* Telling the world we are alive and doing well */
|
/* Telling the world we are alive and doing well */
|
||||||
let currentDateString =
|
let currentDateString =
|
||||||
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '-' +
|
contextVariables.datetimeLastProducedFile.getUTCFullYear() + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '-' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '-' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
||||||
let currentDate = new Date(contextVariables.datetimeLastProducedFile)
|
let currentDate = new Date(contextVariables.datetimeLastProducedFile)
|
||||||
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
let percentage = TS.projects.foundations.utilities.dateTimeFunctions.getPercentage(fromDate, currentDate, lastDate)
|
||||||
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
TS.projects.foundations.functionLibraries.processFunctions.processHeartBeat(processIndex, currentDateString, percentage)
|
||||||
@@ -360,8 +360,8 @@ exports.newFoundationsFunctionLibrariesFromOneMinToMultiTimeFrameFunctions = fun
|
|||||||
const ONE_MIN_DATASET_TYPE = "One-Min"
|
const ONE_MIN_DATASET_TYPE = "One-Min"
|
||||||
|
|
||||||
let dateForPath = contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
let dateForPath = contextVariables.datetimeLastProducedFile.getUTCFullYear() + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCMonth() + 1, 2) + '/' +
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
SA.projects.foundations.utilities.miscellaneousFunctions.pad(contextVariables.datetimeLastProducedFile.getUTCDate(), 2)
|
||||||
|
|
||||||
let fileName = "Data.json"
|
let fileName = "Data.json"
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ exports.newFoundationsFunctionLibrariesOutputManagementFunctions = function () {
|
|||||||
|
|
||||||
if (dataset.config.type === 'Daily Files') {
|
if (dataset.config.type === 'Daily Files') {
|
||||||
|
|
||||||
let dateForPath = tradingProcessDate.getUTCFullYear() + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCMonth() + 1, 2) + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCDate(), 2);
|
let dateForPath = tradingProcessDate.getUTCFullYear() + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCMonth() + 1, 2) + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCDate(), 2);
|
||||||
let fileName = 'Data.json'
|
let fileName = 'Data.json'
|
||||||
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + '/Output/' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_FOLDER_NAME + '/' + dataset.parentNode.config.codeName + '/' + dataset.config.codeName + '/' + timeFrameLabel + "/" + dateForPath
|
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + '/Output/' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_FOLDER_NAME + '/' + dataset.parentNode.config.codeName + '/' + dataset.config.codeName + '/' + timeFrameLabel + "/" + dateForPath
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ exports.newFoundationsFunctionLibrariesOutputManagementFunctions = function () {
|
|||||||
|
|
||||||
if (dataset.config.type === 'Daily Files') {
|
if (dataset.config.type === 'Daily Files') {
|
||||||
|
|
||||||
let dateForPath = tradingProcessDate.getUTCFullYear() + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCMonth() + 1, 2) + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCDate(), 2);
|
let dateForPath = tradingProcessDate.getUTCFullYear() + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCMonth() + 1, 2) + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(tradingProcessDate.getUTCDate(), 2);
|
||||||
let fileName = 'Data.json'
|
let fileName = 'Data.json'
|
||||||
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + '/Output/' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_FOLDER_NAME + '/' + dataset.parentNode.config.codeName + '/' + dataset.config.codeName + '/' + timeFrameLabel + "/" + dateForPath
|
let filePath = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).FILE_PATH_ROOT + '/Output/' + TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_FOLDER_NAME + '/' + dataset.parentNode.config.codeName + '/' + dataset.config.codeName + '/' + timeFrameLabel + "/" + dateForPath
|
||||||
|
|
||||||
|
|||||||
@@ -563,7 +563,7 @@
|
|||||||
let dateForPath = ''
|
let dateForPath = ''
|
||||||
|
|
||||||
if (processingDailyFiles === true) {
|
if (processingDailyFiles === true) {
|
||||||
dateForPath = "/" + currentDay.getUTCFullYear() + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(currentDay.getUTCMonth() + 1, 2) + '/' + TS.projects.foundations.utilities.miscellaneousFunctions.pad(currentDay.getUTCDate(), 2);
|
dateForPath = "/" + currentDay.getUTCFullYear() + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(currentDay.getUTCMonth() + 1, 2) + '/' + SA.projects.foundations.utilities.miscellaneousFunctions.pad(currentDay.getUTCDate(), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
let filePathRoot = 'Project/' + contextSummary.project + "/" + contextSummary.mineType + "/" + contextSummary.dataMine + "/" + contextSummary.bot + '/' + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.config.codeName + "/" + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.baseAsset.referenceParent.config.codeName + "-" + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.quotedAsset.referenceParent.config.codeName
|
let filePathRoot = 'Project/' + contextSummary.project + "/" + contextSummary.mineType + "/" + contextSummary.dataMine + "/" + contextSummary.bot + '/' + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.parentNode.parentNode.config.codeName + "/" + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.baseAsset.referenceParent.config.codeName + "-" + TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.quotedAsset.referenceParent.config.codeName
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ exports.newFileStorage = function newFileStorage(processIndex, host, port) {
|
|||||||
logger.write(MODULE_NAME, '[INFO] FileStorage -> createTextFile -> fileLocation: ' + fileLocation)
|
logger.write(MODULE_NAME, '[INFO] FileStorage -> createTextFile -> fileLocation: ' + fileLocation)
|
||||||
|
|
||||||
/* If necesary a folder or folders are created before writing the file to disk. */
|
/* If necesary a folder or folders are created before writing the file to disk. */
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.mkDirByPathSync(fileLocation)
|
SA.projects.foundations.utilities.filesAndDirectories.mkDirByPathSync(fileLocation)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Here we write the file with a temporary name so as to avoid dirty read from other processes.
|
Here we write the file with a temporary name so as to avoid dirty read from other processes.
|
||||||
|
|||||||
@@ -131,9 +131,9 @@ exports.newSocialTradingModulesWebAppInterface = function newSocialTradingModule
|
|||||||
const fileHash = hash.update(fileContent).digest('hex')
|
const fileHash = hash.update(fileContent).digest('hex')
|
||||||
const fileName = fileHash + ".json"
|
const fileName = fileHash + ".json"
|
||||||
|
|
||||||
let filePath = './My-Social-Trading-Data/User-Posts/' + SA.projects.foundations.utilities.filesAndDirectories.pathFromDate(timestamp)
|
let filePath = './My-Social-Trading-Data/User-Posts/' + SA.projects.foundations.utilities.filesAndDirectories.pathFromDate(timestamp)
|
||||||
|
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.mkDirByPathSync(filePath)
|
SA.projects.foundations.utilities.filesAndDirectories.mkDirByPathSync(filePath + '/')
|
||||||
SA.nodeModules.fs.writeFileSync(filePath + '/' + fileName, fileContent)
|
SA.nodeModules.fs.writeFileSync(filePath + '/' + fileName, fileContent)
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
|
|||||||
+1
-1
@@ -120,7 +120,7 @@ exports.newTensorFlowBotModulesTensorFlowLibrary = function (processIndex) {
|
|||||||
async function saveModel() {
|
async function saveModel() {
|
||||||
let fileLocation = getModelPath();
|
let fileLocation = getModelPath();
|
||||||
/* If necesary a folder or folders are created before writing the file to disk: */
|
/* If necesary a folder or folders are created before writing the file to disk: */
|
||||||
TS.projects.foundations.utilities.miscellaneousFunctions.mkDirByPathSync(fileLocation);
|
SA.projects.foundations.utilities.filesAndDirectories.mkDirByPathSync(fileLocation);
|
||||||
|
|
||||||
const savedModel = await tensorFlowModelsManager.model.save('file://' + fileLocation);
|
const savedModel = await tensorFlowModelsManager.model.save('file://' + fileLocation);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user