Skip to content

Stop Loss and Take Profit realization with One Cancels the other Order (OCO) #1700

Answered by cjdsellers
Felix99 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Felix99

Thanks for reaching out!

This certainly needs more documentation, which we're working to improve.

I suggest you use the OrderFactory which will construct an entry with bracketing SL and TP orders:
https://github.com/nautechsystems/nautilus_trader/blob/develop/nautilus_trader/common/factories.pyx#L1141

You can access it from a strategy with self.order_factory.bracket(...).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cjdsellers
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