Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaTrader 7 and IB Gateway

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

    NinjaTrader 7 and IB Gateway

    Hello,

    I am aware that NinjaTrader 7 does not officially support IB Gateway, however I used it in 2014-2015 with no issues. I need to trade at IB again and use Ninja 7 (my strategies are not ported to 8 for now), and had difficulties connecting this time. When I just installed Gateway, Ninja would not even connect, it was giving me an error that c:\jts.....\tws.exe file was missing. I then loaded TWS.

    Here are the steps that I now need to perform to connect:
    1) Connect to IB Gateway manually
    2) Connect to IB from Ninja. This opens TWS login pad
    3) Cancel TWS login pad
    4) I am now connected.

    Is there any better way?

    Thanks,
    redduke

    #2
    You're correct that it is not officially supported, but there are users who use NinjaTrader 7 with IB Gateway without issue.

    What it sounds like you have 'auto logon' enabled in your Interactive Brokers connection. In NinjaTrader 7, this is hard-coded to look for Interactive Brokers TWS (not Gateway). There is no way to auto logon to IB Gateway in NinjaTrader 7.

    A less complicated way to do what you're doing would be:
    • Disable 'auto logon' within your Interactive Brokers connection
    • If you've entered login credentials, remove those as well
    • Open IB Gateway and login
    • Connect to IB in NinjaTrader

    Comment


      #3
      Hi Patrick,

      Thanks for your reply. It was a bit better, but I still got TWS login screen (all credentials were blank) and I just clicked cancel. Should I uninstall TWS? Or I would need to keep clicking on cancel (not a big deal of course)

      Thanks

      Comment


        #4
        If TWS is popping up when you are initiating the connection from within NinjaTrader, this means that 'auto logon' is still enabled in the connect and/or credentials are entered in the connection.

        Can you confirm that you disabled 'auto logon' and removed the credentials?

        Comment


          #5
          Yes, it is. Please see attached screen shot.
          Attached Files

          Comment


            #6
            I see, thanks. This may be the best scenario since there is no way to force NinjaTrader 7 to switch to Gateway instead of TWS.

            Comment


              #7
              Thanks for confirming. It just found it is a bit odd that behavior changed and wanted to make sure my steps are correct.

              I only wish porting code from 7 to 8 would be easy. Facing a major rewrite of 1000s lines of source code.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NRITV, Today, 01:15 PM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by maybeimnotrader, Yesterday, 05:46 PM
              5 responses
              24 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by quantismo, Yesterday, 05:13 PM
              2 responses
              16 views
              0 likes
              Last Post quantismo  
              Started by frankthearm, Today, 09:08 AM
              7 responses
              27 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Started by adeelshahzad, Today, 03:54 AM
              5 responses
              33 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X