Bitcoin Forum
November 06, 2024, 07:24:57 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 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 »
  Print  
Author Topic: Gekko - a javascript trading bot and backtesting platform  (Read 147874 times)
CaLPaR
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 23, 2014, 01:13:05 AM
 #341

I don't know if this have suggested before, but I'm sure a lot of people would appreciate it you ware to add a support for the exchanges on cryptsy.com.
Cheers.  Grin
albertdros
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500


View Profile
January 23, 2014, 07:33:59 PM
 #342

anyone actively using this atm with good experiences? gonna try it out soon. Looks great. Was looking into cryptotrader but this bot seems a good alternative and its free Cheesy
Thom
Member
**
Offline Offline

Activity: 112
Merit: 10


Be kind man, don't be mankind


View Profile WWW
January 23, 2014, 10:19:00 PM
Last edit: January 24, 2014, 01:22:59 AM by Thom
 #343

anyone actively using this atm with good experiences? gonna try it out soon. Looks great. Was looking into cryptotrader but this bot seems a good alternative and its free Cheesy

I'm using cryptrade which is free and works with the candles stored at cryptotrader (but with no backtesting) at cex.io using the exact same EMA settings gekko uses by default, and that's working out well. 0.55BTC being flipped between GHS and BTC has grown to 0.6 in under a week Cheesy

BUT an instance of gekko doing simulated trading alongside it is (theoretically) making more, athough it's hard to count what with the mining that also occurs @ cex. Now that gekko-localdb can trade, I'll be switching over to it anyminutenow.

Here's about 3 days of gekko simulating trading:

Code:
2014-01-23 21:43:31 (INFO):	(PROFIT REPORT) original simulated balance:	 0.58611 BTC
2014-01-23 21:43:31 (INFO): (PROFIT REPORT) current simulated balance: 0.62616 BTC
2014-01-23 21:43:31 (INFO): (PROFIT REPORT) simulated profit: 0.04005 BTC (6.83275%)

cryptrade logs differently so the best I got from that is:

Code:
2014-01-23T22:16:17.819Z - verbose: updatePortfolio: { btc: 0.6083721, ghs: 0.00034388 }

and here's 2ish weeks in GHS. Obviously, pay attention only to the peaks. Methinks a little too twitchy.

It's short for Thomassina ⚥ • BTC veteran, Bitcointalk neophyte • BTC1THoM4cn8hHTyE637DEPMCLcerZe1mL1X • Cex.IO Cloud Mining - don't risk preorders, mine & trade now!
༺ ☤ Curecoin - Fold Proteins, Earn Coins! ☤   CURE: B8cjEuGKH3qofsxGGEVYdTwUrpfCTxQP7u ༻
glennmatthew
Sr. Member
****
Offline Offline

Activity: 462
Merit: 253


View Profile
January 24, 2014, 09:49:34 AM
 #344

Great job on the scripting. I just threw $20 into MtGox and started it up, so I could see it work in action.

I'd love to see Cryptsy support, so I can tailor the script to my trading style, and essentially automate what I'm currently doing manually.

You get a gold star from me. Maybe a DogeCoin too Wink


              ▄▄▄▄▄▄▄▄
          ▄▄████████████▄▄
       ▄████████████████████▄
     ▄██████████████▀█████████▄
   ▄███████████████   ██████████▄
  ▐█████████████████   ██████████▌
 ▐█████████████████▀    ██████████▌
 ███████████████▀        ██████████
▐████████████▀     ▄███   █████████▌
████████████    ▄████▀██▄███████████
██████████▀██▄████▀    █████████████
█████████   ███▀     ▄██████████████
▐█████████        ▄████████████████▌
 ██████████    ▄███████████████████
 ▐██████████   ███████████████████▌
  ▐██████████   █████████████████▌
   ▀██████████▄█████████████████▀
     ▀████████████████████████▀
       ▀████████████████████▀
          ▀▀████████████▀▀
              ▀▀▀▀▀▀▀▀
 
temtum




     █
    ██
   ████
  ██▌███
 ▐██▌███▌
 ███ ██▀▌
 ▀██ █▄██
 █▄█ ███▀
 ▀██ ██▄█
 █▄█ ███▌
  ██▌███
  ▐█▌██
   ▐█▌
    █
    █
     ▀
 




░░░░░░░░██████
░░░░░░░░██████
░░░░░░░░██████

░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████

░░░██████
░░░██████
░░░██████

░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
 







        ▄▄██████▄▄
       ▐██▀    ▀██▌
       ██        ██
       ██        ██
       ██        ██
      ██████████████
      █████  ███████     ██ 
  ██  █  ████████  █ ██   
      ███████  █████    ██   
      ██████████████
 








▄██▄
▀██▀         ▄██▄
             ▀██▀

       ▄██▄
       ▀██▀

           ▄██▄
  ▄██▄     ▀██▀
  ▀██▀
 
 


           ▄▄█▄▄   ▄
█▄        ████████▀▄
███      █████████▀
▐███▄    ████████▌
▄▄█████▄▄▄███████▌
  ▀█████████████
  ▄▄██████████▀
    ▄████████▀
▀▀████████▀
    ▀▀▀
 

    ▄█▀▀ ▄▄▄▄▄▄ ▀▀█▄
   ▐█▄████████████▄█▌
  ▐██████████████████▌
  █████▀▀▀████▀▀▀█████
 █████     ██     █████
▐██████▄▄▄████▄▄▄██████▌
 ████▄▀▀▀██████▀▀▀▄████
  ▀▀████        ████▀▀
      ▀▀        ▀▀
 

         █▀▀▄▄▄█▄
         █    ▀█▀
       ▄▄█▄▄
▄██▄▄████████▄▄██▄
█████▀▀████▀▀█████
 ███▄  ▄██▄  ▄███
  ▀████▀██▀████▀
    ▀███▄▄███▀
       ▀▀▀▀

██ ██ ██ ██

   ██ ██ ██

      ██ ██

      ██ ██
   
Homepage

      ██ ██

      ██ ██

   ██ ██ ██

██ ██ ██ ██
   
White Paper
glennmatthew
Sr. Member
****
Offline Offline

Activity: 462
Merit: 253


View Profile
January 24, 2014, 01:33:01 PM
 #345

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

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Cannot find module 'moment'
    at Function._resolveFilename (module.js:332:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/home/user/gekko/gekko.js:20:14)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)
user@bunbury-C08D:~/gekko$
user@bunbury-C08D:~/gekko$ node.js:201
node.js:201: command not found
user@bunbury-C08D:~/gekko$         throw e; // process.nextTick error, or 'error                                                 ' event on first tick
throw: command not found
-bash: //: Is a directory
user@bunbury-C08D:~/gekko$ screen
npm ERR!     reportbug --attach /home/user/gekko/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-34-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/user/gekko
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: lodash
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/user/gekko/npm-debug.log

When I attempt start the gekko.js process on node, I get this:

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

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Cannot find module 'moment'
    at Function._resolveFilename (module.js:332:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/home/user/gekko/gekko.js:20:14)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)

So I attempt to install the module in question:

Code:
user@bunbury-C08D:~/gekko$ npm install moment --registry http://165.225.128.50:8000
npm http GET http://165.225.128.50:8000/moment

npm ERR! Error: failed to fetch from registry: moment
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:209:10)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at Socket.<anonymous> (http.js:1137:11)
npm ERR!     at Socket.emit (events.js:67:17)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/user/gekko/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-34-generic
npm ERR! command "node" "/usr/bin/npm" "install" "moment" "--registry" "http://165.225.128.50:8000"
npm ERR! cwd /home/user/gekko
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: moment
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/user/gekko/npm-debug.log
npm not ok

Has anyone else got gekko running on Ubuntu, and found the workaround?


              ▄▄▄▄▄▄▄▄
          ▄▄████████████▄▄
       ▄████████████████████▄
     ▄██████████████▀█████████▄
   ▄███████████████   ██████████▄
  ▐█████████████████   ██████████▌
 ▐█████████████████▀    ██████████▌
 ███████████████▀        ██████████
▐████████████▀     ▄███   █████████▌
████████████    ▄████▀██▄███████████
██████████▀██▄████▀    █████████████
█████████   ███▀     ▄██████████████
▐█████████        ▄████████████████▌
 ██████████    ▄███████████████████
 ▐██████████   ███████████████████▌
  ▐██████████   █████████████████▌
   ▀██████████▄█████████████████▀
     ▀████████████████████████▀
       ▀████████████████████▀
          ▀▀████████████▀▀
              ▀▀▀▀▀▀▀▀
 
temtum




     █
    ██
   ████
  ██▌███
 ▐██▌███▌
 ███ ██▀▌
 ▀██ █▄██
 █▄█ ███▀
 ▀██ ██▄█
 █▄█ ███▌
  ██▌███
  ▐█▌██
   ▐█▌
    █
    █
     ▀
 




░░░░░░░░██████
░░░░░░░░██████
░░░░░░░░██████

░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████

░░░██████
░░░██████
░░░██████

░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
 







        ▄▄██████▄▄
       ▐██▀    ▀██▌
       ██        ██
       ██        ██
       ██        ██
      ██████████████
      █████  ███████     ██ 
  ██  █  ████████  █ ██   
      ███████  █████    ██   
      ██████████████
 








▄██▄
▀██▀         ▄██▄
             ▀██▀

       ▄██▄
       ▀██▀

           ▄██▄
  ▄██▄     ▀██▀
  ▀██▀
 
 


           ▄▄█▄▄   ▄
█▄        ████████▀▄
███      █████████▀
▐███▄    ████████▌
▄▄█████▄▄▄███████▌
  ▀█████████████
  ▄▄██████████▀
    ▄████████▀
▀▀████████▀
    ▀▀▀
 

    ▄█▀▀ ▄▄▄▄▄▄ ▀▀█▄
   ▐█▄████████████▄█▌
  ▐██████████████████▌
  █████▀▀▀████▀▀▀█████
 █████     ██     █████
▐██████▄▄▄████▄▄▄██████▌
 ████▄▀▀▀██████▀▀▀▄████
  ▀▀████        ████▀▀
      ▀▀        ▀▀
 

         █▀▀▄▄▄█▄
         █    ▀█▀
       ▄▄█▄▄
▄██▄▄████████▄▄██▄
█████▀▀████▀▀█████
 ███▄  ▄██▄  ▄███
  ▀████▀██▀████▀
    ▀███▄▄███▀
       ▀▀▀▀

██ ██ ██ ██

   ██ ██ ██

      ██ ██

      ██ ██
   
Homepage

      ██ ██

      ██ ██

   ██ ██ ██

██ ██ ██ ██
   
White Paper
San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
January 24, 2014, 01:47:51 PM
 #346

Why aren't you connecting to the default registry?

Also what version of node do you have?:

node -v

Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
glennmatthew
Sr. Member
****
Offline Offline

Activity: 462
Merit: 253


View Profile
January 24, 2014, 02:24:48 PM
 #347

I assumed it was a connection issue between me and NPM.

Here is the the result running "npm install"

It fails to get bitcoincharts?

(Node is v0.6.12)

Code:
npm http GET https://registry.npmjs.org/mtgox-apiv2
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/moment
npm http GET https://registry.npmjs.org/btc-e
npm http GET https://registry.npmjs.org/bitcoincharts
npm http GET https://registry.npmjs.org/emailjs/0.3.6
npm http GET https://registry.npmjs.org/cexio
npm http GET https://registry.npmjs.org/prompt-lite
npm http GET https://registry.npmjs.org/bitstamp
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/nedb
npm http GET https://registry.npmjs.org/line-reader

npm ERR! Error: failed to fetch from registry: bitcoincharts
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/user/gekko/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-34-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/user/gekko
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: bitcoincharts
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/user/gekko/npm-debug.log
npm not ok


              ▄▄▄▄▄▄▄▄
          ▄▄████████████▄▄
       ▄████████████████████▄
     ▄██████████████▀█████████▄
   ▄███████████████   ██████████▄
  ▐█████████████████   ██████████▌
 ▐█████████████████▀    ██████████▌
 ███████████████▀        ██████████
▐████████████▀     ▄███   █████████▌
████████████    ▄████▀██▄███████████
██████████▀██▄████▀    █████████████
█████████   ███▀     ▄██████████████
▐█████████        ▄████████████████▌
 ██████████    ▄███████████████████
 ▐██████████   ███████████████████▌
  ▐██████████   █████████████████▌
   ▀██████████▄█████████████████▀
     ▀████████████████████████▀
       ▀████████████████████▀
          ▀▀████████████▀▀
              ▀▀▀▀▀▀▀▀
 
temtum




     █
    ██
   ████
  ██▌███
 ▐██▌███▌
 ███ ██▀▌
 ▀██ █▄██
 █▄█ ███▀
 ▀██ ██▄█
 █▄█ ███▌
  ██▌███
  ▐█▌██
   ▐█▌
    █
    █
     ▀
 




░░░░░░░░██████
░░░░░░░░██████
░░░░░░░░██████

░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████

░░░██████
░░░██████
░░░██████

░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
 







        ▄▄██████▄▄
       ▐██▀    ▀██▌
       ██        ██
       ██        ██
       ██        ██
      ██████████████
      █████  ███████     ██ 
  ██  █  ████████  █ ██   
      ███████  █████    ██   
      ██████████████
 








▄██▄
▀██▀         ▄██▄
             ▀██▀

       ▄██▄
       ▀██▀

           ▄██▄
  ▄██▄     ▀██▀
  ▀██▀
 
 


           ▄▄█▄▄   ▄
█▄        ████████▀▄
███      █████████▀
▐███▄    ████████▌
▄▄█████▄▄▄███████▌
  ▀█████████████
  ▄▄██████████▀
    ▄████████▀
▀▀████████▀
    ▀▀▀
 

    ▄█▀▀ ▄▄▄▄▄▄ ▀▀█▄
   ▐█▄████████████▄█▌
  ▐██████████████████▌
  █████▀▀▀████▀▀▀█████
 █████     ██     █████
▐██████▄▄▄████▄▄▄██████▌
 ████▄▀▀▀██████▀▀▀▄████
  ▀▀████        ████▀▀
      ▀▀        ▀▀
 

         █▀▀▄▄▄█▄
         █    ▀█▀
       ▄▄█▄▄
▄██▄▄████████▄▄██▄
█████▀▀████▀▀█████
 ███▄  ▄██▄  ▄███
  ▀████▀██▀████▀
    ▀███▄▄███▀
       ▀▀▀▀

██ ██ ██ ██

   ██ ██ ██

      ██ ██

      ██ ██
   
Homepage

      ██ ██

      ██ ██

   ██ ██ ██

██ ██ ██ ██
   
White Paper
glennmatthew
Sr. Member
****
Offline Offline

Activity: 462
Merit: 253


View Profile
January 24, 2014, 02:32:03 PM
 #348

I just created a new VPS instance, still Ubuntu 12.04.3 x64

Just ran the commands:

$ sudo apt-get install nodejs
$ sudo apt-get install git
$ sudo apt-get install npm
$ cd $home
$ git clone git://github.com/askmike/gekko.git
$ cd gekko/
$ npm install

Same error, however it fails at lodash. Is this a NPM server/connection issue?


              ▄▄▄▄▄▄▄▄
          ▄▄████████████▄▄
       ▄████████████████████▄
     ▄██████████████▀█████████▄
   ▄███████████████   ██████████▄
  ▐█████████████████   ██████████▌
 ▐█████████████████▀    ██████████▌
 ███████████████▀        ██████████
▐████████████▀     ▄███   █████████▌
████████████    ▄████▀██▄███████████
██████████▀██▄████▀    █████████████
█████████   ███▀     ▄██████████████
▐█████████        ▄████████████████▌
 ██████████    ▄███████████████████
 ▐██████████   ███████████████████▌
  ▐██████████   █████████████████▌
   ▀██████████▄█████████████████▀
     ▀████████████████████████▀
       ▀████████████████████▀
          ▀▀████████████▀▀
              ▀▀▀▀▀▀▀▀
 
temtum




     █
    ██
   ████
  ██▌███
 ▐██▌███▌
 ███ ██▀▌
 ▀██ █▄██
 █▄█ ███▀
 ▀██ ██▄█
 █▄█ ███▌
  ██▌███
  ▐█▌██
   ▐█▌
    █
    █
     ▀
 




░░░░░░░░██████
░░░░░░░░██████
░░░░░░░░██████

░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████

░░░██████
░░░██████
░░░██████

░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
 







        ▄▄██████▄▄
       ▐██▀    ▀██▌
       ██        ██
       ██        ██
       ██        ██
      ██████████████
      █████  ███████     ██ 
  ██  █  ████████  █ ██   
      ███████  █████    ██   
      ██████████████
 








▄██▄
▀██▀         ▄██▄
             ▀██▀

       ▄██▄
       ▀██▀

           ▄██▄
  ▄██▄     ▀██▀
  ▀██▀
 
 


           ▄▄█▄▄   ▄
█▄        ████████▀▄
███      █████████▀
▐███▄    ████████▌
▄▄█████▄▄▄███████▌
  ▀█████████████
  ▄▄██████████▀
    ▄████████▀
▀▀████████▀
    ▀▀▀
 

    ▄█▀▀ ▄▄▄▄▄▄ ▀▀█▄
   ▐█▄████████████▄█▌
  ▐██████████████████▌
  █████▀▀▀████▀▀▀█████
 █████     ██     █████
▐██████▄▄▄████▄▄▄██████▌
 ████▄▀▀▀██████▀▀▀▄████
  ▀▀████        ████▀▀
      ▀▀        ▀▀
 

         █▀▀▄▄▄█▄
         █    ▀█▀
       ▄▄█▄▄
▄██▄▄████████▄▄██▄
█████▀▀████▀▀█████
 ███▄  ▄██▄  ▄███
  ▀████▀██▀████▀
    ▀███▄▄███▀
       ▀▀▀▀

██ ██ ██ ██

   ██ ██ ██

      ██ ██

      ██ ██
   
Homepage

      ██ ██

      ██ ██

   ██ ██ ██

██ ██ ██ ██
   
White Paper
png000
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 24, 2014, 02:43:58 PM
 #349

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!

whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
January 24, 2014, 02:45:47 PM
 #350

Great job on the scripting. I just threw $20 into MtGox and started it up, so I could see it work in action.

I'd love to see Cryptsy support, so I can tailor the script to my trading style, and essentially automate what I'm currently doing manually.

You get a gold star from me. Maybe a DogeCoin too Wink

First lets get Gekko working Smiley

I might have missed it through the pages, but is anyone else having issues installing modules from npm?

I just created a new VPS instance, still Ubuntu 12.04.3 x64
[..]
Same error, however it fails at lodash. Is this a NPM server/connection issue?

To bad you are having trouble installing Gekko. The problems all have to do with the fact that the nodejs package shipped with the default ubuntu repos are heavily outdated (nodejs is being really actively updated and Gekko requires a newer version). To install the proper nodejs that won't cause any problems:

Code:
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

(from the nodejs docs)

--

Note that Gekko is open source and I encourage everyone to give it a try. Though in the current state it's not focused on end users, it requires installing developer tools and a command line / configuration file style interface. I am working on a webbased (hosted) backtesting platform similar to CT as well as hosted real traders (far far future).

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
glennmatthew
Sr. Member
****
Offline Offline

Activity: 462
Merit: 253


View Profile
January 24, 2014, 03:16:18 PM
 #351

First lets get Gekko working Smiley

What I failed to mention, is I had Gekko working fine on my Windows PC at home. I wanted to move it to a server for stability, my internet connection is pretty dodgy.

I'm actually more curious about your trading rules. I've been tweaking them to see if I can match different tolerance levels to risk. It's pretty experimental in itself, and I'm happy to lose the funds I'm trading with, in the name of art/science/finance.

I'll have a look re-migrating across to Ubuntu in a few hours, I appreciate your input Smiley


              ▄▄▄▄▄▄▄▄
          ▄▄████████████▄▄
       ▄████████████████████▄
     ▄██████████████▀█████████▄
   ▄███████████████   ██████████▄
  ▐█████████████████   ██████████▌
 ▐█████████████████▀    ██████████▌
 ███████████████▀        ██████████
▐████████████▀     ▄███   █████████▌
████████████    ▄████▀██▄███████████
██████████▀██▄████▀    █████████████
█████████   ███▀     ▄██████████████
▐█████████        ▄████████████████▌
 ██████████    ▄███████████████████
 ▐██████████   ███████████████████▌
  ▐██████████   █████████████████▌
   ▀██████████▄█████████████████▀
     ▀████████████████████████▀
       ▀████████████████████▀
          ▀▀████████████▀▀
              ▀▀▀▀▀▀▀▀
 
temtum




     █
    ██
   ████
  ██▌███
 ▐██▌███▌
 ███ ██▀▌
 ▀██ █▄██
 █▄█ ███▀
 ▀██ ██▄█
 █▄█ ███▌
  ██▌███
  ▐█▌██
   ▐█▌
    █
    █
     ▀
 




░░░░░░░░██████
░░░░░░░░██████
░░░░░░░░██████

░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████

░░░██████
░░░██████
░░░██████

░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
 







        ▄▄██████▄▄
       ▐██▀    ▀██▌
       ██        ██
       ██        ██
       ██        ██
      ██████████████
      █████  ███████     ██ 
  ██  █  ████████  █ ██   
      ███████  █████    ██   
      ██████████████
 








▄██▄
▀██▀         ▄██▄
             ▀██▀

       ▄██▄
       ▀██▀

           ▄██▄
  ▄██▄     ▀██▀
  ▀██▀
 
 


           ▄▄█▄▄   ▄
█▄        ████████▀▄
███      █████████▀
▐███▄    ████████▌
▄▄█████▄▄▄███████▌
  ▀█████████████
  ▄▄██████████▀
    ▄████████▀
▀▀████████▀
    ▀▀▀
 

    ▄█▀▀ ▄▄▄▄▄▄ ▀▀█▄
   ▐█▄████████████▄█▌
  ▐██████████████████▌
  █████▀▀▀████▀▀▀█████
 █████     ██     █████
▐██████▄▄▄████▄▄▄██████▌
 ████▄▀▀▀██████▀▀▀▄████
  ▀▀████        ████▀▀
      ▀▀        ▀▀
 

         █▀▀▄▄▄█▄
         █    ▀█▀
       ▄▄█▄▄
▄██▄▄████████▄▄██▄
█████▀▀████▀▀█████
 ███▄  ▄██▄  ▄███
  ▀████▀██▀████▀
    ▀███▄▄███▀
       ▀▀▀▀

██ ██ ██ ██

   ██ ██ ██

      ██ ██

      ██ ██
   
Homepage

      ██ ██

      ██ ██

   ██ ██ ██

██ ██ ██ ██
   
White Paper
whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
January 24, 2014, 03:46:31 PM
 #352

What I failed to mention, is I had Gekko working fine on my Windows PC at home. I wanted to move it to a server for stability, my internet connection is pretty dodgy.

I'll have a look re-migrating across to Ubuntu in a few hours, I appreciate your input Smiley

Awesome, I'm pretty sure we can run it on ubuntu as well. I'm currently running ~25 gekkos across different linux servers (centOS and ubuntu), also running Gekkos on OS X.

Most errors you posted came from NPM and I can't really make that more clear. But I just pushed an update to the localDB branch that will log an error when you try to run Gekko with an old, outdated node version:

Quote
Your local version of nodejs is to old for Gekko. You have v0.8.4 and you need atleast >=0.10.x

I'm actually more curious about your trading rules. I've been tweaking them to see if I can match different tolerance levels to risk. It's pretty experimental in itself, and I'm happy to lose the funds I'm trading with, in the name of art/science/finance.

I'm hoping to get to a point similar to CT where users can design / tweak their own methods. To do that we first need a bunch of indicators (and ta-lib, the library CT plugged in, will remain an optional choice for multiple reasons which means we need to write indicators ourselves).

If you have specific questions about the current DEMA, MACD or PPO implementation and what makes them trigger let me know!

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
January 24, 2014, 03:49:42 PM
 #353

anyone actively using this atm with good experiences? gonna try it out soon. Looks great. Was looking into cryptotrader but this bot seems a good alternative and its free Cheesy

I'm using cryptrade which is free and works with the candles stored at cryptotrader (but with no backtesting) at cex.io using the exact same EMA settings gekko uses by default, and that's working out well. 0.55BTC being flipped between GHS and BTC has grown to 0.6 in under a week Cheesy

BUT an instance of gekko doing simulated trading alongside it is (theoretically) making more, athough it's hard to count what with the mining that also occurs @ cex. Now that gekko-localdb can trade, I'll be switching over to it anyminutenow.

Here's about 3 days of gekko simulating trading:

Code:
2014-01-23 21:43:31 (INFO):	(PROFIT REPORT) original simulated balance:	 0.58611 BTC
2014-01-23 21:43:31 (INFO): (PROFIT REPORT) current simulated balance: 0.62616 BTC
2014-01-23 21:43:31 (INFO): (PROFIT REPORT) simulated profit: 0.04005 BTC (6.83275%)

cryptrade logs differently so the best I got from that is:

Code:
2014-01-23T22:16:17.819Z - verbose: updatePortfolio: { btc: 0.6083721, ghs: 0.00034388 }

and here's 2ish weeks in GHS. Obviously, pay attention only to the peaks. Methinks a little too twitchy.


So you are using the cryptrade for real trading right now? Let me know if the profit reporting is wrong (though note you have to set slippage level yourself, was added a couple of days ago). Though the implementation DEMA is not 100% the same at CT compared to Gekko's version.

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
Thom
Member
**
Offline Offline

Activity: 112
Merit: 10


Be kind man, don't be mankind


View Profile WWW
January 24, 2014, 08:17:25 PM
Last edit: January 25, 2014, 01:08:55 AM by Thom
 #354

So you are using the cryptrade for real trading right now? Let me know if the profit reporting is wrong (though note you have to set slippage level yourself, was added a couple of days ago). Though the implementation DEMA is not 100% the same at CT compared to Gekko's version.

Those stats were running CT, with gekko simulating trading with same settings on the side. They approximately agreed, and what you said about gekko's candles not being from 00sec to 60sec explained (some) variance.

Today I've started running just gekko, letting it trade and simulate at the same time. 1m period, Default DEMA & slippage.

so far simulation says:
Code:
2014-01-24 19:05:54 (INFO):	(PROFIT REPORT) simulated profit:		 -0.00385 BTC (-0.62741%)

Which is about right. Hard to measure exactly since I'm currently holding GHS, plus it's been a lame day on the cex curve for dEMA.
(edit: Now I'm back in BTC. Simulated: 0.61022 / Actual: 0.61072 )
(edit again: few hours later Simulated: 0.60987 / Actual: 0.61094 ) increase mostly mining. Trades happened, but variance tiny.

And tiny loss bothers me not a jot, since the bot is there to make sure massive lurches in the graph get acted on quickly. (basically, so I can sleep ever.) I can take a little hit to the balance on flat days that trick EMA slightly, 'cuz the days with movement in the graphs make up for it, and the mined BTC from holding GHS @ cex balances out little hiccup losses. EMA values to 'prefer' holding GHS in flatline and very slow drift situations would be better for cex though to maximise mining.

I'm specifically running sim and real trading at the same time because of the mining from GHS held at cex; sim will show me what I'd have made just trading, whereas actual will in theory be higher due to mining rewards. (edit: knew it.) It's entirely possible at cex that's it's more profitable to sell less often in order to keep mining.

Now I've seen it run and trade, more output suggestions!
'cos as it is now you can see simulation balances but not your actual balance...
So: after every trade, something like "Bought XX<asset> for XX<currency>" would help clarify.
And: a portfolio report with % gain/loss much like that of simulated trading would also be good after every trade.
Also: Successful has one L Wink

One more thing: CT ignores amounts below 0.001, (i think) so there was always a bit of balance left in what one doesn't want to be holding. Word on CT's messageboard said that was a cex API limitation. Guess not, cos no such problem with gekko. Nice.
Another difference is that CT will sell mining rewards as they build up, often for unfavourable prices. Because gekko waits until the *beginning* of an EMA upswing, mining reward BTC are sold for GHS at the appropriate time, when they're (relatively) cheap. Double Nice.

Give it a day or two and I'll post how my graph looks after gekko's played with it!

Also: post your cex.io referral link already! Donations are nice but a referral is forever. Plus it's an utter delight having bot-wielding referrals in your cex charts, seeing them rise and fall as their bots trade the EMAs alongside one's own.

It's short for Thomassina ⚥ • BTC veteran, Bitcointalk neophyte • BTC1THoM4cn8hHTyE637DEPMCLcerZe1mL1X • Cex.IO Cloud Mining - don't risk preorders, mine & trade now!
༺ ☤ Curecoin - Fold Proteins, Earn Coins! ☤   CURE: B8cjEuGKH3qofsxGGEVYdTwUrpfCTxQP7u ༻
glennmatthew
Sr. Member
****
Offline Offline

Activity: 462
Merit: 253


View Profile
January 25, 2014, 10:45:12 AM
 #355

Most errors you posted came from NPM and I can't really make that more clear.

I actually worked that out, which is why I was trying to use a proxy and connect to NPM directly.

It has been 5+ years since I've had to use command prompt on linux, so I wasn't doing too bad to get that far Wink


              ▄▄▄▄▄▄▄▄
          ▄▄████████████▄▄
       ▄████████████████████▄
     ▄██████████████▀█████████▄
   ▄███████████████   ██████████▄
  ▐█████████████████   ██████████▌
 ▐█████████████████▀    ██████████▌
 ███████████████▀        ██████████
▐████████████▀     ▄███   █████████▌
████████████    ▄████▀██▄███████████
██████████▀██▄████▀    █████████████
█████████   ███▀     ▄██████████████
▐█████████        ▄████████████████▌
 ██████████    ▄███████████████████
 ▐██████████   ███████████████████▌
  ▐██████████   █████████████████▌
   ▀██████████▄█████████████████▀
     ▀████████████████████████▀
       ▀████████████████████▀
          ▀▀████████████▀▀
              ▀▀▀▀▀▀▀▀
 
temtum




     █
    ██
   ████
  ██▌███
 ▐██▌███▌
 ███ ██▀▌
 ▀██ █▄██
 █▄█ ███▀
 ▀██ ██▄█
 █▄█ ███▌
  ██▌███
  ▐█▌██
   ▐█▌
    █
    █
     ▀
 




░░░░░░░░██████
░░░░░░░░██████
░░░░░░░░██████

░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░██████

░░░██████
░░░██████
░░░██████

░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
░░░░░░░░░░░░░░░░░░░░░░░░░██████
 







        ▄▄██████▄▄
       ▐██▀    ▀██▌
       ██        ██
       ██        ██
       ██        ██
      ██████████████
      █████  ███████     ██ 
  ██  █  ████████  █ ██   
      ███████  █████    ██   
      ██████████████
 








▄██▄
▀██▀         ▄██▄
             ▀██▀

       ▄██▄
       ▀██▀

           ▄██▄
  ▄██▄     ▀██▀
  ▀██▀
 
 


           ▄▄█▄▄   ▄
█▄        ████████▀▄
███      █████████▀
▐███▄    ████████▌
▄▄█████▄▄▄███████▌
  ▀█████████████
  ▄▄██████████▀
    ▄████████▀
▀▀████████▀
    ▀▀▀
 

    ▄█▀▀ ▄▄▄▄▄▄ ▀▀█▄
   ▐█▄████████████▄█▌
  ▐██████████████████▌
  █████▀▀▀████▀▀▀█████
 █████     ██     █████
▐██████▄▄▄████▄▄▄██████▌
 ████▄▀▀▀██████▀▀▀▄████
  ▀▀████        ████▀▀
      ▀▀        ▀▀
 

         █▀▀▄▄▄█▄
         █    ▀█▀
       ▄▄█▄▄
▄██▄▄████████▄▄██▄
█████▀▀████▀▀█████
 ███▄  ▄██▄  ▄███
  ▀████▀██▀████▀
    ▀███▄▄███▀
       ▀▀▀▀

██ ██ ██ ██

   ██ ██ ██

      ██ ██

      ██ ██
   
Homepage

      ██ ██

      ██ ██

   ██ ██ ██

██ ██ ██ ██
   
White Paper
Thom
Member
**
Offline Offline

Activity: 112
Merit: 10


Be kind man, don't be mankind


View Profile WWW
January 26, 2014, 12:30:30 PM
Last edit: January 26, 2014, 12:50:59 PM by Thom
 #356

Uh oh! Semi-critical error:

Code:
2014-01-26 11:15:30 (ERROR):	cancel order failed: Nonce must be incremented

I've noticed an identical error in cryptrade, so I'm guessing the actual error string is from cex itself, so maybe cex skips the odd nonce.
Difference is: when this happens, cryptrade carries right on regardless, but gekko hangs.
What it (probably) needs is to increment the nonce again and retry.

Also: this happened when there was an order open, which got left hanging.
When gekko started, it interpreted this as
Code:
GHS: -7.12206245
which obviously is weirdass, and makes things like this happen:
Code:
wanted to buy GHS but the amount is to small (-1.0696497) at cex.io
A "cancel / ignore open orders on start" line in the config and a tweak to the startup maths would help such confusion.

Edit: Once the order was cancelled by hand and gekko restarted, it traded it as usual.

Edit again: having restarted gekko a few times, it's clear that a "get trading sim start balance from real balance" option would help lots.

It's short for Thomassina ⚥ • BTC veteran, Bitcointalk neophyte • BTC1THoM4cn8hHTyE637DEPMCLcerZe1mL1X • Cex.IO Cloud Mining - don't risk preorders, mine & trade now!
༺ ☤ Curecoin - Fold Proteins, Earn Coins! ☤   CURE: B8cjEuGKH3qofsxGGEVYdTwUrpfCTxQP7u ༻
Stingery64
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
January 27, 2014, 07:00:21 AM
 #357

looking for help..
i installed node.js
try to follow the installation steps and i get this once i put npm install

------------
C:\Users\Lenovo\Desktop\gekko-master>npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open 'C:\Users\Lenovo\Desktop\gekko-master\package
.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directo
ry.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Lenovo\Desktop\gekko-master
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! path C:\Users\Lenovo\Desktop\gekko-master\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Lenovo\Desktop\gekko-master\npm-debug.log
npm ERR! not ok code 0-

-----------
whydifficult (OP)
Sr. Member
****
Offline Offline

Activity: 287
Merit: 250



View Profile WWW
January 27, 2014, 10:43:39 AM
 #358

Kraken support has been added to the unstable version, we are currently fixing the last remaining kinks out of the cable.

---



Those stats were running CT, with gekko simulating trading with same settings on the side. They approximately agreed, and what you said about gekko's candles not being from 00sec to 60sec explained (some) variance.

Today I've started running just gekko, letting it trade and simulate at the same time. 1m period, Default DEMA & slippage.

so far simulation says:
Code:
2014-01-24 19:05:54 (INFO):	(PROFIT REPORT) simulated profit:		 -0.00385 BTC (-0.62741%)

Which is about right. Hard to measure exactly since I'm currently holding GHS, plus it's been a lame day on the cex curve for dEMA.
(edit: Now I'm back in BTC. Simulated: 0.61022 / Actual: 0.61072 )
(edit again: few hours later Simulated: 0.60987 / Actual: 0.61094 ) increase mostly mining. Trades happened, but variance tiny.

And tiny loss bothers me not a jot, since the bot is there to make sure massive lurches in the graph get acted on quickly. (basically, so I can sleep ever.) I can take a little hit to the balance on flat days that trick EMA slightly, 'cuz the days with movement in the graphs make up for it, and the mined BTC from holding GHS @ cex balances out little hiccup losses. EMA values to 'prefer' holding GHS in flatline and very slow drift situations would be better for cex though to maximise mining.

I'm specifically running sim and real trading at the same time because of the mining from GHS held at cex; sim will show me what I'd have made just trading, whereas actual will in theory be higher due to mining rewards. (edit: knew it.) It's entirely possible at cex that's it's more profitable to sell less often in order to keep mining.

Awesome let me know how it goes. You can always set the sell threshold higher so that only really steep downtrends would trigger a sell.

Now I've seen it run and trade, more output suggestions!
'cos as it is now you can see simulation balances but not your actual balance...
So: after every trade, something like "Bought XX<asset> for XX<currency>" would help clarify.
And: a portfolio report with % gain/loss much like that of simulated trading would also be good after every trade.
Also: Successful has one L Wink

Thanks will look at this.

EDIT: someone requested that we output the trades into a CSV file. Is this also something you would use?

One more thing: CT ignores amounts below 0.001, (i think) so there was always a bit of balance left in what one doesn't want to be holding. Word on CT's messageboard said that was a cex API limitation. Guess not, cos no such problem with gekko. Nice.
Another difference is that CT will sell mining rewards as they build up, often for unfavourable prices. Because gekko waits until the *beginning* of an EMA upswing, mining reward BTC are sold for GHS at the appropriate time, when they're (relatively) cheap. Double Nice.

Give it a day or two and I'll post how my graph looks after gekko's played with it!

Also: post your cex.io referral link already! Donations are nice but a referral is forever. Plus it's an utter delight having bot-wielding referrals in your cex charts, seeing them rise and fall as their bots trade the EMAs alongside one's own.

I'm interested in all your feedback! Here is my [reflink](https://cex.io/r/0/askmike/0/) btw.

Uh oh! Semi-critical error:

Code:
2014-01-26 11:15:30 (ERROR):	cancel order failed: Nonce must be incremented

I've noticed an identical error in cryptrade, so I'm guessing the actual error string is from cex itself, so maybe cex skips the odd nonce.
Difference is: when this happens, cryptrade carries right on regardless, but gekko hangs.
What it (probably) needs is to increment the nonce again and retry.

Also: this happened when there was an order open, which got left hanging.
When gekko started, it interpreted this as
Code:
GHS: -7.12206245
which obviously is weirdass, and makes things like this happen:
Code:
wanted to buy GHS but the amount is to small (-1.0696497) at cex.io
A "cancel / ignore open orders on start" line in the config and a tweak to the startup maths would help such confusion.

Edit: Once the order was cancelled by hand and gekko restarted, it traded it as usual.


So this error has probably to do with you using the same API keys for both CT and Gekko. The nonce has to do with security around the API: in every request applications do to the API they have to send a counter and this counter always needs to be higher than the last one. This is easy if you do all the requests (just write down the last counter everytime and up it by one). Though if you have the same keys for both Gekko and CT they will clash because they are unaware of eachothers counter.

Gekko and CT use the same library to connect to CEX.io, Pulsecat was the author (though he copied it from my Bitstamp code). A fix for this particular issue has been suggested almost 2 weeks ago. Unfortunately pulsecat needs to accept this fix and has not done this yet.

Edit again: having restarted gekko a few times, it's clear that a "get trading sim start balance from real balance" option would help lots.

Great idea Thanks!

looking for help..
i installed node.js
try to follow the installation steps and i get this once i put npm install

------------
C:\Users\Lenovo\Desktop\gekko-master>npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open 'C:\Users\Lenovo\Desktop\gekko-master\package
.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directo
ry.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Lenovo\Desktop\gekko-master
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! path C:\Users\Lenovo\Desktop\gekko-master\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Lenovo\Desktop\gekko-master\npm-debug.log
npm ERR! not ok code 0-

-----------

Could you list the contents of the gekko-master folder on your desktop? (screenshot for example).

Gekko a nodejs bitcoin trading bot!
Realtime Bitcoin Globe - visualizing all transactions and blocks
Tip jar (BTC): 1KyQdQ9ctjCrGjGRCWSBhPKcj5omy4gv5S
Thom
Member
**
Offline Offline

Activity: 112
Merit: 10


Be kind man, don't be mankind


View Profile WWW
January 27, 2014, 01:36:12 PM
Last edit: January 27, 2014, 02:42:00 PM by Thom
 #359

It's a convoluted quote-a-thon!

Awesome let me know how it goes. You can always set the sell threshold higher so that only really steep downtrends would trigger a sell.

Yeah, I tweaked the buy/sell thresholds which, coupled with yesterday's moves @ cex = profit Smiley

One uninterrupted 24hr session overnight yielded:

Code:
2014-01-27 12:11:16 (INFO):	(PROFIT REPORT) original simulated balance:	 0.65978 BTC
2014-01-27 12:11:16 (INFO): (PROFIT REPORT) current simulated balance: 0.69191 BTC
ACTUAL balance: 0.67235958

Simulation mode is currently way optimistic, which is weird: since it doesn't account for mining, it really should be under, not over.

EDIT: someone requested that we output the trades into a CSV file. Is this also something you would use?

YESSSSSSSS. I currently lift CSV data from cex to visualise bot winnings, but raw csv from gekko would be good (IF it kept a constant eye on your balances and had them in the CSV)

Uh oh! Semi-critical error:
Code:
2014-01-26 11:15:30 (ERROR):	cancel order failed: Nonce must be incremented
So this error has probably to do with you using the same API keys for both CT and Gekko.

Actually nope, gekko was my only thing running on that api key that day. Plus I've run CT and gekko and my crappy little namecoin selling bot all together before on the one API key and it hasn't given a hoot. Regardless, an increment and retry should fix the hang.

A new observation: when gekko said this, it actually meant "sell", not buy. suggest change to "trade"
Code:
2014-01-27 13:42:26 (INFO):	wanted to buy GHS but the amount is to small (0) at cex.io

Edit: and here's today's weirdness:
Code:
2014-01-27 14:32:25 (INFO):	wanted to buy but insufficient BTC (17.39210254031083) at cex.io
What. Also that isn't the BTC balance in brackets, it's the GHS equivalent. What? Only happened once on startup. After restarting, it was fine.

I'm interested in all your feedback! Here is my [reflink](https://cex.io/r/0/askmike/0/) btw.

You got it: Feedback: Awesome! Gekko + cex.io = profit.

Lags / bugs out / hangs *far* less often than cryptrade with the localdb, and comes up with a little more than CT in terms of profit.
Gekko candles not having to start at 00sec makes for much agility too. Is it possible to run at sub-minute intervals? I'm scared to try.

After a while (specifically after I've watched charts and made myself understand MACD & PPO) I'll run a second gekko instance with different config... And when I do, your referral link is getting some action. Slap it in your sig too, me talking cex so much in the gekko thread and lauding it for being a reasonably "safe" exchange to test a tradebot in can't hurt your odds of signups.

It's short for Thomassina ⚥ • BTC veteran, Bitcointalk neophyte • BTC1THoM4cn8hHTyE637DEPMCLcerZe1mL1X • Cex.IO Cloud Mining - don't risk preorders, mine & trade now!
༺ ☤ Curecoin - Fold Proteins, Earn Coins! ☤   CURE: B8cjEuGKH3qofsxGGEVYdTwUrpfCTxQP7u ༻
San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
January 27, 2014, 03:48:05 PM
 #360

It's a convoluted quote-a-thon!

Awesome let me know how it goes. You can always set the sell threshold higher so that only really steep downtrends would trigger a sell.

Yeah, I tweaked the buy/sell thresholds which, coupled with yesterday's moves @ cex = profit Smiley

One uninterrupted 24hr session overnight yielded:

Code:
2014-01-27 12:11:16 (INFO):	(PROFIT REPORT) original simulated balance:	 0.65978 BTC
2014-01-27 12:11:16 (INFO): (PROFIT REPORT) current simulated balance: 0.69191 BTC
ACTUAL balance: 0.67235958

Simulation mode is currently way optimistic, which is weird: since it doesn't account for mining, it really should be under, not over.

EDIT: someone requested that we output the trades into a CSV file. Is this also something you would use?

YESSSSSSSS. I currently lift CSV data from cex to visualise bot winnings, but raw csv from gekko would be good (IF it kept a constant eye on your balances and had them in the CSV)

Uh oh! Semi-critical error:
Code:
2014-01-26 11:15:30 (ERROR):	cancel order failed: Nonce must be incremented
So this error has probably to do with you using the same API keys for both CT and Gekko.

Actually nope, gekko was my only thing running on that api key that day. Plus I've run CT and gekko and my crappy little namecoin selling bot all together before on the one API key and it hasn't given a hoot. Regardless, an increment and retry should fix the hang.

A new observation: when gekko said this, it actually meant "sell", not buy. suggest change to "trade"
Code:
2014-01-27 13:42:26 (INFO):	wanted to buy GHS but the amount is to small (0) at cex.io

Edit: and here's today's weirdness:
Code:
2014-01-27 14:32:25 (INFO):	wanted to buy but insufficient BTC (17.39210254031083) at cex.io
What. Also that isn't the BTC balance in brackets, it's the GHS equivalent. What? Only happened once on startup. After restarting, it was fine.

I'm interested in all your feedback! Here is my [reflink](https://cex.io/r/0/askmike/0/) btw.

You got it: Feedback: Awesome! Gekko + cex.io = profit.

Lags / bugs out / hangs *far* less often than cryptrade with the localdb, and comes up with a little more than CT in terms of profit.
Gekko candles not having to start at 00sec makes for much agility too. Is it possible to run at sub-minute intervals? I'm scared to try.

After a while (specifically after I've watched charts and made myself understand MACD & PPO) I'll run a second gekko instance with different config... And when I do, your referral link is getting some action. Slap it in your sig too, me talking cex so much in the gekko thread and lauding it for being a reasonably "safe" exchange to test a tradebot in can't hurt your odds of signups.

I'm not sure, but does Gekko simulation take transaction fees into account? That might be the reason for your discrepancy. I also find it surprising you trade succesfully at cex. I thought that market only had one direction... down...

Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
Pages: « 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 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!