NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Connecting

Connecting Support for establishing connections to your broker or market data service provider.

Reply
 
Thread Tools Display Modes
Old 08-28-2008, 09:10 AM   #1
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default IB Connectivity Issue--Change is settings directory

My TWS was doing some strange things and their tech dept had me change my login settings directory for TWS 884. It was changed from C:\Jts to C:\Jts2.

Of course now NT won't connect with IB. IB tech said that you should be able to provide me with a configuration change for the auto-login. Can someone help me with this?

TIA
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 09:21 AM   #2
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

You can uncheck Auto Login in your account setup. With this unchecked you can open and log-in to TWS and then connect NinjaTrader.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 08-28-2008, 09:40 AM   #3
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

I turned off auto-login and I'm still getting this message:

"Login failed: IB.Adapter.MessageLoop No connection could be made because the target machine actively refused it"

IB told me that I would have to change the current login script on NT's side in order to be able to login.
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 09:55 AM   #4
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

There isn't a way for you to change where the auto login points, but the manual log-in should still work.

The error you are receiving means the client ID of zero in your connection is being used by another program as well. Please check all of your connection information and make sure nothing but NInjaTrader is connecting to TWS.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 08-28-2008, 09:57 AM   #5
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

Can you tell me how to manually login? What steps do I need to go through?
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 10:08 AM   #6
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

Just log-in to TWS first with your password and user name.

Then open NinjaTrader and connect by going to FIle--> Connect--> IB.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 08-28-2008, 10:15 AM   #7
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Jessica View Post
Just log-in to TWS first with your password and user name.

Then open NinjaTrader and connect by going to FIle--> Connect--> IB.
That's exactly what I was doing before when I got the message:

"Login fialed: IB.Adapter.MessageLoop No connection could be made because the target machine actively refused it."

Just tried it again... same message
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 10:38 AM   #8
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

Try deleting the account connection, repairing your database (Tools--> Options--> Misc--> Repair DB), restart NinjaTrader, and re-create the connection.

If this does not resolve the issue please send your IB log-in credentials to support AT ninjatrader DOT com attn Jessica and I will test this further.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 08-28-2008, 11:36 AM   #9
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Jessica View Post
Try deleting the account connection, repairing your database (Tools--> Options--> Misc--> Repair DB), restart NinjaTrader, and re-create the connection.

If this does not resolve the issue please send your IB log-in credentials to support AT ninjatrader DOT com attn Jessica and I will test this further.
Still a No-Go.

However, as an experiment I switched the settings directory back to C:\Jts and I was able to manually connect right away so whatever the issue is with connecting to NT, it is with settings directory set at C:\Jts2. IB says there should be a way around it but it would probably require a different NT connection script.

I wish I could just use the C:\Jts but there is some kind of corruption issue I'm guessing with the TWS 884 that is causing random anomolies while TWS 884 is running. I tried to troubleshoot it with IB and cleared out the Java Temp files and that stopped the problem for a couple of hours and then the issues resurfaced again.

Very frustrating.

Any other ideas how NT can connect using the settings directory set at C:\Jts2?
Last edited by crazyhorse2393; 08-28-2008 at 11:47 AM.
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 12:06 PM   #10
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

Please send me a note at support AT ninjatrader DOT com, and we can see if we can get everything to work with the normal TWS settings.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 08-28-2008, 12:10 PM   #11
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

Just got off the phone with IB again. They think there might be a chance that the TWS 884 version I downloaded off of the NT website this weekend might be corrupt somewhere causing the anomalies. Unfortunately, IB doesn't have a link where I can download an older version of TWS 884. The only thing they could recommend is a complete uninstall of TWS 884 and upgrade to a newer version. Any thoughts?

The older version of TWS 884 that I had worked great. Never had any problems until I downloaded the new one.
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 12:16 PM   #12
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

I would suggest uninstalling the version you have now, clearing your browser cache and history, and then downloading it from our website once more.
NinjaTrader_Jessica is offline  
Reply With Quote
Old 08-28-2008, 12:21 PM   #13
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

I just sent you an email.
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 02:17 PM   #14
crazyhorse2393
Member
 
Join Date: Aug 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

(WOW, I can't belive I spent all day figuring this out!!)

Okay boys and girls, here is the scoop. I did a complete reinstall of everything on my computer this weekend beginning with a format of the hardrive so everything was freshly installed. The newest version of NT and TWS 884 as found on NT's website.

Long LONG story short. The newest version of NT and TWS 884 will only play nice so long as the NT auto-logon feature is NOT used. The moment you enable the auto-logon, NT takes over TWS 884 and causes it to do really screwy things. If you enable the auto-logon and screw TWS up the only way to get TWS back to normal is to do a complete uninstall and reinstall. It probably wouldn't hurt to uninstall and reinstall java as well. (which I've done several times today)

Moral of the story, manually connect NT to TWS!!!

(and I'm going to keep my fingers crossed)
crazyhorse2393 is offline  
Reply With Quote
Old 08-28-2008, 02:25 PM   #15
NinjaTrader_Jessica
NinjaTrader Customer Service
 
NinjaTrader_Jessica's Avatar
 
Join Date: Oct 2007
Posts: 574
Thanks: 0
Thanked 2 times in 1 post
Default

Thank you for the update.

The auto log-in on my connection is working as expected, but if you are using different directory settings you will be better off using the manual log-in.
NinjaTrader_Jessica is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo change location of database directory? plipa Installation and Licensing 4 12-02-2010 08:09 AM
Changing Workspace directory? mazachan General Programming 1 09-07-2007 12:07 AM
eSignal / NT Change Target Size Issue TaoNhan Automated Trading 1 08-31-2007 09:47 AM
2x PC Platform ATI Connectivity javatrader Automated Trading 7 04-07-2007 03:46 AM
Dual Connectivity through IB API whitmark Connecting 18 07-21-2006 05:56 PM


All times are GMT -6. The time now is 06:30 PM.