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-23-2008, 11:46 AM   #1
tradefaz
Senior Member
 
Join Date: Aug 2008
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default Will using NT with InteractiveBrokers be a stable solution?

Sorry to ask this potentially sensitive question. I really like NT so far, in terms of the easy of use and what I can get done vs. me coding my own interface to the IB servers (doable, but a huge use of my time).

The problem is that I've seen some weird stability issues with a test connection to MB Trading in the past week. I have an IB account that I will begin testing with next week, but I am at a crossroads over whether I should just write it all myself.

My question is, can I leave NT up and running all day and night with IB or am I going to experience all sorts of random stops, disconnections, etc?

I guess what I'm asking is how many people use NT for a production trading environment rather than just a powerful backtesting tool?

With apologies to the NT folks in advance, they have answered all my questions very well (accept that weird issue with the strategies tab, but that's another thread).

I just need to figure out where to go next with my work.
tradefaz is offline  
Reply With Quote
Old 08-23-2008, 12:59 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

It is not suggested you run your strategies unmonitored. You can get disconnected for reasons not even related to IB or anything. If you lose internet connectivity that is it. etc. etc. There will always be cases that can crop up and require you to intervene.
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-23-2008, 01:19 PM   #3
tradefaz
Senior Member
 
Join Date: Aug 2008
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Of course one shouldn't leave it unnatended. But I'm asking about stability. I would rather watch over a system that has maybe one break a day, rather one that has 6. I'm just asking if folks have found the combination stable.

I could write a socket level interface in c++ and have great certainty over things. In MBs case it seems their system is rather poor.
tradefaz is offline  
Reply With Quote
Old 08-23-2008, 03:05 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Understood. I am unqualified to answer that question. Perhaps a forum community member with more experience into that setup could help.
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-23-2008, 03:07 PM   #5
tradefaz
Senior Member
 
Join Date: Aug 2008
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by Josh View Post
Understood. I am unqualified to answer that question. Perhaps a forum community member with more experience into that setup could help.
Cool. Maybe someone will pipe in. Let me ask another way, will NT introduce any additional latency into processing IB messages (tick or otherwise) than connecting directly to IB through their API? Or rather will that additional latency be greater than negligible?
tradefaz is offline  
Reply With Quote
Old 08-24-2008, 09:10 AM   #6
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

NT does connect directly through to IB's API.
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-24-2008, 11:52 PM   #7
ryker
Senior Member
 
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by tradefaz View Post
Sorry to ask this potentially sensitive question. I really like NT so far, in terms of the easy of use and what I can get done vs. me coding my own interface to the IB servers (doable, but a huge use of my time).

The problem is that I've seen some weird stability issues with a test connection to MB Trading in the past week. I have an IB account that I will begin testing with next week, but I am at a crossroads over whether I should just write it all myself.

My question is, can I leave NT up and running all day and night with IB or am I going to experience all sorts of random stops, disconnections, etc?

I guess what I'm asking is how many people use NT for a production trading environment rather than just a powerful backtesting tool?

With apologies to the NT folks in advance, they have answered all my questions very well (accept that weird issue with the strategies tab, but that's another thread).

I just need to figure out where to go next with my work.
Hi tradefaz,
I've been using NT with Esignal & IB in production trading for almost 2 months now and I have to say that apart the small oddities that I encounter in the strategy tab (and sometimes the position is not reported to NT) everything is pretty stable:
- my orders are all transmitted correctly (except once when IB had a problem, NT needs to be programmed to handle the rejects properly in the strategy).
- I never experienced a crash while trading.

So even if it's not a long period, I think NT is quite reliable (if only the small oddities could be fixed that would be great).
ryker is offline  
Reply With Quote
Old 08-25-2008, 07:04 AM   #8
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

Thank you for your positive remarks.

Regarding the strategies tab "oddities' you experience, are you able to reproduce them?

Have you viewed this link:
http://www.ninjatrader-support.com/v...ead.php?t=4033
NinjaTrader_Ben is offline  
Reply With Quote
Old 08-25-2008, 11:43 AM   #9
ryker
Senior Member
 
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 1 time in 1 post
Default

I'm not able to reproduce them yet as it looks like it happens randomly. But still trying to figure out the problem.

Thanks for your link but I was aware of it.
ryker is offline  
Reply With Quote
Old 08-25-2008, 12:00 PM   #10
tradefaz
Senior Member
 
Join Date: Aug 2008
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by ryker View Post
Hi tradefaz,
I've been using NT with Esignal & IB in production trading for almost 2 months now and I have to say that apart the small oddities that I encounter in the strategy tab (and sometimes the position is not reported to NT) everything is pretty stable:
- my orders are all transmitted correctly (except once when IB had a problem, NT needs to be programmed to handle the rejects properly in the strategy).
- I never experienced a crash while trading.

So even if it's not a long period, I think NT is quite reliable (if only the small oddities could be fixed that would be great).
Thanks for the feedback, but what do you mean by not reporting the position? Doesn't that leave the code with a different view of what orders you actually have open? Or are you referring more to the accounting stuff? I take it this issue is not negatively affecting your analytical code?

Out of curiosity, how long can you keep NT connected to IB during the week? Does TWS shutdown daily like MB Trading? I find this highly annoying? And if so, are these strictly scheduled shutdowns that can be planned for in the code or are they random? And does NT give you a way to handle disconnects from within the code?

Many thanks. Looking like NT and IB might be the way to go.
tradefaz is offline  
Reply With Quote
Old 08-25-2008, 01:00 PM   #11
ryker
Senior Member
 
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 1 time in 1 post
Default

It doesn't affect negatively at all. It's just in the strategy tab sometimes the pnl is not reported and in the MA sometimes the position is flat but I'm in position (from a strategy). But strangely enough it's not always the case and it has worked perfectly since 2 days now. I think there's something that cause this issue but I haven't find it yet...

I leave NT connected to IB from 8am until 10 pm (UK time). There is a daily shutdown. Doesn't really annoy me as I shutdown the computer anyway.
Unfortunately I can't answer more on those disconnections and if NT can't handle it.
Last edited by ryker; 08-25-2008 at 01:08 PM.
ryker is offline  
Reply With Quote
Old 08-25-2008, 01:14 PM   #12
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,


I know you have seen this link in this thread, but I believe this is the source of the issue you are experiencing:
http://www.ninjatrader-support.com/v...ead.php?t=4033

NinjaTrader will disconnect daily when IB resets it servers. You must restart NinjaTrader once the servers reset.
NinjaTrader_Ben is offline  
Reply With Quote
Old 08-25-2008, 07:29 PM   #13
tradefaz
Senior Member
 
Join Date: Aug 2008
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Ben View Post
Hello,


I know you have seen this link in this thread, but I believe this is the source of the issue you are experiencing:
http://www.ninjatrader-support.com/v...ead.php?t=4033

NinjaTrader will disconnect daily when IB resets it servers. You must restart NinjaTrader once the servers reset.
I don't get that, you mean because the strategy runs against whatever historical data is there, you have to enter an order to match that?

I mean isn't that a big problem? Shouldn't we be able to tell the strategy to ignore historical data when we want to run it in production? Can't this be achieved by formatting the data series on a chart so that prior bars is set to 0 and then running it live?
tradefaz is offline  
Reply With Quote
Old 08-25-2008, 10:19 PM   #14
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

>> Shouldn't we be able to tell the strategy to ignore historical data when we want to run it in production?
Have not read through complete thread but may be this helps:
Code:
if (Historical)
    return;
NinjaTrader_Dierk is offline  
Reply With Quote
Old 11-24-2008, 05:30 AM   #15
dave1992
Senior Member
 
Join Date: Nov 2008
Location: UK
Posts: 637
Thanks: 0
Thanked 1 time in 1 post
Default

It may help ;-) but see this thread as I just had this same question

http://www.ninjatrader-support2.com/...ad.php?t=11806
dave1992 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
Requesting InteractiveBrokers Datafeeds for single exchanges (not SMART) EvolveK Connecting 3 03-25-2008 05:36 AM
My Solution for (New) Cheesy Zenfire Connection lewdfinger Connecting 1 03-01-2008 09:09 AM
Link Button Blead-Thru - Solution zoltran Miscellaneous Support 2 09-22-2007 09:51 PM
Interactivebrokers bid/ask problems / order fill issues (paper) scriabinop23 Automated Trading 3 05-16-2007 11:37 AM
InteractiveBrokers Backfill MrBaffalo Connecting 5 12-29-2006 01:36 AM


All times are GMT -6. The time now is 09:42 PM.