Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems with Strategy Disconnecting Nightly at Interactive Brokers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems with Strategy Disconnecting Nightly at Interactive Brokers

    I have a strategy that keeps disconnecting from IB at 11:45 ever night. I have the following:

    IB Gateway: 978.2c, Jun 17, 2020
    Ninjatrader: 8.0.22.2 64-bit

    I have used this guide to install the IB option: https://ninjatrader.com/ConnectionGu...nnection-Guide

    Attached are pictures of my settings...

    Any ideas what else I need to do?

    Attached Files

    #2

    Hello bc24fl,

    Thank you for your note.

    TWS has a forced nightly log off that cannot be disabled. As a workaround, you may use IB Gateway instead. IB Gateway does not have the same forced log off requirement.

    Zachary S.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Zachary View Post
      Hello bc24fl,

      Thank you for your note.

      TWS has a forced nightly log off that cannot be disabled. As a workaround, you may use IB Gateway instead. IB Gateway does not have the same forced log off requirement.
      I am using IB Gateway. See version in my original post.

      Comment


        #4
        Please send me your log and trace files so that I may look into what occurred.
        • You can do this by going to the Control Center-> Help-> Email Support
        • Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
        • Please reference the following ticket number in the body of the email: 2735447 Attn Zachary
        Zachary S.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Zachary View Post
          Please send me your log and trace files so that I may look into what occurred.
          • You can do this by going to the Control Center-> Help-> Email Support
          • Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
          • Please reference the following ticket number in the body of the email: 2735447 Attn Zachary
          Just sent. Thank you.

          Comment


            #6
            I wonder if this issue is related to mine. I run 978.2c.

            Hi all, i'm working on automation for a stable service environment for my strategies. Following Applications / Versions are in place: NT8 (8.0.20.1) TWS from IB / Captader (978.1h) 1.) First i tried/checked auto restart for TWS by it self. It is still working good. After a quick shotdown of around 20-30sec. TWS is

            Comment


              #7
              Hello bc24fl,

              Thank you for your reply.

              It absolutely is related. Since we are still on release 22, there have not been any developmental changes yet on our end and the workaround from that forum post will still apply.
              Zachary S.NinjaTrader Customer Service

              Comment


                #8
                Ok just uninstalled and reinstalled 973.2h and reconnected the strategy. I'll let you know what happens tomorrow. Thanks.

                Comment


                  #9
                  Installing 973.2 did fix the issue. It no longer disconnects. Not sure what I'm missing using an older version but hoping we can fix so that we can use the latest stable. Thanks!

                  Comment


                    #10
                    Hi, does anyone have a link to download IB Gateway 973.2h? I cant find it.

                    thanks!

                    Comment


                      #11
                      Is this issue fixed in 8.0.23.1

                      Specifically this:

                      Code:
                      Interactive Broker auto reconnects after daily restart
                      
                      Interactive Brokers
                      
                      Feature #14510
                      
                      
                      
                      Both Traders Workstation and Gateway connections will now auto reconnect after their daily restart.

                      Last edited by bc24fl; 12-11-2020, 08:52 AM.

                      Comment


                        #12
                        Hello RobotSyndicate,

                        Thank you for your post.

                        Originally posted by RobotSyndicate View Post
                        Hi, does anyone have a link to download IB Gateway 973.2h? I cant find it.

                        thanks!
                        IB Gateway 973.2h is not currently supported for use with NinjaTrader. The supported version is 978.2c, which may be downloaded from the connection guide at the link below;

                        Zachary S.NinjaTrader Customer Service

                        Comment


                          #13
                          Hello bc24fl,

                          Thank you for your post.

                          Originally posted by bc24fl View Post
                          Is this issue fixed in 8.0.23.1

                          Specifically this:

                          Code:
                          Interactive Broker auto reconnects after daily restart
                          
                          Interactive Brokers
                          
                          Feature #14510
                          
                          
                          
                          Both Traders Workstation and Gateway connections will now auto reconnect after their daily restart.
                          That is correct.
                          Zachary S.NinjaTrader Customer Service

                          Comment


                            #14
                            Well I am using NT8 8.0.23.0 and what happens to me is that the program will semi-reconnect. Gateway (for example, but this happens with TWS also) will show that NT is connected, but if I try to place an order NT give me the error that the order cannot be placed because the "account is not connected". If I disconnect from IB and then reconnect then it fixes the issue, until it happens again after a daily restart, or even after IB does its daily brief connection disruptions. I have been using NT with IB for years, and I never has this error before version 8.0.23.0. Exact same connection, same settings, same internet, same strategies, same everything. Just upgraded to 8.0.23.0 and now I have this error daily.
                            Last edited by RobotSyndicate; 12-11-2020, 12:02 PM.

                            Comment


                              #15
                              Hello RobotSyndicate,

                              Thank you for your reply.

                              First and foremost, I would suggest upgrading to NinjaTrader 8.0.23.1, which is the most current and only supported release of NinjaTrader 8. I would also suggest ensuring that you are using the currently supported versions of TWS and/or IB Gateway, and recreate your account connection within NinjaTrader (ensuring that the configuration matches that settings that we have outlined in the connection guide). If the issue persists after making sure that you are using the most current release of NinjaTrader and the supported releases of either TWS/IB Gateway, please send us your log and trace files with a brief description of the issue so that we may provide more comprehensive, individualized support with regard to this issue.
                              • You can do this by going to the Control Center-> Help-> Email Support
                              • Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
                              Zachary S.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Jon17, Today, 04:33 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post Jon17
                              by Jon17
                               
                              Started by Javierw.ok, Today, 04:12 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post Javierw.ok  
                              Started by timmbbo, Today, 08:59 AM
                              2 responses
                              10 views
                              0 likes
                              Last Post bltdavid  
                              Started by alifarahani, Today, 09:40 AM
                              6 responses
                              41 views
                              0 likes
                              Last Post alifarahani  
                              Started by Waxavi, Today, 02:10 AM
                              1 response
                              20 views
                              0 likes
                              Last Post NinjaTrader_LuisH  
                              Working...
                              X