DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.22k stars 2.04k forks source link

Signals do not get executed #655

Closed FloFri closed 6 years ago

FloFri commented 6 years ago

Hello everyone,

I have the following problem. I use the latest git version of zenbot on Bitfinex with the forex_analytics strategy. Bit it seems that the signals do not get executed. I have no buying / bought / selling / sold states and no orders are created. Here is the log (--debug enabled, without the top, to make it a little bit smaller). No errors are visible (the 3 order-errors are, because I created and cancelled an order manually on bitfinex).

I use it inside docker. The parameters are

trade --debug --strategy forex_analytics --modelfile=/app/models/bitfinex.LTC-BTC.json bitfinex.LTC-BTC I hope, someone can help.

..........
2017-10-24 09:30:00  0.0101550 LTC-BTC   +0.49%     2442   67 +++        buy
2017-10-24 10:00:00  0.0101780 LTC-BTC   +0.23%     1693   68 +++        buy
2017-10-24 10:30:00  0.0101990 LTC-BTC   +0.21%     1612   69 +++        buy
2017-10-24 11:00:00  0.0101750 LTC-BTC   -0.24%     3299   67 +++        buy
2017-10-24 11:30:00  0.0102480 LTC-BTC   +0.72%     5020   69 +++        buy
2017-10-24 12:00:00  0.0102770 LTC-BTC   +0.28%     7454   70 +++        buy
---------------------------- STARTING LIVE TRADING ----------------------------
Press  l  to list available commands.

WebSockets: We are now fully connected and authenticated.
2017-10-24 12:30:00  0.0103520 LTC-BTC   +0.73%     6017   73 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.62%

Warning: Order 46683576797 not found in cache for wsUpdateOrder (manual order?).

Warning: Order 46683576797 not found in cache for wsUpdateOrder (manual order?).

Warning: Order 46683576797 not found in cache for wsUpdateOrderCancel (manual order?).
2017-10-24 13:00:00  0.0102980 LTC-BTC   -0.52%     5509   68 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.11%
2017-10-24 13:30:00  0.0103200 LTC-BTC   +0.21%     5338   69 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.32%
2017-10-24 14:00:00  0.0103860 LTC-BTC   +0.64%     6792   72 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.94%
2017-10-24 14:30:00  0.0103580 LTC-BTC   -0.27%     3000   69 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.68%
2017-10-24 15:00:00  0.0103520 LTC-BTC   -0.06%     1996   69 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.62%
2017-10-24 15:30:00  0.0103280 LTC-BTC   -0.23%     2087   66 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.39%
2017-10-24 16:00:00  0.0102500 LTC-BTC   -0.76%     3338   59 ++         buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -0.64%
2017-10-24 16:30:00  0.0100510 LTC-BTC   -1.94%     6618     - 46       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.32%
2017-10-24 17:00:00  0.0100010 LTC-BTC   -0.50%     4399    -- 44       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.83%
2017-10-24 17:30:00  0.0100480 LTC-BTC   +0.47%     3098     - 47       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.35%
2017-10-24 18:00:00  0.0100710 LTC-BTC   +0.23%     4881     - 48       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.12%

WebSockets Error: Connection closed. Retrying every 10 seconds.

WebSockets: We are now fully connected and authenticated.

WebSockets Error: Connection closed. Retrying every 10 seconds.

WebSockets: We are now fully connected and authenticated.
2017-10-24 18:30:00  0.0100740 LTC-BTC   +0.03%     5763     - 48       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.09%
2017-10-24 19:00:00  0.0100990 LTC-BTC   +0.25%     3670   50 +         sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +0.84%
2017-10-24 19:30:00  0.0101730 LTC-BTC   +0.73%     7001   55 ++        sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +0.11%
nedievas commented 6 years ago

I did observe the same issue with forex_analytics. Sims work good. Live don't trade.

rulox366 commented 6 years ago

Same problem here.. forez analytics but with poloniex

emseee commented 6 years ago

I'm having the same issue with on Bitfinex with a modified trend_ema. Sim works great with an average of 1.09 trades per day. Live doesn't work. Ran it for 3 days but it didn't buy even once. bitfinex

benjamincburns commented 6 years ago

I dug into this a bit this evening. My thoughts on the cause(s) are over on #868 under this comment.

DeviaVir commented 6 years ago

Closing this one in favor of #868