Replies: 3 comments
-
Instead, I check the position during each round to see what happened, and cancel the old stp order, then place new stop order if needed. |
Beta Was this translation helpful? Give feedback.
-
I found a solution which works: |
Beta Was this translation helpful? Give feedback.
-
Problem solved with the command ib.reqAllOpenOrders(), which gives back open STP orders with the related contract and its local symbol name. |
Beta Was this translation helpful? Give feedback.
-
I'm writing a position manager python script, that checks if all open future positions have stop losses set.
And if not, it should close the position. However, I'm unable to detect if a STP order is active or not?
Even old STP orders, which have been executed have the status "Filled". And non executed STP order have too the status "Filled". I simply cannot find a way to find out whether an STP order is still active or has already been triggered.
Beta Was this translation helpful? Give feedback.
All reactions