Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 21:05:43 +0000



Handling IB API server disconnect

View Count: 625

[2016-05-24 16:49:45]
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 "IB API server" is shown as not connected (in IB Gateway)

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