NexusFi: Find Your Edge


Home Menu

 





Interactive Brokers gateway losing connectivity


Discussion in Platforms and Indicators

Updated
      Top Posters
    1. looks_one Fadi with 9 posts (9 thanks)
    2. looks_two michaelf with 6 posts (1 thanks)
    3. looks_3 NGtrader with 4 posts (1 thanks)
    4. looks_4 Ming80 with 3 posts (1 thanks)
      Best Posters
    1. looks_one FastBull32 with 2 thanks per post
    2. looks_two Big Mike with 1.7 thanks per post
    3. looks_3 Fadi with 1 thanks per post
    4. looks_4 NGtrader with 0.3 thanks per post
    1. trending_up 27,003 views
    2. thumb_up 21 thanks given
    3. group 13 followers
    1. forum 34 posts
    2. attach_file 6 attachments




 
Search this Thread

Interactive Brokers gateway losing connectivity

  #1 (permalink)
 FastBull32 
 
Posts: 39 since Oct 2012

Hi all,

I am copying a quick correspondence I had with Interactive Brokers yesterday, in case it's useful to someone else having the same issue.

I will ask IB this question tonight, but in case anyone knows already, please help! Is there any way for me to be notified by email (I am using Windows 7, not Linux as IB notes below) when the IB gateway loses connectivity?



MY QUESTION TO IB

Hello,

I would really appreciate your assistance on this very important issue, for me.

I am using the IB gateway (with my Multicharts trading platform, which connects to the IB API gateway and sends orders automatically).
Last night (I don't know the exact time unfortunately) the IB gateway lost connection, and I missed my trade stops, resulting in material losses.
I was under the impression that the IB gateway does not disconnect at any time. Can you please let me know if and when I may lose connectivity to the gateway?
Also, is there any way to receive an email alerting me to the fact that connectivity has been lost? Or any other way to be notified?

I note, for reference, that my internet connection was working properly without disconnects the whole time.

Thanks a lot
Andreas


IB'S REPLY

The IBGateway does not need to be restarted once a day like the Trader Workstation, so it can stay up and running 24 hours over 24 but nevertheless the IBGateway is as well affected by the restart of our servers which happens once a day according to the schedule mentioned in this page:
https://www.interactivebrokers.com/en/software/systemStatus.php?ib_entity=llc

During this time frame the systems could be not available for a certain period. This will cause the IBGateway to disconnect from the servers. Usually it will reconnect automatically once the servers are up again.

Since this is a scheduled maintenance which is performed every day, we do not send any alerts, email or warnings, but since you user looks like connecting from a Linux machine, you might want to create a script which checks the ibgateway.DAY.log (When DAY is the first three letter of the current weekday) which is located in the installation directory of the IBGateway and sends an email (via sendmail) in case the keywords "Disconnection" or "Disconnected" are logged.
I guess many examples of such scripts can be found on Internet.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 
Ming80's Avatar
 Ming80 
Singapore
 
Experience: None
Platform: -
Trading: Diversified
Posts: 41 since Jan 2012
Thanks Given: 25
Thanks Received: 51

I had a similar issue before where I thought leaving the station on overnight would ensure orders would be filled. But for me it was due to the IB Auto-log off for TWS.

To Change it you can go to:
TWS in Edit > Global Config > Lock and Exit > Auto-log off Time

The other instance for orders not triggered could be due to disconnects during their server refresh as pointed in the post above. I am not sure how to circumvent this if one is trading all 3 time zones. Looking for pointers here.

On Alerts, I only know of price and trade alerts in IB where you can configure it in TWS -> Analytical Tools -> Alerts -> New.

Reply With Quote
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541



Ming80 View Post
I had a similar issue before where I thought leaving the station on overnight would ensure orders would be filled. But for me it was due to the IB Auto-log off for TWS.

To Change it you can go to:
TWS in Edit > Global Config > Lock and Exit > Auto-log off Time

The other instance for orders not triggered could be due to disconnects during their server refresh as pointed in the post above. I am not sure how to circumvent this if one is trading all 3 time zones. Looking for pointers here.

On Alerts, I only know of price and trade alerts in IB where you can configure it in TWS -> Analytical Tools -> Alerts -> New.

Don't use TWS. Use IB Gateway instead.

Sent from my LG Optimus G Pro

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
Ming80's Avatar
 Ming80 
Singapore
 
Experience: None
Platform: -
Trading: Diversified
Posts: 41 since Jan 2012
Thanks Given: 25
Thanks Received: 51


Big Mike View Post
Don't use TWS. Use IB Gateway instead.

Sent from my LG Optimus G Pro

Thanks Big Mike, didn't know about it and will now check it out!

Reply With Quote
  #5 (permalink)
 
Ming80's Avatar
 Ming80 
Singapore
 
Experience: None
Platform: -
Trading: Diversified
Posts: 41 since Jan 2012
Thanks Given: 25
Thanks Received: 51

Got this response from IB with regards to IB Gateway.

---------
Unfortunately IB's System Maintenance is unavoidable. Regardless if you login to TWS or the IB Gateway you are still connecting to the same identical servers which will require the same daily maintenance.
---------

For those trading Asian Futures, the problem seems difficult to circumvent as there is a disruption across during
23:45 - 00:30 ET on fridays.

https://individuals.interactivebrokers.com/en/index.php?f=en/software/systemStatus.php

Looking for any input from you guys on the above.

Reply With Quote
Thanked by:
  #6 (permalink)
 
xiaosi's Avatar
 xiaosi 
Brisbane, Queensland, Australia
 
Experience: Advanced
Platform: JIGSAW/SIERRA CHART
Broker: MacQuarie Futures/AMP Clearing/CQG
Trading: HHI, HSI, FDAX
Posts: 502 since Feb 2012
Thanks Given: 448
Thanks Received: 535


Ming80 View Post
Got this response from IB with regards to IB Gateway.

---------
Unfortunately IB's System Maintenance is unavoidable. Regardless if you login to TWS or the IB Gateway you are still connecting to the same identical servers which will require the same daily maintenance.
---------

For those trading Asian Futures, the problem seems difficult to circumvent as there is a disruption across during
23:45 - 00:30 ET on fridays.

https://individuals.interactivebrokers.com/en/index.php?f=en/software/systemStatus.php

Looking for any input from you guys on the above.

Every day at noon Shanghai time they disconnect as well.

What can you do? Exit all positions.

Follow me on Twitter Reply With Quote
  #7 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541


Ming80 View Post
Got this response from IB with regards to IB Gateway.

---------
Unfortunately IB's System Maintenance is unavoidable. Regardless if you login to TWS or the IB Gateway you are still connecting to the same identical servers which will require the same daily maintenance.
---------

For those trading Asian Futures, the problem seems difficult to circumvent as there is a disruption across during
23:45 - 00:30 ET on fridays.

https://individuals.interactivebrokers.com/en/index.php?f=en/software/systemStatus.php

Looking for any input from you guys on the above.

It may disconnect daily, but it won't force you to log off. I mean I've left IB Gateway up for weeks and weeks on end without ever logging back in.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 Luger 
Nashville, TN
 
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: NQ ES
Posts: 468 since Feb 2011
Thanks Given: 323
Thanks Received: 543

If you know the maintenance time then you could send resting limit or stop orders to IB that would be at the exchange during that period of time. Once maintenance window is over, then go back to normal order mode. That way you are protected from needing an order to fire while potentially disconnected.

Luger

Reply With Quote
Thanked by:
  #9 (permalink)
 helloworld 
Hong Kong, China
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES
Posts: 2 since Aug 2013
Thanks Given: 2
Thanks Received: 1


xiaosi View Post
Every day at noon Shanghai time they disconnect as well.

What can you do? Exit all positions.

You may ask IB to switch your account connecting from US server to HK server if you are trading Asian futures.
The restart time will then be changed from around 1pm to around 6:15am Shanghai time.

Hope it helps

Reply With Quote
Thanked by:
  #10 (permalink)
 luvs321 
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Interactive Brokers
Trading: Forex
Posts: 7 since Dec 2013
Thanks Given: 7
Thanks Received: 0



Big Mike View Post
Don't use TWS. Use IB Gateway instead.

Sent from my LG Optimus G Pro

Hi,

How do you use IB Gateway? do you download this directly from the Interactive Brokers website? Can someone help me set this up? I currently use Ninjatrader and I've been having problems with my strategy as it keeps disconnecting me from IB. My screen shows my positions all closed out. I'm hoping that by using IB Gateway, it will prevent this from happening again. I look at daily charts and leave my pc on for weeks/ months. I heard that I would at least have to restart TWS once a week but if my I hold my position longer than that using a automated strategy I'm not sure how I can make it work. Please help. Thanks.

Reply With Quote




Last Updated on September 17, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts