forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.js
318 lines (281 loc) · 8.29 KB
/
config.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
// Everything is explained here:
// https://github.com/kuzetsa/gekko/blob/master/docs/Configuring_gekko.md
var config = {};
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// GENERAL SETTINGS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Gekko stores historical history
config.history = {
// in what directory should Gekko store
// and load historical data from?
directory: './history/'
};
config.debug = false; // for additional logging / debugging
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// WATCHING A MARKET
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Monitor the live market
config.watch = {
enabled: true,
exchange: 'cexio', // 'MtGox', 'BTCe', 'Bitstamp', 'cexio' or 'kraken'
currency: 'BTC',
asset: 'GHS'
};
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// CONFIGURING TRADING ADVICE
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
config.tradingAdvisor = {
enabled: true,
method: 'ZERO',
candleSize: 1,
historySize: 2345
};
// Exponential Moving Averages settings:
config.DEMA = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 10,
long: 21,
// amount of candles to remember and base initial EMAs on
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -0.025,
up: 0.025
}
};
// MACD settings:
config.MACD = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 53,
long: 109,
signal: 41,
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -9999,
up: 0.00000001,
}
};
// x2MACD settings:
config.x2MACD = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 53,
long: 109,
signal: 41,
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -9999,
up: 0.00000001,
}
};
// nikiehihsa settings:
config.nikiehihsa = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 53,
long: 109,
signal: 41,
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -9999,
up: 0.00000001,
}
};
// x3nikiehihsa settings:
config.x3nikiehihsa = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 53,
long: 109,
signal: 41,
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -9999,
up: 0.00000001,
}
};
// ZERO settings:
config.ZERO = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 257.608488,
long: 364.313417,
signal: 225.158074,
// how optimistic is the MACD extrapolation going to be?
crystalball: 0.00000173,
// how large is the stats window for sanity checking?
window: 2345, // SHOULD NOT be larger than your historySize!!!
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -9999,
up: 0.00000042,
}
};
// PPO settings:
config.PPO = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 12,
long: 26,
signal: 9,
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -9999,
up: 0.00000001,
}
};
// RSI settings:
config.RSI = {
interval: 14,
thresholds: {
low: 30,
high: 70,
// How many candle intervals should a trend persist
// before we consider it real?
persistence: 1
}
};
// custom settings:
config.custom = {
my_custom_setting: 10,
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// CONFIGURING PLUGINS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Want Gekko to perform real trades on buy or sell advice?
// Enabling this will activate trades for the market being
// watched by config.watch
config.trader = {
enabled: false,
key: 'see next line',
secret: 'some sort of hash goes here',
username: 'fakename change this', // your username, as required by cexio
}
config.adviceLogger = {
enabled: true
}
// do you want Gekko to calculate the profit of its own advice?
config.profitSimulator = {
enabled: false,
// report the profit in the currency or the asset?
reportInCurrency: true,
// start balance, on what the current balance is compared with
simulationBalance: {
// these are in the unit types configured in the watcher.
asset: 1,
currency: 100,
},
// only want report after a sell? set to `false`.
verbose: true,
// how much fee in % does each trade cost?
fee: 1,
// how much slippage should Gekko assume per trade?
slippage: 0.5
}
// want Gekko to send a mail on buy or sell advice?
config.mailer = {
enabled: false, // Send Emails if true, false to turn off
sendMailOnStart: true, // Send 'Gekko starting' message if true, not if false
email: '', // Your Gmail address
// You don't have to set your password here, if you leave it blank we will ask it
// when Gekko's starts.
//
// NOTE: Gekko is an open source project < https://github.com/kuzetsa/gekko >,
// make sure you looked at the code or trust the maintainer of this bot when you
// fill in your email and password.
//
// WARNING: If you have NOT downloaded Gekko from the github page above we CANNOT
// guarantuee that your email address & password are safe!
password: '', // Your Gmail Password - if not supplied Gekko will prompt on startup.
tag: '[GEKKO] ', // Prefix all email subject lines with this
// ADVANCED MAIL SETTINGS
// you can leave those as is if you
// just want to use Gmail
server: 'smtp.gmail.com', // The name of YOUR outbound (SMTP) mail server.
smtpauth: true, // Does SMTP server require authentication (true for Gmail)
// The following 3 values default to the Email (above) if left blank
user: '', // Your Email server user name - usually your full Email address '[email protected]'
from: '', // '[email protected]'
to: '', // '[email protected], [email protected]'
ssl: true, // Use SSL (true for Gmail)
port: '', // Set if you don't want to use the default port
tls: false // Use TLS if true
}
config.mandrillMailer = {
enabled: false,
sendMailOnStart: true,
to: '', // to email
toName: 'Gekko user',
from: '', // from email
fromName: 'Gekko bot info',
apiKey: '', // Mandrill api key
}
config.smsPlivo = {
enabled: false,
sendMailOnStart: true,
smsPrefix: 'GEKKO:', // always start SMS message with this
to: '', // your SMS number
from: '', // SMS number to send from provided by Plivo
authId: '', // your Plivo auth ID
authToken: '' // your Plivo auth token
}
config.ircbot = {
enabled: false,
emitUpdats: false,
channel: '#your-channel',
server: 'irc.freenode.net',
botName: 'gekkobot'
}
config.campfire = {
enabled: false,
emitUpdates: false,
nickname: 'Gordon',
roomId: null,
apiKey: '',
account: ''
}
config.redisBeacon = {
enabled: false,
port: 6379, // redis default
host: '127.0.0.1', // localhost
// On default Gekko broadcasts
// events in the channel with
// the name of the event, set
// an optional prefix to the
// channel name.
channelPrefix: '',
broadcast: [
'small candle'
]
}
// the web interface not currently supported, maintainer of the plugin quit
// (not in a working state)
// read: https://github.com/askmike/gekko/issues/156
config.webserver = {
enabled: false,
ws: {
host: 'localhost',
port: 1338,
},
http: {
host: 'localhost',
port: 1339,
}
}
// not working, leave as is
config.backtest = {
enabled: false
}
// set this to true if you understand that Gekko will
// invest according to how you configured the indicators.
// None of the advice in the output is Gekko telling you
// to take a certain position. Instead it is the result
// of running the indicators you configured automatically.
//
// In other words: Gekko automates your trading strategies,
// it doesn't advice on itself, only set to true if you truly
// understand this.
//
config['I understand that Gekko only automates MY OWN trading strategies'] = false;
module.exports = config;