NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 05-09-2012, 07:17 PM   #1
Majorshi
Junior Member
 
Join Date: Jul 2011
Posts: 22
Thanks: 0
Thanked 0 times in 0 posts
Default How to deal with multi accounts with IB?

My question is:
How can I deal with multi accounts with IB? Do I have to run every seperate TWS for each account? Does NT7 support IB's master-sub accounts structure?
Majorshi is offline  
Reply With Quote
Old 05-09-2012, 09:36 PM   #2
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO, USA
Posts: 1,855
Thanks: 128
Thanked 211 times in 205 posts
Default

Hello Majorshi,

Thank you for your post.

NinjaTrader can connect to multiple different IB accounts that have separate login username and passwords at the same time. To set this up please see the instructions below. In order to do this however, the user must manually start TWS multiple times for each account first in the morning, then connect with NinjaTrader since the auto startup functionality does not work with multiple logins.
  • Manually start TWS from the desktop, if you have two accounts start it up twice with each account logged in.
  • When platform has started, Click Configure > API Settings > Socket Port > Provide a unique value. Default is 7496, leave this as is for the first username. Add 1 to this value to be 7497 on the second account so each account has a unique port value.
  • In your NinjaTrader connection for this account, match the port with what you specify in TWS for each account connection.
  • Connect in NT using File > Connect, you will do this twice for both account connections.
If you are referring to Financial Advisor accounts and their sub-accounts, then yes we do support these.

Please let me know if I may be of further assistance.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 06-27-2012, 03:49 AM   #3
gretrader
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 74
Thanks: 0
Thanked 0 times in 0 posts
Default mutli accounts or multi sub-accounts

Hi
On a twist of this topic I have some further questions:

O neIB master account, with 3 sub-accounts
Different manual strategies to be used on same market (say, DAX) at the same time: Strat 1 on account 1 (can be the Master account itself), strat 2 on sub-acc 2. They may be concurrent or not

In order to trade this from charts I would need:
a) NT to connect to a data feed (it could well be the same IB Master account)
b) NT connected to IB Master in any case for live trading
c) THIS IS WERE IT GETS CONFUSING: how can I trade strat 1 on Master/sub acc 1 and strat 2 on sub-acc 2?
1. Do I need to log into TWS 1 AND TWS 2, etc. for all accounts (they all have different login and PW) and connect them to NT, as you are suggesting here? And will I need a multibroker licence for this?
2. Do I need to connect to the Master account only and ….then what: how can I tell NT that strat 1 should go to acc 1, etc? And would I need a single or multi broker licence for this?
Thanks for your help
gretrader is offline  
Reply With Quote
Old 06-27-2012, 06:15 AM   #4
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO, USA
Posts: 1,855
Thanks: 128
Thanked 211 times in 205 posts
Default

Hello gretrader,

Thank you for your post.

As you indicated you will need to start an instance of TWS for each account. The same method detailed for Majorshi below will need to be applied to your setup here.
  1. Manually start TWS from the desktop, if you have two accounts start it up twice with each account logged in.
  2. When platform has started, Click Configure > API Settings > Socket Port > Provide a unique value. Default is 7496, leave this as is for the first username. Add 1 to this value to be 7497 on the second account so each account has a unique port value.
  3. In your NinjaTrader connection for this account, match the port with what you specify in TWS for each account connection.
  4. Connect in NT using File > Connect, you will do this twice for both account connections.
Note: The Client ID can remain at default setting only the port needs changing.

This does not require a Multi-Broker License, however to trade live with NinjaTrader you will need a Live License Key.

Within NinjaTrader you can select the Account you wish to submit a strategy to from the Account drop down menu used when enabling your strategy via your chart or the Strategies tab of the Control Center.

For information on working with strategies please visit the following link: http://www.ninjatrader.com/support/h...strategies.htm

Please let me know if I may be of further assistance.
NinjaTrader_PatrickH is offline  
Reply With Quote
Reply

Tags
multi account ib

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi accounts with Interactive Brokers zerosum666 Automated Trading 3 09-19-2011 03:10 PM
multi accounts trademan Miscellaneous Support 1 07-21-2008 07:14 AM
IB - Real money accounts vs. paper money accounts Progster Automated Trading 3 07-08-2008 07:53 AM
2 Amp Brokerage Accounts plus Spike on Multi-Trader Savage1701 Connecting 3 05-27-2008 11:38 AM
NT Multi & 2 accounts at same broker, 1 an another? Savage1701 Connecting 3 08-29-2007 10:36 AM


All times are GMT -6. The time now is 01:12 AM.