forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all configurables are stored in config.js now
- Loading branch information
Showing
6 changed files
with
66 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,4 @@ dwsync.xml | |
|
||
# Folders to ignore | ||
|
||
node_modules | ||
config.js | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var config = {}; | ||
|
||
// Gekko currently only supports Exponential Moving Averages | ||
config.tradingMethod = 'Exponential Moving Averages'; | ||
|
||
// Exponential Moving Averages settings: | ||
config.tradeConfig = { | ||
// timeframe per candle | ||
interval: 60, // in minutes | ||
// EMA weight (α) | ||
// the higher the weight, the more smooth (and delayed) the line | ||
shortEMA: 10, | ||
longEMA: 21, | ||
// amount of samples to remember and base initial EMAs on | ||
candles: 100, | ||
// max difference between first and last trade to base price calculation on | ||
sampleSize: 10, // in seconds | ||
// the difference between the EMAs (to act as triggers) | ||
sellTreshold: -0.25, | ||
buyTreshold: 0.25 | ||
}; | ||
|
||
config.debug = false // for additional logging | ||
|
||
// DANGER ZONE | ||
// | ||
// enable real trading BTC for real USD | ||
// | ||
// fill in you public and private key from mtgox / btc-e and uncomment to enable | ||
/* | ||
config.traders = [ | ||
{ | ||
exchange: 'MtGox', // either 'BTCe' or 'MtGox' | ||
key: '', | ||
secret: '' | ||
}, | ||
// { | ||
// exchange: 'BTCe', // either 'BTCe' or 'MtGox' | ||
// key: '', | ||
// secret: '' | ||
// } | ||
]; | ||
*/ | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters