Beating Alpha

iterating towards truth

Uncategorized

Connecting NinjaTrader to Interactive Brokers Trader Workstation (TWS)

Today I have been strugglin to get the Ninja Trader connected via IB api.

First, I have had an issue with different version of java when running TWS.

  1. I have uninstalled the TWS and all JAVA version and installed the 64bit ver. of: https://java.com/en/download/manual.jsp
  2. I have installed the TWS of here: https://www.interactivebrokers.com/en/index.php?f=552

After that, I have had an issue (from Ninja Trader) with a missing “javas” file which is located in your bin file in Java folder under Program Files. I have copied that one into Windows/System32

One last issue was, that once the Ninja Trader tried to connect to TWS, it kept reconnecting. It logged me in, showed the TWS and closed the TWS and it repeated this pattern three times finishing with:

login failed: timeout on waiting for TWS ninjatrader

So this is what I have done to fix it:

  1. Go to your TWS
  2. Open: File->Global Configuration
  3. Display -> Settings: in “Titlebar text” there is a edit box. Enter following into it:
    “Interactive Brokers Trader Workstation” (without quotes)
  4. Then navigate to Configuration–> Display–> Style
  5. Check the setting: Use system title bar (Change requires a restart).

 

 

Leave a Reply