Replies: 2 comments 4 replies
-
Yes, the both orders (SL and TP, as well as the trade they counter) are closed automatically when hit.
for order in self.orders:
if not order.is_contingent: # Skip SL/TP orders
order.cancel() |
Beta Was this translation helpful? Give feedback.
4 replies
-
Yes thank you. It works.
Il gio 19 gen 2023, 15:39 kernc ***@***.***> ha scritto:
… Have you seen #265 (comment)
<#265 (comment)>
or #505 (comment)
<#505 (comment)>?
Closing a trade will (should) cancel its contingent orders.
—
Reply to this email directly, view it on GitHub
<#824 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFFQR4Z6VNQUI4EISRQDHDLWTFG2XANCNFSM6AAAAAASOUKVTE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Over the past week, I have been scratching about the order management here.. I see a big discrepancy in the orders.. especially, closing the positions..
Basically, the strategy is not closing the positions though SL or TP hit.. ?
Beta Was this translation helpful? Give feedback.
All reactions