Skip to content

Sell Limit to close an open long not open a short #1000

Answered by kernc
eervin123 asked this question in Q&A
Discussion options

You must be logged in to vote

However, if I enter a self.sell(size=self.position.size, limit = XXX) I'm not sure I'm getting the desired result.

As long as assert self.position.size > 0, self.sell() like this looks reasonable. What result do you get?

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by eervin123
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants