-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(configuration): execute stop-loss before buy #299
Comments
Hm. So in this case, what happened is, buy action got the priority of the stop-loss action. When the bot determines the action to do, it checks whether it should buy or not. And if not, it checks whether to stop-loss or not. In your case, the grid trade 2 trigger price is higher than the stop-loss trigger price, so the bot is trying to buy, no stop-loss. But buy action couldn't be executed due to not enough USDT. It's correct (expected) behaviour because buy action is determined and I don't want the bot to stop-loss without buying grid trade 2. But in your case, you may want to stop-loss first? Hm... I am not sure what is the best strategy. Code reference: |
Hmm, that is depending on your strategy. But at his point, it does not have the configuration for it. I will add it to TODO to be able to configure it in the future.
That is because you sell 100% of your coin in the grid trade 1. |
Version
0.0.78
Description
I set my stop loss to 0.95, and the bot would normally sell when price drops to 5%.
I'm not sure if it's the bug in this version, because stop loss works well on the previous versions.
Screenshots
The % of difference to stop loss is also showing negative value but not triggering.
Now I'm losing more than 20% of my portfolio haha.
The text was updated successfully, but these errors were encountered: