Interactive Brokers gateway losing connectivity - futures io
futures io futures trading



Interactive Brokers gateway losing connectivity


Discussion in Platforms and Indicators

Updated by NGtrader
      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 Big Mike with 3 posts (5 thanks)
      Best Posters
    1. looks_one moses with 2.0 thanks per post
    2. looks_two Big Mike with 1.7 thanks per post
    3. looks_3 Fadi with 1.0 thanks per post
    4. looks_4 michaelf with 0.2 thanks per post
    1. trending_up 19,547 views
    2. thumb_up 21 thanks given
    3. group 13 followers
    1. forum 34 replies
    2. attach_file 6 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Interactive Brokers gateway losing connectivity

(login for full post details)
  #1 (permalink)
Nicosia, Cyprus
 
Experience: Intermediate
Platform: Multicharts, Tradestation
Broker: Interactive Brokers, MB Trading, Tradestation for data
Trading: FX, Equities
 
Posts: 39 since Oct 2012
Thanks: 44 given, 41 received

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.

Reply With Quote
The following 2 users say Thank You to moses for this post:

Can you help answer these questions
from other members on futures io?
Macros for flatten and reverse
TradeStation
Thinkscript for scanning in Option Hacker
ThinkOrSwim
Where I can find knoxville divergence indicator for ninja trader 8?
NinjaTrader
Degiro Negative Balance Advice
Traders Hideout
Trying to locate prop firm that purchased my automated trading system
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
VWAP for stock index futures trading?
35 thanks
What Is the Source of Your Edge??
23 thanks
VWAP oscillator for NT8
15 thanks
Index options vs futures options
11 thanks
Battlestations: Show us your trading desks!
10 thanks
 
(login for full post details)
  #2 (permalink)
Singapore
 
Experience: None
Platform: -
Trading: Diversified
 
Ming80's Avatar
 
Posts: 41 since Jan 2012
Thanks: 25 given, 51 received

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
 
(login for full post details)
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,057 since Jun 2009
Thanks: 31,658 given, 95,054 received



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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #4 (permalink)
Singapore
 
Experience: None
Platform: -
Trading: Diversified
 
Ming80's Avatar
 
Posts: 41 since Jan 2012
Thanks: 25 given, 51 received


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
 
(login for full post details)
  #5 (permalink)
Singapore
 
Experience: None
Platform: -
Trading: Diversified
 
Ming80's Avatar
 
Posts: 41 since Jan 2012
Thanks: 25 given, 51 received

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
The following user says Thank You to Ming80 for this post:
 
(login for full post details)
  #6 (permalink)
Brisbane, Queensland, Australia
 
Experience: Advanced
Platform: JIGSAW/SIERRA CHART
Broker: MacQuarie Futures/AMP Clearing/CQG
Trading: HHI, HSI, FDAX
 
xiaosi's Avatar
 
Posts: 502 since Feb 2012
Thanks: 444 given, 531 received


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
 
(login for full post details)
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,057 since Jun 2009
Thanks: 31,658 given, 95,054 received


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

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
(login for full post details)
  #8 (permalink)
Nashville, TN
 
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: NQ ES
 
Posts: 468 since Feb 2011
Thanks: 323 given, 543 received

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
The following user says Thank You to Luger for this post:
 
(login for full post details)
  #9 (permalink)
Hong Kong, China
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES
 
Posts: 2 since Aug 2013
Thanks: 2 given, 1 received


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
The following user says Thank You to helloworld for this post:
 
(login for full post details)
  #10 (permalink)
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Interactive Brokers
Trading: Forex
 
Posts: 7 since Dec 2013
Thanks: 7 given, 0 received



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


futures io Trading Community Platforms and Indicators > Interactive Brokers gateway losing connectivity


September 17, 2018


Upcoming Webinars and Events
 

An Afternoon With futures io member TropicalTrader

Elite only
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts