Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Adding Multi-Series Indicator to the Market Analayzer Hangs Playback

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

    Adding Multi-Series Indicator to the Market Analayzer Hangs Playback

    Adding an indicator that calls AddDataSeries to the Market Analyzer hang playback. The playback window pops up, and NinjaTrader shows it as connected but all the controls in the Playback are greyed out, including the playback button.

    If you start in an empty workspace, and then switch to a workspace with the market analyzer it seems to work. The workspace with the indicator in the Market Analyzer must be closed before attempting to do so.

    Task Manager reports no significant CPU or Disk activity while it sits there. No amount of time makes it eventually enable.

    I tested this with a clean version of NinjaTrader, using the latest release. The only custom code is a very simple indicator with AddDataSeries calls. See the attached code.

    Playback was tested using "Historical" mode.

    Attached Files

    #2
    Hello ntbone,

    Likely, historical data is being loaded.

    If you set 'Load data base on' to bars and set the bars to load to 1, do you see the same delay?

    Do you see the same delay when connecting to the playback and starting playback with no script enabled?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      As I said in my original post, if I load an empty workspace first and then switch to the workspace with the simple multi-series script the playback controls work enable instantly and it doesn't take any time to load the workspace with the multi-series script.

      If I comment out the code for AddDataSeries it also loads the workspace right away.

      If it was loading data, then I would expect it to take a long time when switching workspaces, I would also expect CPU usage to be high while switching to Playback connection and I would expect that the controls would become enabled in a reasonable amount of time. I have left it sitting there for many minutes and the controls never become enabled. It appears as if something is blocking preventing the UI from becoming enabled.

      Reproduction steps
      1. Install fresh copy of NinjaTrader
      2. Install the attached script above
      3. Download 2 months worth of APPL tick, minute and daily data.
      4. Setup a one minute chart of 5 days.
      5. Add the indicator in the attached script.
      6. Connect to playback connection.
      7. Notice that the controls appear to indefinitely stay greyed out.
      8. Exit Playback connection
      9. Create a blank workspace, close the previous one.
      10. Connect to playback.
      11. Connection is instantaneous.
      12. Switch to previously created workspace with the indicator.
      13. Workspace loads almost instantly, playback can preformed right away.

      Comment


        #4
        Hello ntbone,

        Thanks for steps. I was able to reproduce and reduce to a single added series that does not match the primary.

        I've reported to our development and am waiting for a tracking ID for this issue.

        I appreciate your patience.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you.

          Comment


            #6
            Hello ntbone,

            I've received tracking ID# NTEIGHT-14849 for this behavior.

            As new releases of NinjaTrader 8 become available, please check the release notes for this ID. Once listed, please update NinjaTrader and test to confirm the behavior is corrected.
            https://ninjatrader.com/support/help...ease_notes.htm

            Thank you for reporting this. Please let me know of any other behaviors you find that you feel are incorrect.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              This is still an issue 8.0.25.0 This is a significant roadblock to testing Indicators that use AddDataSeries.

              Comment


                #8
                Hello ntbone,

                I am not able to reproduce the behavior using 8.0.25.0.

                Below is a link to a video of the test.


                Using the exact steps in the video you are experiencing different behavior?
                Attached Files
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  The controls weren't hanging but I would hit play and the no bars were showing up on the chart despite having market data. As soon as I removed the indicator that used multiple time frames, the problem went away. I will try again. From your video it looks like everything was working as expected.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by elirion, Today, 01:36 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post elirion
                  by elirion
                   
                  Started by gentlebenthebear, Today, 01:30 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post gentlebenthebear  
                  Started by samish18, Yesterday, 08:31 AM
                  2 responses
                  9 views
                  0 likes
                  Last Post elirion
                  by elirion
                   
                  Started by Mestor, 03-10-2023, 01:50 AM
                  16 responses
                  389 views
                  0 likes
                  Last Post z.franck  
                  Started by rtwave, 04-12-2024, 09:30 AM
                  4 responses
                  34 views
                  0 likes
                  Last Post rtwave
                  by rtwave
                   
                  Working...
                  X