Login Page - Create Account

Support Board


Date/Time: Fri, 06 Nov 2026 02:09:36 +0000



Sierra-TWS API: sell

View Count: 24

[2026-11-05 22:48:59]
user509211 - Posts: 1
Hello,

I have an issue with order execution when connected to the TWS API.

Setup:
I enter a Long position with an attached Bracket Order. Then I use my custom shortcut "Sell Lmt Bid" to close the position.

- Simulation Mode: position closed (shares sold), stp/pt orders cancelled.
- Sierra-TWS API: position closed (shares sold), but stp/pt orders NOT cancelled.

Why does this fail on the TWS API when it works perfectly in simulation mode? How can I fix this so that the bracket orders are guaranteed to cancel when the position is closed?

Thank you.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account