Bitcoin Forum
June 19, 2024, 06:06:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Trading Discussion / Re: Gekko - a javascript trading bot and backtesting platform on: April 09, 2014, 07:00:20 PM
Hi, everyone,

Two days ago (April 7), gekko started to return the following errors (after two weeks of flawless usage).
No OS packages were updated and no gekko configuration was changed.

Code:
root@ubuntu:~/gekko/bin# ./gekko_launch.sh BTCe-LTC

adding: log/gekko_log.BTCe-LTC.20140409144353.txt   (in=6681) (out=682) (deflated 90%) total bytes=9003419, compressed=776853 -> 91% savings
2014-04-09 14:43:53 (INFO):     Gekko v0.1.2 started
2014-04-09 14:43:53 (INFO):     I'm gonna make you rich, Bud Fox.


2014-04-09 14:43:53 (INFO):     Setting up Gekko in realtime mode

2014-04-09 14:43:53 (INFO):     Setting up:
2014-04-09 14:43:53 (INFO):              Trading Advisor
2014-04-09 14:43:53 (INFO):              Calculate trading advice
2014-04-09 14:43:53 (INFO):              Using trading method: DEMA

2014-04-09 14:43:53 (INFO):     Setting up:
2014-04-09 14:43:53 (INFO):              Mailer
2014-04-09 14:43:53 (INFO):              Mail module lets sends you email yourself everytime Gekko has new advice.
2014-04-09 14:43:53 (DEBUG):    Setup email adviser.

2014-04-09 14:43:56 (INFO):     Send advice via email.
2014-04-09 14:43:56 (INFO):     Setting up:
2014-04-09 14:43:56 (INFO):              Profit Simulator
2014-04-09 14:43:56 (INFO):              Paper trader that logs fake profits.

2014-04-09 14:43:56 (INFO):     Starting to watch the market: BTC-e LTC/USD
2014-04-09 14:43:56 (DEBUG):    ~market start
2014-04-09 14:43:56 (DEBUG):    checking history
2014-04-09 14:43:56 (DEBUG):    ~watch market
2014-04-09 14:43:56 (DEBUG):    Requested LTC/USD trade data from BTC-e ...
2014-04-09 14:43:56 (DEBUG):    BTC-E returned an error, retrying..
2014-04-09 14:44:06 (DEBUG):    BTC-E returned an error, retrying..
2014-04-09 14:44:16 (DEBUG):    BTC-E returned an error, retrying..
2014-04-09 14:44:26 (DEBUG):    BTC-E returned an error, retrying..
2014-04-09 14:44:36 (DEBUG):    BTC-E returned an error, retrying..



I have changed btc-e API key today just to see if the problem persists, but to no use, same error message.

Anyone with this problem, too?

Thank you.



Environment:
Code:
root@ubuntu:~/gekko/bin# node -v
v0.10.24

root@ubuntu:~/gekko/bin# npm -v
1.3.21

root@ubuntu:~/gekko/bin# uname -a
Linux ubuntu 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

root@ubuntu:~/gekko/bin# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:        12.04
Codename:       precise


gekko settings (comments deleted for brevity):

Code:
var config = {};

config.history = {
  directory: './history/'
}
config.debug = true;

config.watch = {
  enabled: true,
  exchange: 'BTCe',
  currency: 'USD',
  asset: 'LTC'
}

config.tradingAdvisor = {
  enabled: true,
  method: 'DEMA',
  candleSize: 30,
  historySize: 24
}

config.DEMA = {
  short: 10,
  long: 21,
  thresholds: {
    down: -0.025,
    up: 0.025
  }
};

config.MACD = {
  short: 10,
  long: 21,
  signal: 9,
  thresholds: {
    down: -0.025,
    up: 0.025,
    persistence: 1
  }
};

config.PPO = {
  short: 12,
  long: 26,
  signal: 9,
  thresholds: {
    down: -0.025,
    up: 0.025,
    persistence: 2
  }
};

config.RSI = {
  interval: 14,
  thresholds: {
    low: 30,
    high: 70,
    persistence: 1
  }
};

config.custom = {
  my_custom_setting: 10,
}

config.trader = {
  enabled: false,
  key: 'myKey',
  secret: 'mySecret',
  username: ''
}

config.adviceLogger = {
  enabled: true
}

config.profitSimulator = {
  enabled: true,
  reportInCurrency: true,
  simulationBalance: {
    asset: 10,
    currency: 0,
  },
  verbose: false,
  fee: 0.2,
  slippage: 0.08
}

config.mailer = {
  enabled: true,    
  sendMailOnStart: true,  
  email: 'mymail@nospam.org',    
  password: 'myPass',
  tag: '[GEKKO] ',
  server: 'smtp.gmail.com',
  smtpauth: true,
  user: 'mymail@nospam.org',
  from: 'mymail@nospam.org',
  to: 'mymail@nospam.org',
  ssl: false,
  port: '587',
  tls: true
}

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,
  host: '127.0.0.1',
  channelPrefix: '',
  broadcast: [
    'small candle'
  ]
}

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

config.backtest = {
  enabled: false
}

config['I understand that Gekko only automates MY OWN trading strategies'] = true;

module.exports = config;
2  Economy / Trading Discussion / Re: Gekko - a javascript trading bot for nodejs on: January 24, 2014, 02:43:58 PM
I might have missed it through the pages, but is anyone else having issues installing modules from npm?

Ubuntu 12.04.3 here.

Code:
user@bunbury-C08D:~/gekko$ node gekko

[...]

npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
Has anyone else got gekko running on Ubuntu, and found the workaround?


Your node version is too old. You'll have to use 0.10.x

Here is what I currently have:

Code:
root@localhost:~# uname -a
Linux localhost.localdomain 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

root@localhost:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:        12.04
Codename:       precise

root@localhost:~# node -v
v0.10.24

root@localhost:~# npm -v
1.3.21

Here's a tutorial on how to update your nodejs version.
http://slopjong.de/2012/10/31/how-to-install-the-latest-nodejs-in-ubuntu/

Cheers!

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!