Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 21:15:13 +0000



[Programming Help] - Handling IB API server disconnect

View Count: 694

[2016-05-22 18:17:42]
User754985 - Posts: 109
IB has a period - appr. from 12:15 to 12:25 - when historical and RT data servers are connected and data are getting into SC, yet API server is shown as not connected.

IB Gateway is attempting to reconnect, and SC is not. So, an order can get triggered but will hardly get to IB for execution.

What's the recommended way to catch this situation?

if (sc.ServerConnectionState==SCS_DISCONNECTED || sc.ServerConnectionState==SCS_CONNECTION_LOST)

- this seems to catch disconnect from data servers, but not order server...

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

Login

Login Page - Create Account