Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiaccount problem in chartrader

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

    Multiaccount problem in chartrader

    Hello,

    I have a chartwindow with charttrader open.
    This window is linked to a marketanalyzer window. So by changing the selection in the marketanalyzer I change the underlying instrument of the chart with charttrader.

    In the account I have a position open (see picture, FDAX long)

    When I change the displayed instrument to 6E I get wrong information in the PnL and entry price boxes of charttrader.
    See picture bug1.jpg.

    Looking at the 6E contract I get a position of 2 with entry 5497 and a corresponding PnL of -5495.

    Offcourse this is wrong and it seems that as a basis for the 6E entryprice and PnL the data from my FDAX postion are used.


    This effect is repeatable and it happens when the account used does NOT have marketdata support. (I use several accounts and marketdata is taken just from one account)

    Regards
    Attached Files

    #2
    Let's not get confused:
    - NT subscribes to market data per connection and not per account. Not sure what you mean by "an account would not have market data"
    - NT only could display realtime data and calculate unrealized PnL if there was market data available. If there is no market data available, then NT would be unable to calculate anything and probably "old" values might be displayed

    On the light of the above:
    - what EXACTLY is your setup (which and how many connections are you connected to)?
    - do you feel there still is an issue based on info above?

    Comment


      #3
      Dierk,

      the issue is there, definetely. Unfortunately I do need real positions to show the error, currently flat.

      The PnL and Entry boxes in chartrader are populated even for an account with no marketdata connection as long as the primary connection has marketdata.
      So even for the secondary account I will usually see the PnL and Entry boxes in charttrader.

      The problem is there when you change instrument ( if only via marketanaylerI don't know yet)

      Comment


        #4
        Sorry, not sure what you mean by "secondary account". Again, market data is subscribed on connections and not accounts.

        Here is what I needed to know:
        - which connections are you connected to?
        - what are the EXACT steps to reproduce the problem?

        You need to be SPECIFIC if you wanted us to look into that issue.

        Comment


          #5
          wait,

          as soon as I have open positions again I can tell.

          Connections are: IB 1 and IB 2

          IB 1 is with realtime marketdata. IB 2 without.

          Opening positions on the IB 2 account.

          Comment


            #6
            OK,

            I found out more:

            The problem can be overcome if you reselect an other account in the charttrader account selection box and then select again the original acount.



            In the Charttrader you have something like:

            On_Account_SelectionLB_SelectionChanged(){
            initialize code...

            }



            when you change the instrument of the chart with chartrader via a linked window to marketanalyzer then this function is not called, but it should be called.

            Comment


              #7
              FDAX and 6E both are futures. You needed to have valid market data subscriptions for both on your first IB connection. If you don't have any market data subscription for the 6E on your first IB connection then you will not get any data fir the 6E: NT will NOT go to the 2nd IB connection.

              Comment


                #8
                subscription is active for all kinds of data on the primary connection IB1.


                see my previuous post

                Comment


                  #9
                  Please try this:
                  - ONLY connect to IB1
                  - select FDAX in the control center orders grid -> you should see data streaming in the min grid (left upper corner)
                  - now select 6E in the control center orders gird -> do you see data streaming for that as well?

                  Comment


                    #10
                    Currently I cannot disconnecy, but


                    I have market data for all instruments in question both in the order tab mini grid and also the charttrader bid and ask is updated.

                    Problem is only the Entry price and PnL control of charttrader.


                    (Attached same problem for FGBL)

                    On the attached jpg: To fix the problem: change the selected account and later reselect the original one.
                    Attached Files

                    Comment


                      #11
                      I'm still waiting for an exact step by step scenario on what you did.

                      Here is what "I think" you did:
                      - you are connected to IB1 (having Account 1) and IB2 (having Account2)
                      - in Account1 you're having a position on FDAX
                      - in Account2 you're having a position on 6E
                      - in chart/chart trader you have selected FDAX and Account1-> you would see the FDAX on chart in the PnL is displayed as well
                      - now you toggle from FDAX to 6E. Chart trader still is Account1-> now you should not see any 6E position on chart nor a PnL display

                      Is that correct? If so, then where would you see a problem?

                      Again, please be as SPECIFIC as possible based on scenario I provided above.

                      Thanks

                      Comment


                        #12
                        so I have:

                        Account 1
                        Account 2


                        Only 1 Position in account 2, In todays case a FDAX 2 @5607 on account 2.


                        MarketAnalyzer window is linked to the chart with charttrader window.
                        Marketanalyzer contains 5 instruments.

                        Now scroll though the marketanalyzer positions. You will see that the chart with Chartrader will update its current instrument. This because I linked the two windows.

                        Select FDAX in marketanlayzer.

                        --> ERROR There will be no position in the Entry and PnL controls.


                        Select another instrument from marketanalyzer for example FGBL)

                        --> ERROR : A non existing position of 2 with entry 5407 is shown.
                        Bid and ask is coming in for FGBL
                        Last edited by zweistein; 11-09-2009, 10:06 AM.

                        Comment


                          #13
                          Let's not confuse the scenarios. That will NOT help us making any progress.

                          Please let me know on my EXACT scenario on my prior post, where NT would behave differently. Please make corrections as necessary if it would not your scenario on your post #1. Thanks

                          Comment


                            #14
                            if still unclear...?


                            I took a video from the sequence with my mobile phone (Nokia).
                            and I commented my steps.

                            If needed I can send it to you, but I would need an email address


                            regards

                            Comment


                              #15
                              Could you pleas provide requested info as per my posts #13 and #11. Thanks

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              600 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              347 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              558 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              558 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X