BUG FIXED: Empty records files generated
This commit is contained in:
1 parent
d821678c9c
commit
47713820bb
3 files changed
+40
-32
No files matched your search
+9
-7
@@ -53,22 +53,24 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
|
||||
}
|
||||
|
||||
async function runSimulation(
|
||||
recordsArray,
|
||||
conditionsArray,
|
||||
strategiesArray,
|
||||
tradesArray,
|
||||
lastObjectsArray,
|
||||
timePeriod,
|
||||
currentDay,
|
||||
startDate,
|
||||
endDate,
|
||||
interExecutionMemory,
|
||||
callback) {
|
||||
callback,
|
||||
callBackFunction) {
|
||||
|
||||
try {
|
||||
|
||||
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] runSimulation -> Entering function."); }
|
||||
|
||||
let recordsArray = [];
|
||||
let conditionsArray = [];
|
||||
let strategiesArray = [];
|
||||
let tradesArray = [];
|
||||
let lastObjectsArray = [];
|
||||
|
||||
let tradingSystem = await strategy.getStrategy();
|
||||
|
||||
/* Initial Default Values */
|
||||
@@ -1600,7 +1602,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
|
||||
|
||||
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] runSimulation -> callback -> recordsArray.length = " + recordsArray.length); }
|
||||
|
||||
callback(tradingSystem);
|
||||
callback(tradingSystem, recordsArray, conditionsArray, strategiesArray, tradesArray, lastObjectsArray);
|
||||
|
||||
function getElement(pArray, begin, end) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user