• 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

IB TWS auto log off driving me nuts with strategy autotrader in NT

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

    IB TWS auto log off driving me nuts with strategy autotrader in NT

    Basically IB TWS has a *feature* that I can't remove. It likes to automatically disconnect in the middle of the night, and when it does that, a running strategy just disappears from NT.

    1) Is there a way to make it so IB TWS never logs out unless I force it?

    2) Is there a way (and if not, can I feature request it) that I can either make the strategy not disappear upon disconnection from the broker, OR perhaps have a way of saving strategy templates and loading them for quick daily starts of trading strategies in NT?

    #2
    sorry for jumping in .. .but ...

    Hear Hear ... !!! I'll second and Third the request that NT un-hooks the running of a strategy with an active broker feed. It's very frustrating !! TWS goes down and all my charts and strategy stats are gone. A better option would be a flag/color/greyed-out-something that indicates the strategy is 'off-line' vs dumping the whole thing. It also means that one cannot swing trade with NT and IB in it's current form. Quite limiting really.

    Testing a strategy is hard on Saturdays when IB is down and TWS won't even start .. I have to connect to the the 'external' data feed just to attach a strategy to a chart to see what it looks like. Very unusual EUI.


    scriabinop23... you can't disable this TWS feature, and IB has confirmed they will never remove it, as they feel it's a required security function.

    There are some tools such as IBCONTROLER that will futz arround with the shutdown time, ie .. if TWS was supposed to shutdown at 10pm, they wait till 9:50 and then just change the shutdown time within TWS.

    I haven't used it for a while, but got it from the TWS users group on Yahoo.
    Sorry .. no links.

    Perhaps NT could do something similar with the TWS shutdown time via the API. IT already handles pop-ups and other TWS automations.

    Comment


      #3
      Originally posted by zoltran View Post
      sorry for jumping in .. .but ...

      Hear Hear ... !!! I'll second and Third the request that NT un-hooks the running of a strategy with an active broker feed. It's very frustrating !! TWS goes down and all my charts and strategy stats are gone. A better option would be a flag/color/greyed-out-something that indicates the strategy is 'off-line' vs dumping the whole thing. It also means that one cannot swing trade with NT and IB in it's current form. Quite limiting really.

      Testing a strategy is hard on Saturdays when IB is down and TWS won't even start .. I have to connect to the the 'external' data feed just to attach a strategy to a chart to see what it looks like. Very unusual EUI.
      .

      Thanks for the agree. I agree.

      But you know you are able to download the chart data from IB for whatever instrument you want to test end of day on friday, and you will be able to use the strategy tester on that data, right? It is stored in Ninjatrader's caches.

      Comment


        #4
        Originally posted by scriabinop23 View Post
        Thanks for the agree. I agree.

        But you know you are able to download the chart data from IB for whatever instrument you want to test end of day on friday, and you will be able to use the strategy tester on that data, right? It is stored in Ninjatrader's caches.
        Data and strategy tester are ok without a broker connection.
        But sometimes I just want to place a strategy on a chart to see what it looks like, before testing it. And you can't attach a strategy if there isn't a broker connection. Same reason the strategies quit when TWS goes down at night.

        Using the "External Data" connection seems to be a work-around.
        Last edited by zoltran; 06-05-2007, 08:35 PM.

        Comment


          #5
          Originally posted by zoltran View Post
          Data and strategy tester are ok without a broker connection.
          But sometimes I just want to place a strategy on a chart to see what it looks like, before testing it. And you can't attach a strategy if there isn't a broker connection. Same reason the strategies quit when TWS goes down at night.

          Using the "External Data" connection seems to be a work-around.

          The alternative of course is to just backtest in strategy analyzer. that works.

          Comment


            #6
            >>> Is there a way to make it so IB TWS never logs out unless I force it?

            Not, that I know of.

            >>> Is there a way (and if not, can I feature request it) that I can either make the strategy not disappear upon disconnection from the broker, OR perhaps have a way of saving strategy templates and loading them for quick daily starts of trading strategies in NT?

            Sorry, not supported at this time.
            DierkNinjaTrader Customer Service

            Comment


              #7
              Actually there is a "hack" that seems to be working well (still testing it, but I have been going for 5 days no restart...)

              If you look in your JTS dir, there are some folders that seem to have random names. Open the one that was updated last. Then change the autoLogoffTime to 99999999999999:15,AM in the tws.xml configuration file and make sure that you don't store your settings on the server (checkbox at the bottom of the logon prompt). Make sure you edit this file while IB is not running, or else IB will override the settings when it shuts down.

              Once you have saved the file you can relaunch TWS and it will load this file. This will allow it to stay on for several days. Then you can just restart it once a week or something to make sure it's updated.

              Hope this helps.

              P

              Comment


                #8
                Originally posted by pmorissette View Post
                Actually there is a "hack" that seems to be working well (still testing it, but I have been going for 5 days no restart...)

                If you look in your JTS dir, there are some folders that seem to have random names. Open the one that was updated last. Then change the autoLogoffTime to 99999999999999:15,AM in the tws.xml configuration file and make sure that you don't store your settings on the server (checkbox at the bottom of the logon prompt). Make sure you edit this file while IB is not running, or else IB will override the settings when it shuts down.

                Once you have saved the file you can relaunch TWS and it will load this file. This will allow it to stay on for several days. Then you can just restart it once a week or something to make sure it's updated.

                Hope this helps.

                P
                Does this still work?

                Comment


                  #9
                  Still working here...

                  Comment


                    #10
                    Cool, thanks for the info.

                    Comment


                      #11
                      Originally posted by pmorissette View Post
                      Actually there is a "hack" that seems to be working well (still testing it, but I have been going for 5 days no restart...)

                      If you look in your JTS dir, there are some folders that seem to have random names. Open the one that was updated last. Then change the autoLogoffTime to 99999999999999:15,AM in the tws.xml configuration file and make sure that you don't store your settings on the server (checkbox at the bottom of the logon prompt). Make sure you edit this file while IB is not running, or else IB will override the settings when it shuts down.

                      Once you have saved the file you can relaunch TWS and it will load this file. This will allow it to stay on for several days. Then you can just restart it once a week or something to make sure it's updated.

                      Hope this helps.

                      P
                      You can also run the IB Gateway and there is no timeout. I run it on a linux box and my windows machine with NT attaches to it. Once every few weeks I restart it as part of a routine reboot. Good to know you can workaround TWS.

                      Comment


                        #12
                        The solution is IBController.

                        It works great, even with multiple instance of TWS (just launch each TWS instance through its own instance of IBController).

                        Cheers
                        D.

                        Comment


                          #13
                          Hi, Have you been able to "push" it to see how long it is able to run continuously before you need to manually update it? I'm trying to run some swing trade strategies and would like to connect weeks/months at a time. thanks

                          Comment


                            #14
                            Does IBController have a way so I can run swing trading strategies? Does it force it to not log out? Or does it simply log off and on at certain times?
                            Reason I'm asking is to try to have my swing trading strategies run weeks/months at a time w/o having the fear of disconnects stopping my live trading strategies.
                            thanks

                            Comment


                              #15
                              Hello Whirl,


                              Thank you for the forum post.


                              Unfortunately I am not familiar with IBController and we cannot support connecting to Interactive Brokers this way.


                              I have seen the workaround that pmorissette posted earlier in this thread work for clients although we cannot provide support for TWS if you make this workaround.


                              You can read more at the following NinjaTrader support forum post:
                              Ryan L.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by tvaughan4, 12-13-2019, 10:46 PM
                              2 responses
                              14 views
                              0 likes
                              Last Post tvaughan4  
                              Started by digibob, 12-13-2019, 10:01 PM
                              3 responses
                              12 views
                              0 likes
                              Last Post digibob
                              by digibob
                               
                              Started by ldissinger, Yesterday, 12:55 PM
                              1 response
                              14 views
                              0 likes
                              Last Post ldissinger  
                              Started by pstrusi, Yesterday, 09:06 AM
                              1 response
                              25 views
                              0 likes
                              Last Post marcus2300  
                              Started by vpzdcv, Yesterday, 02:31 AM
                              0 responses
                              13 views
                              0 likes
                              Last Post vpzdcv
                              by vpzdcv
                               
                              Working...
                              X