askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.05k stars 3.95k forks source link

Can't do real trading #122

Closed iebb closed 10 years ago

iebb commented 10 years ago

This is my config file: // Everything is explained here: // https://github.com/askmike/gekko/blob/master/docs/Configuring_gekko.md

var config = {};

// ~~~~~~~~~~~~~~~~ // NORMAL ZONE // ~~~~~~~~~~~~~~~~

// Gekko stores historical history config.history = { // in what directory should Gekko store // and load historical data from? directory: './history/' }

config.tradingAdvisor = { enabled: true, method: 'moving average convergence divergence', methodSlug: 'MACD', candleSize: 5 }

// Exponential Moving Averages settings: config.EMA = { // 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 candles: 100, // the difference between the EMAs (to act as triggers) sellTreshold: -0.1, buyTreshold: 0.1 };

// MACD settings: config.MACD = { // timeframe per candle interval: 1, // in minutes // EMA weight (α) // the higher the weight, the more smooth (and delayed) the line short: 10, long: 21, signal: 9, // amount of candles to remember and base initial EMAs on candles: 25, // the difference between the EMAs (to act as triggers) sellTreshold: -0.025, buyTreshold: 0.025, // How many candle intervals until trigger fires persistence: 5, // Provide debugging output / verbose output debug: true, verbose: true };

// Monitor the live market config.normal = { enabled: true, exchange: 'cexio', // 'MtGox', 'BTCe', 'Bitstamp' or 'cexio' currency: 'BTC', asset: 'GHS', tradingEnabled: true, key: my key, secret: my secret , username: 'jebwizoscar', // your username, only fill in when using bitstamp or cexio }

// want Gekko to send a mail on buy or sell advice? config.mailer = { enabled: true, sendMailOnStart: true, email: 'm000000005@gmail.com', // only works for Gmail or Google apps accounts at the moment

// 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/askmike/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 // garantuee that your email address & password are safe! password: my password }

// do you want Gekko to calculate the profit of its own advice? config.profitSimulator = { enabled: true, // 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: false, // how much fee in % does each trade cost? fee: 0 }

config.adviceLogger = { enabled: true }

config.ircbot = { enabled: false, emitUpdats: false, channel: '#your-channel', server: 'irc.freenode.net', botName: 'gekkobot' }

config.webserver = { enabled: false, ws: { host: 'localhost', port: 1338, }, http: { host: 'localhost', port: 1339, }

}

// ~~~~~~~~~~~~~~~~ // ADVANCED ZONE // ~~~~~~~~~~~~~~~~ // // Backtesting strategies against historical data // // Test a strategy on historical data // // Read here: https://github.com/askmike/gekko/blob/master/docs/Backtesting.md // // NOTE: THIS FEATURE HAS NOT BEEN PROPERELY TESTED YET, IT IS NOT // ADVISED TO MAKE REAL WORLD DECISIONS BASED ON THE RESULTS // UNTIL THE CODE HAS BEEN PROVED SOLID. config.backtest = { candleFile: 'candles.csv', from: 0, to: 0 }

// For when you want to monitor a market but want to act (trade) on a different one // (or different ones). // // Check: https://github.com/askmike/gekko/blob/master/docs/Configuring_gekko.md

// monitor what market? config.watch = { exchange: 'MtGox', currency: 'USD', asset: 'BTC' }

// real trading config.traders = [ { exchange: 'MtGox', key: '', secret: '', currency: 'USD', asset: 'BTC', enabled: false }, { exchange: 'BTCe', key: '', secret: '', currency: 'USD', asset: 'BTC', enabled: false }, { exchange: 'Bitstamp', user: '', password: '', currency: 'USD', asset: 'BTC', enabled: false }, { exchange: 'cex.io', key: my key, secret: my secret , currency: 'BTC', asset: 'GHS', enabled: true } ];

config.debug = true; // for additional logging / debugging

module.exports = config;

askmike commented 10 years ago

You are using an unstable dev version of Gekko that does not have real trading implemented yet (mostly because it is not properly tested). Watch this issue for updates regarding this dev version.