NexusFi: Find Your Edge


Home Menu

 





NinjaTrader + Interactive Brokers (multiple accounts)


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one dtrade88 with 3 posts (0 thanks)
    2. looks_two NinjaTrader with 2 posts (0 thanks)
    3. looks_3 dekelly with 2 posts (5 thanks)
    4. looks_4 monpere with 1 posts (0 thanks)
    1. trending_up 13,154 views
    2. thumb_up 5 thanks given
    3. group 9 followers
    1. forum 12 posts
    2. attach_file 1 attachments




 
Search this Thread

NinjaTrader + Interactive Brokers (multiple accounts)

  #11 (permalink)
 dekelly 
Tokyo, Japan
 
Experience: Intermediate
Platform: Ninja Trader with IB TWS
Trading: Forex, NQ, CL, GC, ES, 6E, Stocks
Posts: 3 since Aug 2012
Thanks Given: 0
Thanks Received: 7

I have an Advisor (Corporate account) with IB. That is only account type that allows a Master account, and ability to make sub accounts with unique account numbers. If you want to trade the same instrument on different timeframes at the same time, you need to select DIFFERENT trading accounts to do that. You will be subject to "Professional" status and higher fees for CME exchanges under the recent changes because you have an IB Advisor account. As far as NT set up and corresponding set up on IB's Trader Workstation (TWS) platform, you do have to specify unique port number values for the API on TWS and when you set up the accounts in NT.

I get live data through Kinetick. When I complained about Kinetick's unilateral classification of my account as "Professional" for CME exchange fees, they sent me a form, and based on that, re-classified my status to Non-Pro and refunded the money ($3/month instead of $180/month for Comex, Nymex, Globex, Cbot). So I connect NT to Kinetick first, start up separate instances of TWS for each account ID, then connect to those from Ninja Trader. Version of NT I am running is 64 bit 7.0.1000.21. TWS version is Build 946.2m Aug 21, 2014.

Here is the explanation I go from NT Customer Service back in 2012, and an attached photo of the TWS settings for the API in Configuration.

====================

Thank you for your note.

There is no inbound telephone number for support, however if you would like a support call at any time you will only need to request one and we will be happy to schedule a support call with you.



2. UNIQUE ACCOUNT NAMES

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.
Note: The Client ID can remain at default setting. Only port needs changing in our testing.
If you would like to schedule a support call to discuss the items above I will need a few things from you before our call.
A phone number where you can be reached
A time window where I can call you (please include a time zone)
Launch our remote support application from the following link, NinjaTrader Remote Support. Once launched, the application will provide you with an ID# and password. I will need these from you once I have you on the phone.
Please let me know if I may be of further assistance.

Sincerely,
Patrick


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Futures True Range Report
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
 
Minds's Avatar
 Minds 
PERU/CALLAO
 
Experience: Advanced
Platform: Various
Broker: Various - (MC, CQG, IQFeed, IB)
Trading: US Futures and Equities, US Options, ETFs, Commodities, EUR/USD
Posts: 82 since May 2013
Thanks Given: 56
Thanks Received: 38


dtrade88 View Post
Hello,

Anyone using NT 7 with **multiple** IB accounts though IB's Advisor master account? I'm currently with another broker and have no problem routing orders to several accounts simultaneously using NT 7. Was looking to setup an Advisor account with IB so as to have simultaneous access to both IB trading accounts. When I contacted IB customer service with a question regarding the Advisor account, the customer service rep suggested that I may run into issues when submitting a long/short order simultaneously (long to one IB account, short to the second IB account) when logged in as Advisor. I'm not sure just how knowledgeable the rep was... Anyone have any experience with this type of setup? Thanks.

Did you get a way to do it? I have now the same issue. Thaks

Reply With Quote
  #13 (permalink)
 DaFish 
Kitchener, Ontario, Canada
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Interactive Brokers
Trading: Stocks
Posts: 6 since Feb 2012
Thanks Given: 2
Thanks Received: 0


I know what you want to do, because I had the same plan I believe.

I am using the IB Canada accounts:
- RRSP
- TFSA
- Margin

IB Side:
1) Setup a "Friends and Family" (F&F) Account - which is the master "advisor" Account - NOTE: I set this up as a NON PROFESSIONAL account
2) Create the RRSP under the F&F
3) Create the TFSA under the F&F
4) Create the Margin under the F&F
4a) Create a PAPER TRADING account (this mimics the setup above and gives you a F&F account structure above)
5) Setup the data subscription for the exchange data
6) Setup a SECOND account login for the IB Gateway
7) Setup a SECOND data service on this ID
8) Now you trade in IB's TWS, logging into the Master F&F account number and trade under the "advisor account to view account auto trades
9) NT8 logs in using IB Gateway ID and trades that using the F&F account

IE: If I had 100,000 in RRSP, 50,000 in TFSA and 10,000 in Margin - and I buy 1000 shares of SPY it would proportion the number of shares across EACH of the accounts proportionately.

NT8 side:
1) Setup your account connection to IB Gateway ID
2) Setup your strategy to trade using the F&F account.

All of this sounds pretty good eh? Well.... on the initial try, buy orders were going into IB and it wasn't selling all the accounts correctly... I only did a few tests with this - because it was live, and because I hadn't finished working out the gremlins on the NT Strategy.

I'll do some more tests with this as I get closer to getting it all working. The key is the second IB Gateway account, and use the IB Gateway - NOT the IB TWS to login.

NOTE: You COULD use the IB TWS instead of the IB Gateway program if you wish. I needed both because I wanted to use the PAPER account to auto trade, and live trade using my active account.

Lots to do still.

Reply With Quote




Last Updated on January 18, 2016


© 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