NexusFi: Find Your Edge


Home Menu

 





Ninja Trader / IB TWS Communications Drop


Discussion in Platforms and Indicators

Updated
      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 10,721 views
    2. thumb_up 16 thanks given
    3. group 5 followers
    1. forum 12 posts
    2. attach_file 0 attachments




 
Search this Thread

Ninja Trader / IB TWS Communications Drop

  #11 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103

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
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
77 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
38 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #12 (permalink)
 
otterway's Avatar
 otterway 
kansas city
 
Experience: Advanced
Platform: ninjatrader
Broker: IQFeed, Ninja, Own C# with API to Trade King and IB
Trading: stocks
Posts: 39 since Jul 2011
Thanks Given: 22
Thanks Received: 25

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
  #13 (permalink)
 Koepisch 
@ Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: FDAX
Posts: 569 since Nov 2011
Thanks Given: 440
Thanks Received: 518


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




Last Updated on November 30, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, 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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts