zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

no trades after partial sell in sim

Open blevok opened this issue 8 years ago • 1 comments

  • Have I written custom code (as opposed to using zenbot vanilla): custom strategy
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu 14.04 in vbox (no docker)
  • Zenbot version (commit ref, or version): 4.1.0, last commit 620257cb422d2c7f2971d75feb83de396cf5be0d
  • Zenbot branch: unstable
  • NodeJS version: 8.9.4
  • Exact command to reproduce (include everything): occurs in sim, not tested in live/paper
  • Did I make any changes to conf-sample.js?: no

Describe the problem

After a partial sell is made, no more trades are made. I've tried currency starting at different amounts from 10.00 to 100.00, and each time i see the same behavior. A partial sell of about 10% occurs, and despite numerous sell signals being sent afterwards, no further trades are made. I was out of town for a few days, and i see some PR's like sim improvements and partial fills were merged, so i'm guessing this issue is related to one of those.

blevok avatar Mar 07 '18 21:03 blevok

Closing this issue. It was due to partial fills being incompatible with my custom strategy, which was using last trade info to send only relevant signals. ie. not sending a sell signal if the last trade was a sell. Adjusting the strategy to send any applicable signal at any time regardless of last trade type has solved the issue.

blevok avatar Mar 23 '18 18:03 blevok