Some Logs to trace BUG that records empty array files
This commit is contained in:
1 parent
ddbbf72f24
commit
d821678c9c
1 file changed
+5
-1
+5
-1
@@ -73,7 +73,8 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
|
||||
|
||||
/* Initial Default Values */
|
||||
|
||||
let initialDate = startDate;
|
||||
let initialDate = startDate;
|
||||
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] runSimulation -> initialDate = " + initialDate); }
|
||||
|
||||
const DEFAULT_BASE_ASSET_BALANCE = 1
|
||||
const DEFAULT_BASE_ASSET_MINIMUN_BALANCE = 0.5
|
||||
@@ -334,6 +335,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
|
||||
}
|
||||
|
||||
/* Main Simulation Loop: We go thourgh all the candles at this time period. */
|
||||
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] runSimulation -> Main Simulation Loop -> candles.length = " + candles.length); }
|
||||
|
||||
for (let i = 0; i < candles.length; i++) {
|
||||
|
||||
@@ -1596,6 +1598,8 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
|
||||
}
|
||||
}
|
||||
|
||||
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] runSimulation -> callback -> recordsArray.length = " + recordsArray.length); }
|
||||
|
||||
callback(tradingSystem);
|
||||
|
||||
function getElement(pArray, begin, end) {
|
||||
|
||||
Reference in new issue
Block a user