Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connecting MultiSeriesChart

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

    Connecting MultiSeriesChart

    NT 7.0.0.13

    Take one Multi DataSeries chart (ES, TF, DX), one Single DataSeries chart and connect both to DOM. Toggling instruments will sometimes

    - produce the correct result (first instrument of MultiDataSeries changed)
    - produce false results (two or all instruments for MultiDataSeries changed to the same instrument)
    - produce a crash (see below, single DataSeries chart had a pivots indicator)

    0-04-08 23:19:20:578 in OnUnhandledApplicationException
    2010-04-08 23:19:20:625 ********* exception trapped *********
    2010-04-08 23:19:20:625 Das Element wurde bereits hinzugefügt. Schlüssel im Wörterbuch: "1". Hinzuzufügender Schlüssel: "1".
    2010-04-08 23:19:20:625 System.ArgumentException: Das Element wurde bereits hinzugefügt. Schlüssel im Wörterbuch: "1". Hinzuzufügender Schlüssel: "1".
    bei System.Windows.Forms.Control.MarshaledInvoke(Contr ol caller, Delegate method, Object[] args, Boolean synchronous)
    bei System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
    bei NinjaTrader.Cbi.SynchronizeInvoke.Invoke(Delegate method, Object[] args)
    bei NinjaTrader.Gui.Chart.ChartControl.AddBarsInWorker ThreadBarsData(Object state)
    bei System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
    bei System.Threading.ExecutionContext.runTryCode(Objec t userData)
    bei System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    bei System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state)
    bei System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    bei System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
    bei System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object state)

    #2
    1. Where are you toggling the instruments from? The DOM? Or which chart?

    2. Can you please translate the traces you have copy pasted. Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      1. Toggling via DOM (I have the habit of using the DOM, because I also can use arrows, if I want to look through several charts)

      2. exception trapped ...
      The element has already been added. Key in dictionary: "1". Key to be added: "1".
      Last edited by Harry; 04-08-2010, 03:53 PM.

      Comment


        #4
        Hi Harry,

        1.) What intervals are being used on the multi-series chart?

        2.) Which instrument and interval is used on the single series chart?
        KyleNinjaTrader Customer Service

        Comment


          #5
          Example

          First test:

          All intervals used are 5 minutes / 65 days / not connected. The setup is the first screenshot below. Single chart is set to YM, multiseries chart is YM/TF/DX. Both charts are connected to the DOM.

          Toggling from YM to ES via DOM results in the second screenshot. DOM shows ES, single chart shows ES and multiseries chart shows ES/ES/DX -> TF disappeared for no reason.
          Attached Files

          Comment


            #6
            Hi Harry,

            Hi Harry,

            Thank you for the clarification.

            This can be expected. Changing the instrument used in a linked window will cause the primary data series in the multi-series chart to change.
            KyleNinjaTrader Customer Service

            Comment


              #7
              Kyle, please read what I wrote and have a look at the charts again:

              The primary and the secondary series were changed.

              Sometimes the primary, the secondary and the tertiary series are changed.

              This is not funny, but annoying -> NT is completely unpredictable.

              Comment


                #8
                Could reproduce crashes

                (1) Setup a 3 dataseries chart.

                (2) Apply a 3 dataseries chart template (see chart one below).

                (3) Change secondary and tertiary instrument via DataSeries (delete two isntruments and add two new ones)

                (4) Chart is now already corrupted, because template is only applied to first data series (see chart two below)

                (5) When loading template again, crash. NT shuts down causing an exception.
                Attached Files
                Last edited by Harry; 04-08-2010, 04:47 PM.

                Comment


                  #9
                  Hi Harry,

                  Thank you for the clarification.

                  Can you think of any differences in the steps being taken between the times only the primary series is changed and the times where multiple series are changed?
                  KyleNinjaTrader Customer Service

                  Comment


                    #10
                    When I first tried this, I had several charts open and my templates applied with a lot of indicators. This caused three data series to change.

                    Then I simplified the workspace, and the only charts open were those that you can see on the screenshot. Also I did not use any indicators, but just naked price. This reproduced the problem, but only causing the second data series to change.

                    I will try to get the three dataseries to change all at once.


                    Originally posted by NinjaTrader_Kyle View Post
                    Hi Harry,

                    Thank you for the clarification.

                    Can you think of any differences in the steps being taken between the times only the primary series is changed and the times where multiple series are changed?

                    Comment


                      #11
                      One example here:

                      Setup: DOM ES, single series chart ES, multiseries chart ES/TF/DX.

                      Toggling DOM to TF -> single series chart TF, multiseries chart TF/TF/TF.

                      Comment


                        #12
                        Hello Harry,

                        I have tested this on my end however I was uanble to reproduce. When toggling between instruments within the SuperDOM only the master instrument changes within the chart.

                        Can you please tell me what version of NinjaTrader 7 you have installed at this time. You can check your version under Help-->About.
                        Christopher J.NinjaTrader Customer Service

                        Comment


                          #13
                          Version is 7.0.0.13

                          Originally posted by NinjaTrader_ChristopherJ View Post
                          Hello Harry,

                          I have tested this on my end however I was uanble to reproduce. When toggling between instruments within the SuperDOM only the master instrument changes within the chart.

                          Can you please tell me what version of NinjaTrader 7 you have installed at this time. You can check your version under Help-->About.

                          Comment


                            #14
                            Harry,

                            There have been changes to the linking behavior after B13 which would impact this behavior. Currently I am unable to reproduce on latest sources and neither could development so we believe you should see better behavior in B14.

                            Please note that the issue with all 3 instruments changing we were unable to reproduce in B13 or B14. We could manage the 2 out of 3 series being changed on in B13, not in B14 sources though.

                            For the Key 1 crash, development has put out a fix which is under review right now which should positively impact this as well.

                            For your post #8, development has stated that this is expected. Bar series color settings are saved in Bar series properties and not in the template. When you try this with indicators (which are stored in templates) it should work.

                            Please also note that switching instrument on DOM to an instrument that already exists on the chart means the primary series on the chart will not change and be ignored. So let's say you have ES and NQ. If you switch to NQ on the DOM, it will not change the ES to an NQ as well because NQ is already on there.

                            Thanks for the report.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              Originally posted by NinjaTrader_Josh View Post
                              Harry,

                              For your post #8, development has stated that this is expected. Bar series color settings are saved in Bar series properties and not in the template. When you try this with indicators (which are stored in templates) it should work.
                              Thanks for your answer, Josh. #8 relates to the crash.

                              I understand: If I delete 2 DataSeries (out of 3) and then add 2 new DataSeries to the chart, the new DataSeries will not use the chart template, but will show up "naked" with the default colors.

                              Problem was: Whenever I applied a (3 data series) chart template after replacing two DataSeries, NT crashed.

                              In this respect there is an inconsistency:

                              (1) Putting up a new chart with 3 data series, then apply template -> works
                              (2) Replacing some of the secondary data series, then apply same template -> NT crash

                              I think this is not expected.

                              Comment

                              Latest Posts

                              Collapse

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