Post
Topic
Board Trading Discussion
Re: Gekko - a javascript trading bot for nodejs
by
whydifficult
on 11/07/2013, 12:27:43 UTC
what means (NaN)?
Code:
2013-07-11 12:33:39 (INFO): ADVICE is to HOLD @ 86.840 (NaN)
2013-07-11 13:03:39 (INFO): ADVICE is to HOLD @ 86.400 (NaN)
2013-07-11 13:33:40 (INFO): ADVICE is to HOLD @ 86.200 (NaN)

That's a bug in Gekko, if you could let me know some details (like are you running the latest version, what exchange and interval) I will look into it!

Turning on debug mode will give you much more information. In the settings file their is a line to enable it by changing false to true.

If you do this it might be a good idea to run gekko like this.
Code:
node gekko |& tee GekkoMyLog.txt
This will give split the output of the gekko to the terminal screen but also to a text file so you have everything as a backup in a nice text file. Also handy if you have a problem you can post the file to help determine the problem Smiley

There are a couple of ways to run Gekko silently and log to a file instead of into the terminal, you can use tee if you are using a UNIX platform (AFAIK) like OS X or Linux. You can read some alternatives in Gekko's advanced features documentation.

ah the bot gave me a buy advice around $71 finally.

Basically what's happening is that I only get output when there is a change in advice when I was expecting each hour to say something like "No change detected, advising to HOLD"

I had this before but changed it to log only position changes (buys and sells) so that it's easier to read back a couple of days later. As suggested you can turn on debug mode to get a lot more info but you can also turn on verbose in the profitcalculator part of the config. This way you'll get an update every interval (hourly on default) about your current (simulated) profit.