Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaTrader 8.0.4 & IB TWS 960 - Invalid Username

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

    NinjaTrader 8.0.4 & IB TWS 960 - Invalid Username

    After upgrading NT and TWS to 8.0.4 and 960 the auto connect function has been flaky. 99% of the time when NT attempts to enter the user/pass in to TWS either a few characters from the beginning of the username are placed at the end or a couple characters are just missing. It appears that the speed in which NT attempts to input the user/pass is too fast causing an Invalid Username error from TWS.

    After the connection fails due to invalid login you can cancel out of TWS and then using the Connections menu select IB again. Here about 60% of the time the user/pass will be entered correctly and almost always on the third attempt it will work.

    Anyone else seeing this also?

    #2
    Hello anthrux,

    Can you please proceed as follows.

    - Shut down NinjaTrader and go to Documents-->NinjaTrader 8.
    - Right click the Config file and open it in Notepad.
    - Search for the following line: <AutoLogonDelaySeconds>0</AutoLogonDelaySeconds>
    - Change it to the following: <AutoLogonDelaySeconds>5</AutoLogonDelaySeconds>
    - Save the Config file in Notepad and close it.
    - Start NinjaTrader and check if the auto logon works for you.
    JasonNinjaTrader Customer Service

    Comment


      #3
      My current delay is set to 40 seconds. This AutoLogonDelaySeconds was modified by instruction from support to allow TWS more time to start before NT attempted to connect with it. This setting does not change how soon NT entered login details to launch TWS only how soon it connects to it.
      Thread regarding this previous change:
      http://ninjatrader.com/support/forum...ad.php?t=88094

      The full IBOptions is below with some items removed.
      <IBOptions>
      <CanManageOrders>true</CanManageOrders>
      <ConnectOnStartup>true</ConnectOnStartup>
      <IsHdsEnabled>false</IsHdsEnabled>
      <Mode>Live</Mode>
      <Name>B - IB LIVE</Name>
      <Password>REMOVED</Password>
      <Provider>InteractiveBrokers</Provider>
      <RunAsProcess>false</RunAsProcess>
      <TypeName>NinjaTrader.Cbi.IBOptions</TypeName>
      <User>REMOVED</User>
      <AutoLogonDelaySeconds>40</AutoLogonDelaySeconds>
      <CheckForMarketData>false</CheckForMarketData>
      <ClientId>0</ClientId>
      <FxLotSize>TenK</FxLotSize>
      <Host>127.0.0.1</Host>
      <IsAfterHoursTradingEnabled>false</IsAfterHoursTradingEnabled>
      <IsAutoLogOnEnabled>true</IsAutoLogOnEnabled>
      <IsPopupHandlingEnabled>true</IsPopupHandlingEnabled>
      <LogLevel>Detail</LogLevel>
      <PortGateway>4001</PortGateway>
      <PortTws>7496</PortTws>
      <UseLocalOcoSimulation>false</UseLocalOcoSimulation>
      <UseSsl>true</UseSsl>
      <UseTws>true</UseTws>
      <AutoLogonPath>C:\Jts\960\tws.exe</AutoLogonPath>
      </IBOptions>

      Comment


        #4
        Hello antrux,
        Can you please clarify if this is a paper account or a live account connection?

        Comment


          #5
          Live Account

          Comment


            #6
            Hello antrux,
            In some cases the delay has be known to take around 120 - 150 seconds. I would recommend testing around the 100 second mark first and if this does not work correctly please move up by 10 second increments. You will need to wait until the amount of seconds to expire before confirming the connection will not be established.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by MidenThur, Today, 12:52 AM
            0 responses
            3 views
            0 likes
            Last Post MidenThur  
            Started by seseoraf, Today, 12:51 AM
            1 response
            3 views
            0 likes
            Last Post charmingishagarg  
            Started by Rosario, Today, 12:50 AM
            0 responses
            2 views
            0 likes
            Last Post Rosario
            by Rosario
             
            Started by kemoyums, Today, 12:38 AM
            0 responses
            2 views
            0 likes
            Last Post kemoyums  
            Started by MartynBashi, Yesterday, 11:01 PM
            0 responses
            4 views
            0 likes
            Last Post MartynBashi  
            Working...
            X