-
Notifications
You must be signed in to change notification settings - Fork 73
/
config.sample.js
90 lines (75 loc) · 2.86 KB
/
config.sample.js
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
87
88
89
90
var config = {};
//------------------------------UserParams
//------------------------------EnableRealTrading
config.tradingEnabled = false;
//------------------------------EnableRealTrading
//------------------------------exchangeSettings
config.exchangeSettings = {
exchange: '',
// Options: (bitstamp, kraken)
currencyPair: {pair: '', asset: '', currency: ''},
// For Bitstamp just use {pair: 'XBTUSD', asset: 'XBT', currency: 'USD'}
// For Kraken look up the currency pairs in their API: https://api.kraken.com/0/public/AssetPairs
// Kraken Example: {pair: 'XXBTZEUR', asset: 'XXBT', currency: 'ZEUR'}
tradingReserveAsset: 0,
// Enter an amount of "asset" you would like to freeze (not trade)
tradingReserveCurrency: 0,
// Enter an amount of "currency" you would like to freeze (not trade)
slippagePercentage: 0.1
};
//------------------------------exchangeSettings
//------------------------------APISettings
config.apiSettings = {
bitstamp: {clientId: 0, apiKey: '', secret: ''},
kraken: {apiKey: '', secret: ''}
};
//------------------------------APISettings
//------------------------------dbSettings
config.mongoConnectionString = 'localhost/bitbot';
// The connection string for your MongoDB Installation
// Example: config.mongoConnectionString = 'username:[email protected]/mydb';
//------------------------------dbSettings
//------------------------------downloaderSettings
config.downloaderRefreshSeconds = 10;
// Best to keep this default setting unless you know what you are doing
//------------------------------downloaderSettings
//------------------------------candleStickSizeSettings
config.candleStickSizeMinutes = 5;
//------------------------------candleStickSizeSettings
//------------------------------orderSettings
config.orderKeepAliveMinutes = config.candleStickSizeMinutes / 10;
//------------------------------orderSettings
//------------------------------IndicatorSettings
config.indicatorSettings = {
indicator: 'MACD',
// Options: (MACD, PPO)
options: {neededPeriods: 26, longPeriods: 26, shortPeriods: 12, emaPeriods: 9},
buyTreshold: 0,
sellTreshold: 0
};
//------------------------------IndicatorSettings
//------------------------------stopLossSettings
config.stoplossSettings = {
enabled: false,
percentageBought: 1,
percentageSold: 1
}
//------------------------------stopLossSettings
//------------------------------PushOver
config.pushOver = {
enabled: false,
pushUserId: '',
pushAppToken: ''
};
// You can receive push notifications using pushover if you fill in these settings (https://pushover.net/).
//------------------------------PushOver
//------------------------------BackTesting
config.backTesting = {
initialBalance: 10000
};
//------------------------------BackTesting
//------------------------------Debug
config.debug = true;
//------------------------------Debug
//------------------------------UserParams
module.exports = config;