Ninja Trader / IB TWS Communications Drop (Page 2) - IB Trader Workstation | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > IB Trader Workstation

Ninja Trader / IB TWS Communications Drop
Started:August 2nd, 2011 (06:09 PM) by otterway Views / Replies:6,200 / 12
Last Reply:November 30th, 2012 (05:49 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Ninja Trader / IB TWS Communications Drop

Old August 6th, 2011, 12:45 PM   #11 (permalink)
Elite Member
Berlin, Europe
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
Fat Tails's Avatar
Posts: 9,525 since Mar 2010
Thanks: 4,213 given, 24,794 received

What is a Disconnect?

I have noticed a specific problem which is also linked to NinjaTrader API and the way it handles the data feed from Interactive Brokers.

If I look at the Interactive Brokers market data connections, it typically turns orange a few times, after the cash markets are closed. Looking at the market data in detail shows the following picture:

eurofarm: connected
cashfarm: disconnected
cusfuture: connected
usfarm: connected
usfuture: connected

When trading futures, I do not need market data from cashfarm. So I can continue trading without problems. However, if I check the connection status of NinjaTrader for
Bars.MarketData.Connection.PriceStatus  == Cbi.ConnectionStatus.Connected
it will return the value false.

This affects sound alerts and strategies, which use that information. It is basically a false disconnect, because the cash farm has been switched off, once the cash markets are closed.

Unfortunately the Interactive Brokers API of NinjaTrader cannot differentiate between the various farms when establishing the connection status.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:

Old August 6th, 2011, 01:26 PM   #12 (permalink)
Elite Member
kansas city
Futures Experience: Advanced
Platform: ninjatrader
Broker/Data: IQFeed, Ninja, Own C# with API to Trade King and IB
Favorite Futures: stocks
otterway's Avatar
Posts: 39 since Jul 2011
Thanks: 22 given, 20 received

Thank you...

I have solved my comm problems with the post above... I am writing my own software to speed up my trading and to connect directly with TWS through a socket... Although C# is a good language... C++ will get me where I need to be and I will not be restricted to Net 3.5... I can encapsulate charts using Net 4.0 and use other C++ libraries for indicator basics... but I've really developed my own... I really need to drive to the tick level verses the chart level...

All good things start at the top of the candle... with tick of the wick!

Reply With Quote

Old November 30th, 2012, 05:49 PM   #13 (permalink)
Elite Member
@ Germany
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: FDAX
Posts: 424 since Nov 2011
Thanks: 232 given, 359 received

Current State

Hi Gang,

can anyone share their current experience connecting the own application / NT to the TWS via the API? I'm curious if there are any stumbling blocks for medium sized (Daily ca. 200-300 trades a 5-30 cars) autotrading systems.

Thanks Koepisch

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > IB Trader Workstation > Ninja Trader / IB TWS Communications Drop

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
IB with Ninja Trader and DTN IQ Feed? shortbleu NinjaTrader 7 June 6th, 2011 09:16 PM
TWS with Ninja and Multicharts cleon IB Trader Workstation 8 March 22nd, 2011 02:56 PM
Ninja can't catch limit orders through TWS trigon IB Trader Workstation 18 January 13th, 2011 09:40 AM
Keep IB's TWS Running 24x5 TraderSU Vendors and Product Reviews 2 July 22nd, 2010 11:29 PM
Has anyone used Ninja unmanaged orders to place IB TWS OCA g PaulCahill Brokers and Data Feeds 1 May 19th, 2010 09:52 AM

All times are GMT -4. The time now is 01:05 PM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-27 in 0.07 seconds with 19 queries on phoenix via your IP