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

How to properly close a position in a strategy #108

Open
stophr opened this issue Jun 1, 2024 · 0 comments
Open

How to properly close a position in a strategy #108

stophr opened this issue Jun 1, 2024 · 0 comments

Comments

@stophr
Copy link

stophr commented Jun 1, 2024

Hello, I really appreciate the effort that went into this project. I would like to know the proper way to close a position. For instance, my strategy's logic decides that its confused (getting mixed signals), as a result it needs to close all open positions till it gets a clear signal. How would one best go about this from within the strategy? I have a feeling its to create a market order in the opposite direction, but this leaves open stop & limit orders that need to be cleaned up. Just wondering if this is the correct path or if there is a better way. Thanks!

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