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] add trailing option #1421

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

[Grid] add trailing option #1421

wants to merge 3 commits into from

Conversation

GuillaumeDSM
Copy link
Member

No description provided.

@GuillaumeDSM GuillaumeDSM requested a review from Herklos January 18, 2025 19:26
@GuillaumeDSM GuillaumeDSM self-assigned this Jan 18, 2025
@GuillaumeDSM GuillaumeDSM changed the title WIP [Grid] add trailing up option [Grid] add trailing option Jan 19, 2025
Comment on lines +227 to +228
self.CONFIG_ENABLE_TRAILING_UP: False,
self.CONFIG_ENABLE_TRAILING_DOWN: False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why False as default value?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing up could be true by default indeed.
However, trailing down will sell at a loss, I don't think it should be true by default

await asyncio.create_task(_check_open_orders_count(exchange_manager, producer.operational_depth - 1)) # -1 because the very first order can't be at a price <0
# orders are recreated around 125
_check_created_orders(producer, trading_api.get_open_orders(exchange_manager), 125)
# now contains buy and sell orders
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Successfully merging this pull request may close these issues.

2 participants