• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-broker: ib and cqg

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

    Multi-broker: ib and cqg

    Hello, i have multi-broker license. I have connection to CQG and to IB TWS. I use IB for my historical data and charting. The TWS resets every day of-course at auto-logof. What is happening is that the CQG connection is always maintained, and when TWS logs off, and i log back in to TWS, it is no longer the first connection, so the charts don't refresh anymore. How do i handle this situation ..

    #2
    Hello cmaxb,

    Thanks for your post.

    Is the connection with Interactive Brokers timing out during these resets to the point where your connection to IB needs to be reestablished manually?
    KyleNinjaTrader Customer Service

    Comment


      #3
      yes, possibly. what are the settings for reconnection ..

      Comment


        #4
        Hi,

        Sorry for the confusion - I was asking whether you are forced to reconnect to Interactive Brokers manually or whether the connection is being restored automatically.
        KyleNinjaTrader Customer Service

        Comment


          #5
          what is the timeout on reconnect ? i can set up a task to restart TWS right after logout. In this case, i had to log in manually to TWS, and refresh all NT charts

          Comment


            #6
            Hello cmaxb,

            As I recall, the timeout window is rather short - somewhere around 60-90 seconds, but I'm not able to find any documentation specific to this. That said, if the timeout was to occur connection would need to be reestablished manually. Unfortunately, in this case that would also require that the CQG connection be cycled to reestablish the proper connection order. While there is no workaround available currently, I will bring this up with development to see that this type of usage is considered when designing future builds of NinjaTrader.
            KyleNinjaTrader Customer Service

            Comment


              #7
              it seems shorter than 60 secs. I close it at 1730, and auto-login at 1731.

              Comment


                #8
                Originally posted by cmaxb View Post
                Hello, i have multi-broker license. I have connection to CQG and to IB TWS. I use IB for my historical data and charting. The TWS resets every day of-course at auto-logof. What is happening is that the CQG connection is always maintained, and when TWS logs off, and i log back in to TWS, it is no longer the first connection, so the charts don't refresh anymore. How do i handle this situation ..
                cmaxb,
                If all your using IB for is charting then you should use the IB Gateway. It has less resources overhead and best of all it never logs off so you can run it continuously. Just make sure you change the port setting to 4001 instead of 7496. Good Luck.

                Comment


                  #9
                  Really that's a good service providers.

                  Comment


                    #10
                    What mean multi-broker in detail? Can I use Amp Future to feed and trade ES future and IB to feed and trade german stocks in the same time? thx in ahead

                    Comment


                      #11
                      Yes, that is what a multi broker license allows. You can trade with multiple supported brokers simultaneously.
                      JasonNinjaTrader Customer Service

                      Comment


                        #12
                        Can I use IB Gateway to trade ? Also, I am experiencing another issue. i use break-line charts based on minute intervals. when i reconnect to ib each day, it refreshes all the charts. i guess that is useful, however, there are gaps in the pulled data. if, i manually refresh data on each chart, i will get the correct download. this is problematic for large # charts.

                        i wonder if this is because too many simultaneous requests for history jam up the serverv?

                        chris
                        Last edited by cmaxb; 03-18-2012, 12:08 PM.

                        Comment


                          #13
                          Hi Chris,

                          1.) No - the stand alone version of TWS must be used with NinjaTrader.

                          2.) Taking a step back, how much data is being requested? How many charts and other windows are used?
                          KyleNinjaTrader Customer Service

                          Comment


                            #14
                            Well, Gateway seems to work well for quotes.

                            I have 10 (quantity) minute-based charts, 10 -15 days each, for different symbols

                            Comment


                              #15
                              Hi cmaxb,

                              That is a data request which can exceed IB's limit from the sound of it. It may be wise to reduce the total number of days requested if possible.
                              KyleNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by aslane, Today, 10:53 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post aslane
                              by aslane
                               
                              Started by bouncetherubble, Yesterday, 08:42 PM
                              1 response
                              12 views
                              0 likes
                              Last Post NinjaTrader_ChrisL  
                              Started by bortz, Yesterday, 08:18 AM
                              5 responses
                              35 views
                              0 likes
                              Last Post bortz
                              by bortz
                               
                              Started by GARZONJ, Yesterday, 09:02 PM
                              1 response
                              15 views
                              0 likes
                              Last Post NinjaTrader_ChrisL  
                              Started by siroya, Today, 06:32 AM
                              4 responses
                              19 views
                              0 likes
                              Last Post NinjaTrader_ChrisL  
                              Working...
                              X