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



Ninja Trader / IB TWS Communications Drop


Discussion in Platforms and Indicators

Updated by Koepisch
      Top Posters
    1. looks_one otterway with 5 posts (1 thanks)
    2. looks_two sam028 with 2 posts (6 thanks)
    3. looks_3 Fat Tails with 2 posts (5 thanks)
    4. looks_4 Big Mike with 2 posts (3 thanks)
      Best Posters
    1. looks_one sam028 with 3.0 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.0 thanks per post
    1. trending_up 8,685 views
    2. thumb_up 16 thanks given
    3. group 5 followers
    1. forum 12 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,840 since Mar 2010
Thanks: 4,238 given, 26,585 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
 
Code
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?
Horizontal Line Indicator
Platforms and Indicators
How to place NT8 indicator output into a grid, under each bar?
NinjaTrader
IB Bracker Order
Platforms and Indicators
OPEN_CLOSE_DOTS
ThinkOrSwim
Where is the link to download GomiRecorder?
NinjaTrader
 
 
(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, 24 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 Reply With Quote
 
(login for full post details)
  #13 (permalink)
@ Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: FDAX
 
Posts: 493 since Nov 2011
Thanks: 355 given, 413 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


November 30, 2012


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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