Competition Mode Implemented

This commit is contained in:
Luis Fernando Molina committed 2018-04-28 12:16:31 +02:00
1 parent 799d09deb2
commit 2a0239d631
3 files changed
+14 -18

No files matched your search

Binary file not shown.
+5
View File
@@ -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);
+9 -18
View File
@@ -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"
}
},