Ninja Trader / IB TWS Communications Drop - futures io
futures io

Ninja Trader / IB TWS Communications Drop

Discussion in Platforms and Indicators

      Top Posters
    1. looks_one otterway with 5 posts (1 thanks)
    2. looks_two Big Mike with 2 posts (3 thanks)
    3. looks_3 sam028 with 2 posts (6 thanks)
    4. looks_4 Fat Tails with 2 posts (5 thanks)
      Best Posters
    1. looks_one sam028 with 3 thanks per post
    2. looks_two Fat Tails with 2.5 thanks per post
    3. looks_3 Big Mike with 1.5 thanks per post
    4. looks_4 medias with 1 thanks per post
    1. trending_up 9,466 views
    2. thumb_up 16 thanks given
    3. group 5 followers
    1. forum 12 posts
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Ninja Trader / IB TWS Communications Drop

(login for full post details)
  #11 (permalink)
 Fat Tails 
Berlin, Europe
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Fat Tails's Avatar
Posts: 9,858 since Mar 2010
Thanks: 4,238 given, 26,770 received

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:

Can you help answer these questions
from other members on futures io?
TD Sequential for NT or MW?
Platforms and Indicators
Portfolio Management Tool/Software
Psychology and Money Management
Ninjatrader 8 Indicator - Plotting lines as offset from …
1 min chart v-shape scan help please
Help with NinjaScript strategy keyboard event
Best Threads (Most Thanked)
in the last 7 days on futures io
Al Brooks Trading Course (
29 thanks
Fail to Plan - Plan to Fail: What can go wrong?
22 thanks
Losing faith...
21 thanks
Where do you get your financial news & investment ideas?
18 thanks
Holding futures overnight
17 thanks
(login for full post details)
  #12 (permalink)
kansas city
Experience: Advanced
Platform: ninjatrader
Broker: IQFeed, Ninja, Own C# with API to Trade King and IB
Trading: stocks
otterway's Avatar
Posts: 39 since Jul 2011
Thanks: 22 given, 25 received

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!

Follow me on Twitter Started this thread Reply With Quote
(login for full post details)
  #13 (permalink)
@ Germany
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: FDAX
Posts: 525 since Nov 2011
Thanks: 387 given, 465 received

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

futures io Trading Community Platforms and Indicators > Ninja Trader / IB TWS Communications Drop

Last Updated on November 30, 2012

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
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