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 XXtrader, Yesterday, 11:30 PM
                              2 responses
                              11 views
                              0 likes
                              Last Post XXtrader  
                              Started by Waxavi, Today, 02:10 AM
                              0 responses
                              6 views
                              0 likes
                              Last Post Waxavi
                              by Waxavi
                               
                              Started by TradeForge, Today, 02:09 AM
                              0 responses
                              11 views
                              0 likes
                              Last Post TradeForge  
                              Started by Waxavi, Today, 02:00 AM
                              0 responses
                              2 views
                              0 likes
                              Last Post Waxavi
                              by Waxavi
                               
                              Started by elirion, Today, 01:36 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post elirion
                              by elirion
                               
                              Working...
                              X