From e6505706dcc6d8fd82b0aa1c4632b4843e5bdaf4 Mon Sep 17 00:00:00 2001 From: Matias Date: Fri, 3 May 2019 19:06:20 -0300 Subject: [PATCH] Fixing current day undefined issue --- Multi-Period-Market/User.Bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Multi-Period-Market/User.Bot.js b/Multi-Period-Market/User.Bot.js index 1faeca81d..c0a887fe2 100644 --- a/Multi-Period-Market/User.Bot.js +++ b/Multi-Period-Market/User.Bot.js @@ -71,7 +71,7 @@ let simulationLogic = {}; let interExecutionMemory = {}; - let currentDay; + let currentDay = bot.processDatetime; commons.initializeData(); @@ -165,7 +165,7 @@ record.stopLossPhase + "," + record.buyOrderPhase + "," + JSON.stringify(record.orderRecord) + "]"; - + if (separator === "") { separator = ","; } fileRecordCounter++;