Skip to content
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

Grid Trade #2 does not get executed, because stop-loss overrules #628

Open
Rayn0r opened this issue May 8, 2023 · 0 comments
Open

Grid Trade #2 does not get executed, because stop-loss overrules #628

Rayn0r opened this issue May 8, 2023 · 0 comments

Comments

@Rayn0r
Copy link

Rayn0r commented May 8, 2023

I haven't used the bot for a while. Even though it was running, it did not trade.
After enabling trades again on v0.0.98 (d321990), I see trades being cancelled due to stop loss, even though the 2nd Grid Trade should have precedence.

This is my set-up:

  • My 2nd Grid trade is set to be executed at 0.98.
  • Stop loss is at 0.978.
    Additionally I set:
    [x] Allow buy trigger when recommendation is Strong buy
    [x] Allow buy trigger when recommendation is Buy

This used to work fine for the past year or so.
Before upgrading the bot behaved differently.
If I recall correctly, stop loss was only triggered when recommendation never got back to buy and the price "fell" below the last grid's trigger price.

I saw there were a lot of changes to the queue from v0.0.96-v0.0.97

Here is what I see in the logs:

  1. The current price reached the trigger price for the grid trade #​2. Let's buy it.
  2. The override action is saved. Reason: The bot queued the action to trigger the grid trade #​2 for buying. Do not place an order because TradingView recommendation is STRONG_SELL.
  3. Do not place an order because TradingView recommendation is STRONG_SELL.
  4. The current price is reached the stop-loss price. Place market sell order.
  5. The market sell order will be placed.
  6. The market sell order has been placed.

This is the corresponding screenshot:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant