Repository navigation
Expand file tree
/
Copy pathconfig_sample.js
More file actions
86 lines (81 loc) · 1.67 KB
/
Copy pathconfig_sample.js
File metadata and controls
86 lines (81 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
var config = {
database: {
connectionString: "mongodb://localhost/tradingbot",
candleCollection: 'candles'
},
mode: "backtest",
historySize: 50,
candleSize: 5,
customCandleSize: 5,
strategy : {
bb:{
timePeriod: 24,
positionSize: 4,
},
ppo:{
short: 21,
long: 42,
signal: 9,
down: -0.05,
up: 0.15,
persistenceUp: 1,
persistenceDown: 1,
},
/* ppo:{
short: 21,
long: 42,
signal: 9,
down: -0.1,
up: 0.15,
persistenceUp: 1,
persistenceDown: 1,
},*/
volume:{
timePeriod: 48,
treshold: 1,
minVolume: 1000,
},
rsi:{
interval: 40,
low: 40,
high: 60,
},
cci:{
constant: 0.015,
history: 14,
up: 100,
down: -100,
persistence: 0
}
},
watch:{
exchange: 'bitfinex'
},
trader: {
key: "",
secret:"",
parallelTrades: 2,
stopLossPercent: 6,
percentToInvest: 50,
real: true,
},
importer: {
daterange: {
from: "2018-01-10 00:00:00",
to: "2018-01-28 06:00:00"
}
},
backtest: {
daterange: {
from: "2018-01-01 00:00:00",
to: "2018-01-15 06:00:00"
}
},
debug: true,
telegrambot: {
token: '',
botName: '',
chat_id: -1
}
};
module.exports = config;