NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 08-13-2007, 03:10 PM   #1
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 331
Thanks: 0
Thanked 11 times in 8 posts
Default Error Connecting to Server Socket

I'm trying to set a new computer up to trade a Tradestation Strategy through NinjaTrader using the e-mail subsystem. Everytime I try to configure the e-mail in Tradestation following the help guide you provide, I keep getting this same error message over and over (in the title above).
I'm guessing there is some setup I need to do but don't know what it is. The pc is on a lan, connected to the internet through a router. I can trade all right, I can see the internet. Just can't get this connection to work.
Thanks for your help.
daven is offline  
Reply With Quote
Old 08-13-2007, 11:01 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Where do you get this error? In TS? If so, then I suggest turning off firewalls, spam blockers etc., since TS has trouble to establish a socket connection.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-13-2007, 11:58 PM   #3
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 331
Thanks: 0
Thanked 11 times in 8 posts
Default Socket Error Reply

Quote:
Originally Posted by NinjaTrader_Dierk View Post
Where do you get this error? In TS? If so, then I suggest turning off firewalls, spam blockers etc., since TS has trouble to establish a socket connection.
I get this error in Tradestation when I try to configure e-mail notification for the four order types specified in the guide. Firewalls are turned off and I haven't installed any virus software yet. Is it possibly some kind of setting I need to make that would normally be done when a new pc is configured? Its not like I'm an expert in this stuff so it could be a pretty simple and dumb error.
Thanks
Dave
daven is offline  
Reply With Quote
Old 08-14-2007, 12:51 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Did you leave TradeStation running while testing the email interface in TS?

Please make sure you proceed exactly as per video in the help guide: http://www.ninjatrader-support.com/H...V6/SetUp6.html
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-14-2007, 09:27 AM   #5
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 331
Thanks: 0
Thanked 11 times in 8 posts
Default Reply - Error Connecting to Server Socket

Dierk,
I went through the video, and repeated my steps to set the strategy up. I did have TS running during the setup, last time and this time. It is now running, and I have no idea why it is now working. I assume I left some step out in the setup, but didn't see that anything was different this time through. I have it running and it is working as intended though what I was afraid of is happening, and that is the time delay between the autotrade instructions recorded by TS and their actual execution on the platform, though amazingly fast, there is still a 1-2 tic slop between what the strategy thinks has happened and what actually has happened. I'm rewriting the strategy to slow it down, hoping that fewer trades with bigger targets might reduce the impact of the slop.
Thanks for your help. I don't know why its now working, but it is.
Dave
daven is offline  
Reply With Quote
Old 08-14-2007, 09:30 AM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Glad, it's working for you.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 06-01-2009, 10:48 AM   #7
hcarstens
Junior Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default

I just had this problem in 6.5. The solution was to select 'AT Interface' from the File menu in NT and then go to TS and send the test message. After selecting 'AT Interface' everything worked fine.

--h
hcarstens is offline  
Reply With Quote
Old 06-01-2009, 11:08 AM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,548
Thanks: 261
Thanked 1,012 times in 993 posts
Default

Welcome to the NinjaTrader support forums hcarstens - correct the AT Interface has to be enabled - http://www.ninjatrader-support.com/H...V6/SetUp6.html
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 11-24-2009, 12:15 PM   #9
bluewave
Junior Member
 
Join Date: May 2007
Location: , ,
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Send a message via AIM to bluewave Send a message via MSN to bluewave
Default

I am getting " Error Connecting to Server Socket " and I have configured Tradestation exactly as it says in the video...

There is a text file called "Host" in the Windows/system32/drivers/etc directory where you list your hosts, perhaps there is something there that needs to be added?

Thanks,

Randy
bluewave is offline  
Reply With Quote
Old 11-24-2009, 12:31 PM   #10
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,548
Thanks: 261
Thanked 1,012 times in 993 posts
Default

Is the SMTP server in NinjaTrader also enabled?

Do you perhaps run a competing SMTP server simultaneously, for example the case with Win 2003 server edtions? If yes please disable it, and recheck via the Test email function in TradeStation.
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 11-24-2009, 02:07 PM   #11
bluewave
Junior Member
 
Join Date: May 2007
Location: , ,
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Send a message via AIM to bluewave Send a message via MSN to bluewave
Default

I still get the error, everything is exactly as it should be no other programs are running, no email client, no firewall or virus scan...

In the Misc Tab under Options, the SMTP Server field is blank, which is the default, port is 25
bluewave is offline  
Reply With Quote
Old 11-24-2009, 02:35 PM   #12
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Try inputting your ISP's SMTP server information and login account in there.
NinjaTrader_Josh is offline  
Reply With Quote
Old 12-01-2009, 01:23 AM   #13
davehart90
Junior Member
 
Join Date: Oct 2009
Location: Calgary
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default SMTP Problems

I was pulling my hair out and I don't have much left.

My two problems
1. My ISP was blocking port 25 (lots do).
Use alternate port
2. My local firewall was also blocking Ninja Trader from accessing the Internet.
Went into my firewall and allowed NT full Internet access.

Everything worked fine after that.

If your e-mail doesn't allow SMTP relay you can use http://www.authsmtp.com for a small fee.

To test access to your mail server, use telnet.exe

From a DOS prompt type: telnet servername port

Like : telnet mail.authsmtp.com 2525

Since authsmtp doesn't require a secure channel, you will get a connection message.

Many mail systems require authentication as well as a secure channel (TLS). Such as live mail and gmail.

I don't think NT supports TLS

Dave Hart
davehart90 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
Connecting to MBT's quote server gregiii Connecting 7 08-13-2007 10:40 PM
Disconnected from server Z Connecting 1 07-30-2007 01:47 PM
Unable to connect to license server raziel00 Installation and Licensing 1 01-10-2007 05:01 AM
log file being generated on server PointJockey Miscellaneous Support 1 11-11-2005 10:29 PM
PATS Server Symbols underground Automated Trading 2 04-20-2005 01:37 PM


All times are GMT -6. The time now is 02:01 AM.