Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.
This repository was archived by the owner on May 4, 2025. It is now read-only.

How to properly close a position in a strategy #108

Description

@stophr

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions