Ninja Trader Integration with TWS - FAQs

 

Q: Is Ninja Trader Compatible with the Trader Workstation (TWS) / IB Gateway*?
A: TWS / IB Gateway Application Program Interface (API) accommodates connection to a variety of third-party vendors, including Ninja Trader, who offer complementary order entry, charting, back-testing and analytics software programs designed to expand the functionality of TWS. Please refer to the following Ninja Trader website link for details: http://www.ninjatrader.com/ConnectionGuides/Interactive-Brokers-Connection-Guide

* IB Gateway support is available with Ninja Trader 8+
 
 
Q: Can Ninja Trader be tested with the TWS platform demo* which IBKR makes available to prospective clients?
A: Yes, but only on a limited basis as the platform demo is solely intended to demonstrate the functionality of the TWS and its API. As background, the TWS demo provides only delayed market data and does not offer the historical data necessary to populate Ninja Trader charts requiring a combination of streaming and historical data.  Once your live IBKR account is approved and funded a paper trading account may be requested, the market data subscriptions to which will accommodate full testing of the Ninja Trader application.
 
*Demo can be accessed from the login screen of TWS (No Username? Try the Demo or during the opening process of an Account.
 
 
Q: Is Ninja Trader compatible with all versions of TWS?
A: No. There is an inherent lag between the time IBKR releases a TWS update and that at which any third-party vendor can reasonably respond with a corresponding software upgrade. In the case of Ninja Trader, its application is compatible solely with the Offline TWS platform (not the automatic update) and to determine the particular version currently supported, please refer to the following Ninja Trader website link: http://www.ninjatrader.com/ConnectionGuides/Interactive-Brokers-Connection-Guide 
 
 
Q: Can the free delayed market data feed from IBKR be used with Ninja Trader?
A: No. Though delayed market data is generally available through the API, some third-party vendors does not utilize these functions. Account holders seeking to use IBKR as a data source must subscribe to a real-time data feed through the Client Portal.
 
 
Q: Is there any distinction between the rate at which Ninja Trader seeks to load chart data and that which the IBKR market data feed supports?
A: As queries which request the same historical data within a short period of time may result in excessive back end server load, IBKR imposes pacing restrictions which, if violated, will generate error codes. In certain circumstances, the pacing of data requests through IBKR may delay the loading of the data through Ninja Trader, particularly when multiple charts and or symbols are loaded simultaneously. For details regarding the limitations IBKR imposes with respect to historical data queries, please refer to the following IB API guide link: https://interactivebrokers.github.io/tws-api/historical_limitations.html
 
 
Q: Does IBKR support the market data required to populate Ninja Trader Range Bar charts?
A: Range Bar charts generally depict the movement of price for a particular instrument over a defined time period (e.g. month, day, 5-minute, 3-minute, etc.) or tick increment. At this time many software vendors has not made the necessary updates to offer the tick-data provided by Interactive Brokers. Ninja Trader Bar charts require an alternate data source to eliminate data gaps.
Please refer to the following Ninja Trader website link for a list of supported connectivity providers as well as the historical and real-time data provided by each: http://www.ninjatrader.com/support/helpGuides/nt7/index.html?historical_data.htm
 
 
Q: It is possible to use different data source vendor between TWS and Ninja Trader interface?
A: Yes. It should be noted that Ninja Trader does not operate as a vendor of market data and use of this application requires provision of data by a third-party connectivity provider. While IBKR can serve as this provider for real time prices, these prices are not provided on an unfiltered tick-by-tick basis, a prerequisite for fully populating Ninja Trader charts.  A common setup therefore, is to use Ninja Trader as a front-end order entry platform, routing orders to the TWS for execution and clearing by IBKR and bridge to a third-party vendor for market data.
  
 
Q: Is Ninja Trader compatible with IBKR’s paper trading (simulation) account?
A: Yes Ninja Trader connects to the paper trading account in the same manner as to the live account. To familiarize oneself with the configuration and operation of these applications, IBKR strongly recommends conducting test trades through the paper trading account prior to submitting orders through the live account.
 
 
Q: How can orders submitted through Ninja Trader for execution through TWS monitored with TWS?
A: Classic TWS contains a quote monitor page denoted by a tab marked “API” within the main window through which open orders submitted via Ninja Trader or any third party software application may be monitored. 
  
 
Q:  Is Ninja Trader compatible with IBKR’s Financial Advisor and Friends & Family account type?
A:  Yes, although not with the full order allocation functionality provided directly through the TWS. While Ninja Trader can be used to submit orders for a client sub-account through the Advisor master account, it does not allow for a single order to be allocated to more than one sub-account: http://www.ninjatrader.com/support/helpGuides/nt7/account_groups.htm. This is in contrast to the TWS user interface which provides for multi-client trade allocations from a single order (through the Account Group or Allocation Profile options).
 
 
Q: How does one determine the cause of orders which have been submitted via Ninja Trader and subsequently canceled or rejected?
A: An order which has been canceled or rejected will be accompanied by an error message generated by Ninja Trader and/or TWS depending upon the source of the action. Order cancellations/rejections may be attributable to a variety of factors including IBKR credit policies, exchange restrictions or an invalid user request. In situations where the error message is not self explanatory, the user will need to contact the technical support teams of IBKR and Ninja Trader to diagnose and troubleshoot the problem.