Skip to content

Close position and stay in cash #43

Description

@sumobull

Is there a way to enter a trade and just close it and stay in cash without going the opposite direction? Looking at the docs (please correct me if I am wrong), the buy and sell methods close out all existing positions and use all available capital to enter a new position in the opposite direction. Is there a way to just close a position and stay that way until a strategy condition is met to re-enter?

Thanks in advance.

Activity

  1. sumobull commented on Feb 5, 2020

    @sumobull
    Author

    Apologize, found it.

    self.position.close()
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

    questionNot a bug, but a FAQ entry

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions