From 2a0239d6319af0ea71c83f1ea1ed88f8dbaf1bf6 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 28 Apr 2018 12:16:31 +0200 Subject: [PATCH] Competition Mode Implemented --- .vs/AAMariam-Trading-Bot/v15/.suo | Bin 34816 -> 35840 bytes Trading-Process/User.Bot.js | 5 +++++ this.bot.config.json | 27 +++++++++------------------ 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.vs/AAMariam-Trading-Bot/v15/.suo b/.vs/AAMariam-Trading-Bot/v15/.suo index e07d341114f5e2bc39203451e1b652bc72111edc..ddcf62c61a8f161ac08b48c68f1695eb6d405288 100644 GIT binary patch delta 272 zcmZpez|=59+TGrHSPF+ zGxAJUWRhn+Aff7{y19@oh;i~^9>d9B*cCMSfqH;i!GIUY<^W&d9epl;a%>Cs+qa_2dh+Dw7SEST>jNhOkaPQ>y{yd=Uy@oP31YU~-9wKPMx| zXl5j}lfS@3*^opxmx%VTOfqrd-~$Tkp-9N|FfNi}TBN|VNRDZf5@(oT6i^xlih&H} Y%~BQb83n^(Vn8|qh^046RXyVc041SQApigX diff --git a/Trading-Process/User.Bot.js b/Trading-Process/User.Bot.js index 8e6d36a0b..29da82e44 100644 --- a/Trading-Process/User.Bot.js +++ b/Trading-Process/User.Bot.js @@ -118,6 +118,11 @@ assistant.putPosition("sell", rate, amountA, amountB, callBack); + if (LOG_INFO === true) { logger.write("[INFO] start -> businessLogic -> We start placing the first SELL order."); } + if (LOG_INFO === true) { logger.write("[INFO] start -> businessLogic -> amountA = " + amountA); } + if (LOG_INFO === true) { logger.write("[INFO] start -> businessLogic -> amountB = " + amountB); } + if (LOG_INFO === true) { logger.write("[INFO] start -> businessLogic -> rate = " + rate); } + } } catch (err) { logger.write("[ERROR] start -> businessLogic -> err = " + err.message); diff --git a/this.bot.config.json b/this.bot.config.json index 85028ac0f..0045c22c5 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -15,29 +15,20 @@ "name": "Trading-Process", "description": "Simple trading strategy to be used as a template.", "startMode": { - "allMonths": { + "live": { "run": "false", - "minYear": "", - "maxYear": "" - }, - "oneMonth": { - "run": "false", - "year": "", - "month": "" - }, - "noTime": { - "run": "true", "resumeExecution": "false" }, - "fixedInterval": { + "backtest": { "run": "false", - "interval": 0 + "beginDatetime": "2018-03-12T16:01:23.485Z", + "endDatetime": "2018-03-12T16:15:23.485Z", + "waitTime": 1000 }, - "timePeriod": { - "run": "false", - "beginDatetime": "2018-02-11T16:01:23.485Z", - "endDatetime": "2018-02-11T16:15:23.485Z", - "waitTime": 1000, + "competition": { + "run": "true", + "beginDatetime": "2018-04-27T16:00:00.000Z", + "endDatetime": "2018-04-28T16:05:00.000Z", "resumeExecution": "false" } },