You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to implement a strategy on futures with fixed stop loss and take profit orders.
In a trading software, these functions are usually combined by OCO, such that, SL is reached the TP order is canceled, and vice versa.
I have found OCO in the documentation at
https://docs.nautilustrader.io/concepts/advanced/advanced_orders.html
but from the docs its use remains unclear to me.
In my code, I tried to use the order list:
order_list = OrderList(order_list_id, [sl_order, tp_order]) self.submit_order_list(order_list)
but how can I tell the engine to combine them as OCO?
Any help appreciated!
Beta Was this translation helpful? Give feedback.
All reactions