-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improved sell logic #99
base: master
Are you sure you want to change the base?
Conversation
fdundjer
commented
Apr 27, 2024
•
edited
Loading
edited
- Add trailing stop loss
- Add cache for filters
- Add stop sell when the max loss occurred
- Add option to handle multiple tokens at the time
I can't run this version on my end, and stuck with initial bot running, wonder why @fdundjer And when it's running, it's stuck after some time (15 minutes) |
Tested, seems to work fine. Could be your RPC? |
|
||
if (this.config.skipSellingIfLostMoreThan > 0) { | ||
const stopSellingFraction = this.config.quoteAmount | ||
.mul(this.config.skipSellingIfLostMoreThan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 100 - skipSellingIfLostMoreThan
If value is 90, stopSellingAmount is 90%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check and update the code.