NinjaTrader Support Forum  

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 01-23-2009, 03:24 AM   #1
zweistein
Senior Member
 
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 20 times in 12 posts
Default patsystems error handling

Hello to all,

I am using the multibroker version and I am connected to a Patsystems broker and to IB.

Sometimes (as today) I am trading via laptop and gprs mobile phone connection from a train, and as you can immagine the internet connection drops once in a while.

I have a problem with patsystems and NT when I want to transmit or cancel an order and in that moment the internet connection is lost.
Usually NT flags the order status as pending and it is no longer possible to remove it, even after a successful reconnection to the internet. The only cure is to exit and restart NT. Then usually in pats there is no pending order reported.
Using IB in parrallel under the same circumstances the order status is handled correctly and it takes only a few seconds after reconnection to have the correct error status reported.

please indicate me the correct procedure to have correct order status in pats and eventually review your software.

Best regards
Andreas
zweistein is offline  
Reply With Quote
Old 01-23-2009, 05:10 AM   #2
NinjaTrader_Vincent
NinjaTrader Customer Service
 
NinjaTrader_Vincent's Avatar
 
Join Date: Mar 2005
Location: Amsterdam, The Netherlands
Posts: 2,042
Thanks: 0
Thanked 3 times in 3 posts
Default

Andreas,

This depends on the broker. Not with everyone the order resides on the brokers server.

Please see here for more info on order location:
http://www.ninjatrader-support.com/v...7076#post27076

In addition we always recommend being on a high speed internet connection. A mobile connection is too unstable to trade efficiently and therefore don't recommend to use this method at all.
NinjaTrader_Vincent is offline  
Reply With Quote
Old 01-23-2009, 10:29 AM   #3
zweistein
Senior Member
 
Join Date: Jan 2009
Posts: 584
Thanks: 2
Thanked 20 times in 12 posts
Default patsystems under internet connection stress

ok,

the point is that under pats the oco orders are simulated on the pc.
IB is better there because oco orders on their servers

So NT does know this and you could handle problems accordingly in your software in case of order transmission problems.
For sure the worst solution is the situation now, which is that a pending status remains active and it is not possible to continue in NT except after exit and restart.

High quality means the quality of error handling. It is very easy to say: Faulty internet connections are your problem. They are not and good engineering can handle it.


andreas
zweistein is offline  
Reply With Quote
Old 01-24-2009, 07:15 AM   #4
NinjaTrader_Vincent
NinjaTrader Customer Service
 
NinjaTrader_Vincent's Avatar
 
Join Date: Mar 2005
Location: Amsterdam, The Netherlands
Posts: 2,042
Thanks: 0
Thanked 3 times in 3 posts
Default

Andreas,

Unfortunately NinjaTrader does not dictate when a connection is lost. It operates like a radio receiver in that it receives a signal from your broker and then displays/reports these signals back to you the trader. When a connection is lost, it is the broker's API that determines this and reports this to NinjaTrader which in turn reports this back to the trader.
The common problems that contribute to this are -
- ISP issues
- hardware firewall issues changing IP addresses frequently
- Dynamic ISP address switching the address frequently intraday. Usually this happens once a week but you may want to check with your ISP. If they do change daily, a static IP address may work.
- With Windows XP SP2, if you have more than 10 open TCPIP socket connections open (10 programs making connections through the internet) windows will randomly shut down some connections
- Broker servers having problems
NinjaTrader_Vincent 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
Patsystems error... lumer Miscellaneous Support 7 01-15-2009 04:17 AM
Tick handling funky_boy Strategy Development 15 07-18-2008 05:16 AM
Order Handling Error Message BIGRED Automated Trading 4 03-07-2008 12:23 AM
Order error handling Aussie2 Strategy Development 4 12-27-2007 06:36 AM
Patsystems Mauro60 Connecting 12 05-11-2007 07:16 AM


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