Post
Topic
Board Trading Discussion
Re: Gekko - a javascript trading bot for nodejs
by
kenshin23
on 11/09/2013, 05:10:30 UTC
Something odd happened today: I had Gekko running in the background for like a day or so (trading in MtGox), but suddenly I got a signal to sell, even though the chart on bitcoincharts didn't give any indication to do so. When I closed and reopened it, I got things like this:

Code:
2013-09-11 00:18:56 (INFO):     ADVICE is to HOLD @ 129.043 (NaN)

Ran it again with config.debug set:

Code:
...
2013-09-11 00:24:24 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:24 (DEBUG):             short ema 133.005
2013-09-11 00:24:24 (DEBUG):             long ema 132.115
2013-09-11 00:24:24 (DEBUG):             diff ema 0.671
2013-09-11 00:24:24 (DEBUG):    calculated candle: 11
2013-09-11 00:24:24 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:24 (DEBUG):             short ema NaN
2013-09-11 00:24:24 (DEBUG):             long ema NaN
2013-09-11 00:24:24 (DEBUG):             diff ema NaN
2013-09-11 00:24:24 (DEBUG):    calculated candle: 10
2013-09-11 00:24:24 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:24 (DEBUG):             short ema NaN
2013-09-11 00:24:24 (DEBUG):             long ema NaN
2013-09-11 00:24:24 (DEBUG):             diff ema NaN
2013-09-11 00:24:24 (DEBUG):    need new trades, refetching Mt. Gox
2013-09-11 00:24:26 (DEBUG):    calculated candle: 9
2013-09-11 00:24:26 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:26 (DEBUG):             short ema NaN
2013-09-11 00:24:26 (DEBUG):             long ema NaN
2013-09-11 00:24:26 (DEBUG):             diff ema NaN
2013-09-11 00:24:26 (DEBUG):    calculated candle: 8
2013-09-11 00:24:26 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:26 (DEBUG):             short ema NaN
2013-09-11 00:24:26 (DEBUG):             long ema NaN
2013-09-11 00:24:26 (DEBUG):             diff ema NaN
2013-09-11 00:24:26 (DEBUG):    calculated candle: 7
2013-09-11 00:24:26 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:26 (DEBUG):             short ema NaN
2013-09-11 00:24:26 (DEBUG):             long ema NaN
2013-09-11 00:24:26 (DEBUG):             diff ema NaN
2013-09-11 00:24:27 (DEBUG):    need new trades, refetching Mt. Gox
2013-09-11 00:24:31 (DEBUG):    calculated candle: 6
2013-09-11 00:24:31 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:31 (DEBUG):             short ema NaN
2013-09-11 00:24:31 (DEBUG):             long ema NaN
2013-09-11 00:24:31 (DEBUG):             diff ema NaN
2013-09-11 00:24:31 (DEBUG):    calculated candle: 5
2013-09-11 00:24:31 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:31 (DEBUG):             short ema NaN
2013-09-11 00:24:31 (DEBUG):             long ema NaN
2013-09-11 00:24:31 (DEBUG):             diff ema NaN
2013-09-11 00:24:31 (DEBUG):    calculated candle: 4
2013-09-11 00:24:31 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:31 (DEBUG):             short ema NaN
2013-09-11 00:24:31 (DEBUG):             long ema NaN
2013-09-11 00:24:31 (DEBUG):             diff ema NaN
2013-09-11 00:24:31 (DEBUG):    calculated candle: 3
2013-09-11 00:24:31 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:31 (DEBUG):             short ema NaN
2013-09-11 00:24:31 (DEBUG):             long ema NaN
2013-09-11 00:24:31 (DEBUG):             diff ema NaN
2013-09-11 00:24:31 (DEBUG):    calculated candle: 2
2013-09-11 00:24:31 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:31 (DEBUG):             short ema NaN
2013-09-11 00:24:31 (DEBUG):             long ema NaN
2013-09-11 00:24:31 (DEBUG):             diff ema NaN
2013-09-11 00:24:31 (DEBUG):    need new trades, refetching Mt. Gox
2013-09-11 00:24:35 (DEBUG):    calculated candle: 1
2013-09-11 00:24:35 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:24:35 (DEBUG):             short ema NaN
2013-09-11 00:24:35 (DEBUG):             long ema NaN
2013-09-11 00:24:35 (DEBUG):             diff ema NaN
2013-09-11 00:24:35 (DEBUG):    fetching new trades for new bucket at Mt. Gox
2013-09-11 00:25:20 (DEBUG):    calculated candle: 0
2013-09-11 00:25:20 (DEBUG):    calced EMA properties for new candle:
2013-09-11 00:25:20 (DEBUG):             short ema NaN
2013-09-11 00:25:20 (DEBUG):             long ema NaN
2013-09-11 00:25:20 (DEBUG):             diff ema NaN
2013-09-11 00:25:20 (DEBUG):    we are currently not in an up or down trend @ 128.933 (NaN)
2013-09-11 00:25:20 (INFO):     ADVICE is to HOLD @ 128.933 (NaN)

Anyone else having issues? I had been running Gekko for almost a month with no problems until today.

P.S.: My timezone is GMT -4:30, in case you're wondering.