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

Test custom exit #463

Merged
merged 17 commits into from
Jan 8, 2025
Merged

Test custom exit #463

merged 17 commits into from
Jan 8, 2025

Conversation

Canx
Copy link
Contributor

@Canx Canx commented Jan 6, 2025

This PR adds a comprehensive parametrized test for the custom_exit function in the NostalgiaForInfinityX5 strategy, ensuring that the correct exit functions are called based on the trade's enter_tag. The test covers both long and short entry tags, including individual and combined scenarios, and uses mocked exit functions to validate behavior. Known issues with certain short entry tags, such as short_exit_grind, are identified and marked as TODO for future fixes. This test enhances the robustness of the strategy by providing a clear framework to detect regressions and verify the correctness of exit logic.

@iterativv iterativv merged commit e2b9e82 into iterativv:main Jan 8, 2025
46 of 90 checks passed
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