UNPKG

3.82 kBJavaScriptView Raw
1// Everything is explained here:
2// https://github.com/askmike/gekko/blob/master/docs/Configuring_gekko.md
3
4var config = {};
5
6// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7// NORMAL ZONE
8// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
10// Gekko currently only supports Exponential Moving Averages
11config.tradingMethod = 'Exponential Moving Averages';
12
13// Exponential Moving Averages settings:
14config.EMA = {
15 // timeframe per candle
16 interval: 60, // in minutes
17 // EMA weight (α)
18 // the higher the weight, the more smooth (and delayed) the line
19 short: 10,
20 long: 21,
21 // amount of candles to remember and base initial EMAs on
22 candles: 100,
23 // the difference between the EMAs (to act as triggers)
24 sellTreshold: -0.25,
25 buyTreshold: 0.25
26};
27
28// Monitor the live market
29config.normal = {
30 enabled: true,
31 exchange: 'MtGox', // 'MtGox', 'BTCe' or 'Bitstamp'
32 currency: 'USD',
33 asset: 'BTC',
34 tradingEnabled: false,
35 key: '',
36 secret: '',
37}
38
39// example Bitstamp Config:
40
41// config.normal = {
42// enabled: true,
43// exchange: 'Bitstamp',
44// currency: 'USD',
45// asset: 'BTC',
46// tradingEnabled: false,
47// user: '',
48// password: '',
49// }
50
51// want Gekko to send a mail on buy or sell advice?
52config.mail = {
53 enabled: false,
54 email: '', // only works for Gmail or Google apps accounts at the moment
55
56 // You don't have to set your password here, if you leave it blank we will ask it
57 // when Gekko's starts.
58 //
59 // NOTE: Gekko is an open source project < https://github.com/askmike/gekko >,
60 // make sure you looked at the code or trust the maintainer of this bot when you
61 // fill in your email and password.
62 //
63 // WARNING: If you have NOT downloaded Gekko from the github page above we CANNOT
64 // garantuee that your email address & password are safe!
65 password: ''
66}
67
68// do you want Gekko to calculate the profit of its own advice?
69config.profitCalculator = {
70 enabled: true,
71 // report the profit in the currency or the asset?
72 reportInCurrency: true,
73 // start balance, on what the current balance is compared with
74 simulationBalance: {
75 // these are in the unit types configured in the watcher.
76 asset: 1,
77 currency: 100,
78 },
79 // only want report after a sell? set to `false`.
80 verbose: false,
81 // how much fee in % does each trade cost?
82 fee: 0.6
83}
84
85// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
86// ADVANCED ZONE
87// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88//
89// Backtesting strategies against historical data
90//
91// Test a strategy on historical data
92//
93// Read here: https://github.com/askmike/gekko/blob/master/docs/Backtesting.md
94//
95// NOTE: THIS FEATURE HAS NOT BEEN PROPERELY TESTED YET, IT IS NOT
96// ADVISED TO MAKE REAL WORLD DECISIONS BASED ON THE RESULTS
97// UNTIL THE CODE HAS BEEN PROVED SOLID.
98config.backtest = {
99 enabled: false,
100 candleFile: 'candles.csv',
101 from: 0,
102 to: 0
103}
104
105// For when you want to monitor a market but want to act (trade) on a different one
106// (or different ones).
107//
108// Check: https://github.com/askmike/gekko/blob/master/docs/Configuring_gekko.md
109
110// monitor what market?
111config.watch = {
112 exchange: 'MtGox',
113 currency: 'USD',
114 asset: 'BTC'
115}
116
117// real trading
118config.traders = [
119 {
120 exchange: 'MtGox',
121 key: '',
122 secret: '',
123 currency: 'USD',
124 asset: 'BTC',
125 enabled: false
126 },
127 {
128 exchange: 'BTCe',
129 key: '',
130 secret: '',
131 currency: 'USD',
132 asset: 'BTC',
133 enabled: false
134 },
135 {
136 exchange: 'Bitstamp',
137 user: '',
138 password: '',
139 currency: 'USD',
140 asset: 'BTC',
141 enabled: false
142 }
143];
144
145config.debug = false; // for additional logging / debugging
146
147module.exports = config;
\No newline at end of file