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:


      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 ScottWalsh, Today, 04:29 PM
            0 responses
            4 views
            0 likes
            Last Post ScottWalsh  
            Started by rtwave, 04-12-2024, 09:30 AM
            2 responses
            21 views
            0 likes
            Last Post rtwave
            by rtwave
             
            Started by tsantospinto, 04-12-2024, 07:04 PM
            5 responses
            69 views
            0 likes
            Last Post tsantospinto  
            Started by cre8able, Today, 03:20 PM
            0 responses
            7 views
            0 likes
            Last Post cre8able  
            Started by Fran888, 02-16-2024, 10:48 AM
            3 responses
            49 views
            0 likes
            Last Post Sam2515
            by Sam2515
             
            Working...
            X