Post
Topic
Board Trading Discussion
Re: Gekko - a javascript trading bot for nodejs
by
whydifficult
on 07/07/2013, 19:54:47 UTC
Yes, at Cryptotrader.org, the script calculates candles the same way, though it also takes volumes into consideration and use data fetched from Mtgox via websockets API for inputs. I think the good way to make sure our calculations are correct, is to compare script output with similar data provided by popular online chart tools like Bitcoincharts ('Load raw data' link at the page bottom).

Good point, I'll also check a couple backtesters with different EMA parameters to see if they would come to the same profit conclusion.

Can anyone help me with running the bot?

It just returns immediately from the program when I type "node gekko". No error messages or anything. npm, nodejs is installed. I did a git clone for installation of Gekko itself.

Code:
nii236@NiiEEE ~/bitcoin/gekko $ node gekko
nii236@NiiEEE ~/bitcoin/gekko $

Hmm that's strange, do you have the newest version of Gekko? And what platform do you have? All logging goes to stdout (which means the terminal session most of the time).

Also, is there a way to disable certain types of trades. I want to do the following:

When EMA crossover signals a buy, buy on MtGox ONLY
When EMA crossover signals a sell, sell on BitStamp ONLY

Is this possible?

Well you would have to run two Gekkos: One where you disable buying by making the buyTreshold "Infinity" (without the quotes). And another one where you'd set the sellTreshold at "-Infinity", if you put those in two different config files you can specify to Gekko what config to use on running. Read more about that here. This way you can also configure the MtGox one to watch MtGox and the Bitstamp one to watch Bitstamp (if you want them to).