Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems with Interactive Brokers connection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_PatrickH
    replied
    Hello maaz1598,

    Thank you for your patience.

    If you have not resolved this matter please let us know at platformsupport[at]ninjatrader[dot]com.

    Leave a comment:


  • maaz1598
    replied
    connection lost

    Originally posted by NinjaTrader_ChristopherJ View Post
    Hello,

    Thank you for your post.

    Do you currently only have Mosaic open? If so can you please go to New Window-->Advanced Order Managerment (TWS) and let me know if you can then connect.
    hi Christopher
    having some issues with my TWS connection to NT8, connection keeps dropping out randomly, disabling my live strategies.
    i am using
    TWS Build 961.1a,
    NT8 : 8.0.0.14 (Standard) - Release Candidate 2
    is there a fix for this

    Leave a comment:


  • NinjaTrader_ChristopherJ
    replied
    Our development team is aware of the issue however it is too early for us to know what has been addressed. We will have more information regarding this once we are closer to a beta release of the next major release of NinjaTrader.

    Thanks again everyone for your patience.

    Leave a comment:


  • ToddPMan
    replied
    Ok. Thank you. I'll give this a shot, although, that's probably a lot more overhead on the old PC....

    So is this issue something that NT is working to fix? Has this been addressed in the next version?

    Thanks.

    Leave a comment:


  • NinjaTrader_ChristopherJ
    replied
    First manually start TWS from the desktop for each account and login

    When TWS 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, etc. so each account has a unique port value.

    Next in NinjaTrader create a new connection for each new account matching the port with what you specify in TWS for each account connection.

    I have provided a link below to the Interactive connection guide:



    Next connect in NT using File > Connect, you will do this each account connection.

    Also each time you want to connect please open TWS first for each account then connect within NinjaTrader.

    Leave a comment:


  • ToddPMan
    replied
    Originally posted by NinjaTrader_ChristopherJ View Post
    In order for this work around to work each account would need to have separate login credentials.

    Currently does each account have separate login information?
    Yes, I have account logins for all the sub-accounts.

    Leave a comment:


  • NinjaTrader_ChristopherJ
    replied
    In order for this work around to work each account would need to have separate login credentials.

    Currently does each account have separate login information?

    Leave a comment:


  • ToddPMan
    replied
    Originally posted by NinjaTrader_ChristopherJ View Post
    Currently when trading multiple accounts within the same IB connection, accounts are updated one by one as provided thru the IB API.


    The only work around available at this time is to have your accounts setup by IB to have seperate login credentials for each account then create seperate connections for each within NinjaTrader.

    If you decide to make this change please let me know and I would be happy to provide the specific steps to get both connections configured.
    Christopher,

    Since this is a significant problem. I would like to try the workaround. Please provide the additional details you speak about. I have an Adviser Master account with IB, which has 5 trading accounts within it... I need to be able to trade all 5 accounts from NinjaTrader at the same time.

    Thanks,

    -Todd

    Leave a comment:


  • sburtt
    replied
    Originally posted by ToddPMan View Post
    I'm having this same issue and frankly it really makes NT very risky and borderline unusable with IB. I have an Advisor Master account with IB with 5 accounts. Anytime I'm trading in more than one account, I can no longer trust anything that chart trader shows in terms of actual open positions. The only way to "clean" it up is to disconnect and reconnect and then switch back all my charts from SIM to there appropriate account number... by the time you get that done markets move and you miss entries/exits. Even worse, walking away and coming back and seeing chart trader, thinking one thing, but in reality another has happened and then trading off the wrong assumption... I've lost money because of this fatal flaw!! Now, of course, I double check everything with TWS. I used to do that anyway from time to time, but now I have to do it ALL the time.

    I really do hope something can be done to fix this problem.
    yes it's really an issue NT needs to address sooner rather than later..It makes it very difficult to keep track of position, especially if you disconnect once a week as I do

    Leave a comment:


  • ToddPMan
    replied
    I'm having this same issue and frankly it really makes NT very risky and borderline unusable with IB. I have an Advisor Master account with IB with 5 accounts. Anytime I'm trading in more than one account, I can no longer trust anything that chart trader shows in terms of actual open positions. The only way to "clean" it up is to disconnect and reconnect and then switch back all my charts from SIM to there appropriate account number... by the time you get that done markets move and you miss entries/exits. Even worse, walking away and coming back and seeing chart trader, thinking one thing, but in reality another has happened and then trading off the wrong assumption... I've lost money because of this fatal flaw!! Now, of course, I double check everything with TWS. I used to do that anyway from time to time, but now I have to do it ALL the time.

    I really do hope something can be done to fix this problem.

    Originally posted by NinjaTrader_ChristopherJ View Post
    All executions sent to IB will be real time therefore your account in TWS will show Flat however the callback from IB to NinjaTrader is updated in the 'round robin' approach at different intervals determined by the TWS API.

    Currently with this configuration the only way to force an update to all accounts being used is to disconnect then reconnect once again.

    Leave a comment:


  • NinjaTrader_ChristopherJ
    replied
    All executions sent to IB will be real time therefore your account in TWS will show Flat however the callback from IB to NinjaTrader is updated in the 'round robin' approach at different intervals determined by the TWS API.

    Currently with this configuration the only way to force an update to all accounts being used is to disconnect then reconnect once again.

    Leave a comment:


  • sburtt
    replied
    Originally posted by NinjaTrader_ChristopherJ View Post
    Currently when trading multiple accounts within the same IB connection, accounts are updated one by one as provided thru the IB API.


    The only work around available at this time is to have your accounts setup by IB to have seperate login credentials for each account then create seperate connections for each within NinjaTrader.

    If you decide to make this change please let me know and I would be happy to provide the specific steps to get both connections configured.
    Chris, I hear you. But this issue here is different. For example, assume I have 2 accounts (account A and account B) and a single login. Lets say I am long 100,000 EURJPY on account A and short 50,000 USDSEK on account B. Now assume I flatten all positions via NT7. NT7 will effectively flatten all position, however in the position tab I will still be visualising the positions as if I was still running risk. This is an issue and could be misleading. Have you ever heared of somebody having the same problem? If i shut down ans restart NT7 the positions are correctly visualized as flat.

    Leave a comment:


  • NinjaTrader_ChristopherJ
    replied
    Currently when trading multiple accounts within the same IB connection, accounts are updated one by one as provided thru the IB API.


    The only work around available at this time is to have your accounts setup by IB to have seperate login credentials for each account then create seperate connections for each within NinjaTrader.

    If you decide to make this change please let me know and I would be happy to provide the specific steps to get both connections configured.

    Leave a comment:


  • sburtt
    replied
    Originally posted by NinjaTrader_ChristopherJ View Post
    You're welcome and glad to hear that did the trick.
    Chris,

    I also notice one other issue, that is currently persisting despite I've updated both NT7 and IB TWS. Often (not always) when I close a position, hence I am flat, on the position tab in NT7 I still see the position open and relative p&l. However if I double check in IB I am actually flat. I am aware of the issue, hence don't really bother looking at the position in NT7, however it can be misleading for others and myself if I am distracted. This only started happening after I have set-up a second account number with Interactive Brokers.

    Just to give you an example, assume I have a long position of 50,000 EUR.JPY @ 130.10, assume I sell 50,000 EURJPY at market, I would still be seeing the live position in the position tab in NT7. However if I sell 100,000 EURJPY, I would now see a short postion of 50,000 EURJPY at new market rate. Basically the bug persists only when I flatten a position, not if I add or reduce to an existing position.

    Any idea how I can sort this issue out? Thanks

    Leave a comment:


  • NinjaTrader_ChristopherJ
    replied
    You're welcome and glad to hear that did the trick.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by forgebench, Today, 02:22 PM
2 responses
9 views
0 likes
Last Post forgebench  
Started by MamaKB, 02-14-2025, 03:38 PM
10 responses
84 views
0 likes
Last Post Fertryd2  
Started by Irukandji, Today, 03:46 PM
0 responses
5 views
0 likes
Last Post Irukandji  
Started by ybforex, 03-11-2025, 05:30 PM
10 responses
98 views
0 likes
Last Post rockmanx00  
Started by HappyTrader76, Yesterday, 04:14 PM
8 responses
48 views
0 likes
Last Post HappyTrader76  
Working...
X