zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

Is there a way to reset trades?

Open rountrey opened this issue 8 years ago • 4 comments

System information

  • Have I written custom code (as opposed to using zenbot vanilla): no
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
  • Zenbot version (commit ref, or version): 4.10 (downloaded May 27, 2018)
  • Zenbot branch:
  • NodeJS version: 8.11.2
  • Python version (when using a python script): 2.17.4
  • Exact command to reproduce (include everything): Any options
  • Did I make any changes to conf-sample.js?: No, other than changing strategy and buy_loss/sell_loss

Describe the problem

This is a feature request, unless there's an option that I can't find.

With the recent drop in markets, zenbot is no longer working because of the losses when I have use_prev_trades active. Apparently reset_profit does nothing to the trades. Is there a way to reset trades?

rountrey avatar Jun 27 '18 11:06 rountrey

Can you elaborate on what you mean by "is no longer working because of the losses"? Does it crash? Report something incorrectly? Or just appear to not be making more trades?

tabbek avatar Jun 27 '18 21:06 tabbek

Sorry. Due to the market drop, it has gone farther than what I have set the max_sell_loss_pct to be and no longer trading. It's working, trying to trade but won't because of my settings. Rather than changing the max_sell_loss and max_buy_loss, I'd rather just reset the trades and start at the bottom again.

rountrey avatar Jun 27 '18 22:06 rountrey

If you're looking to change your position, you could use the manual trade ability of the system, and then let the strategy continue which would preserve the profit/loss %.

Another option would be to restart the trading instance, and let it continue from this 'fresh' point. You may or may not need to manually change your position on this one too, depending on which position of your strat the engine expects to start on vs your current position.

tabbek avatar Jun 28 '18 01:06 tabbek

I have manually removed all my balance records for a trading pair from mongoDB. I do this when I want to start over clean but still want the candle data. You can use a tool like robo 3t to do this.

station384 avatar Jul 03 '18 07:07 station384