Not allways buying or selling

This commit is contained in:
Luis Fernando Molina committed 2018-04-29 08:06:38 +02:00
1 parent 0b8ae69662
commit d9c78ada6d
2 files changed
+11 -30

No files matched your search

+7
View File
@@ -153,6 +153,13 @@
callBack(global.DEFAULT_OK_RESPONSE);
return;
}
if (Math.random() * 10 > 5) {
if (LOG_INFO === true) { logger.write("[INFO] start -> decideWhatToDo -> In some situations it is just fin no to place orders. Passing this turn. "); }
callBack(global.DEFAULT_OK_RESPONSE);
return;
}
if (balanceA > 0) {
+4 -30
View File
@@ -16,17 +16,17 @@
"description": "Simple trading strategy to be used as a template.",
"startMode": {
"live": {
"run": "false",
"run": "true",
"resumeExecution": "false"
},
"backtest": {
"run": "false",
"beginDatetime": "2018-03-12T16:01:23.485Z",
"endDatetime": "2018-03-12T16:15:23.485Z",
"beginDatetime": "2018-03-12T16:00:00.000Z",
"endDatetime": "2018-03-12T16:15:00.000Z",
"waitTime": 1000
},
"competition": {
"run": "true",
"run": "false",
"beginDatetime": "2018-04-27T16:00:00.000Z",
"endDatetime": "2018-04-28T16:05:00.000Z",
"resumeExecution": "false"
@@ -126,32 +126,6 @@
"codeName": "PlottersTrading",
"moduleName": "History"
}
},
{
"codeName": "Competition Trading History",
"displayName": "Competition Trading History",
"shortDisplayName": "Competition",
"description": "General information about Mariam competition trading history.",
"storageAccount": "aamariam",
"dataSets": [
{
"codeName": "Backtest History",
"type": "File Sequence",
"validPeriods": [ "24-hs", "12-hs", "08-hs", "06-hs", "04-hs", "03-hs", "02-hs", "01-hs", "45-min", "40-min", "30-min", "20-min", "15-min", "10-min", "05-min", "04-min", "03-min", "02-min", "01-min" ],
"filePath": "@DevTeam/@Bot.1.0/AACloud.1.1/Poloniex/dataSet.V1/Output/Trading-Process",
"fileName": "Execution.History.Competition.@Sequence.json"
}
],
"exchangeList": [
{
"name": "Poloniex"
}
],
"plotter": {
"devTeam": "AAMasters",
"codeName": "PlottersTrading",
"moduleName": "History"
}
}
],
"storage": {