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

Indicator with added data series on Dom.

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

    Indicator with added data series on Dom.

    If indicators applied to the Dom cannot have added data series their should be just a warning when applying the indicator rather than a Crash and Burn, further it should not allow the indicator to be applied.

    Take a simple indicator like SMA add to its configure an addDataSeries() command.
    Apply it to a Dom and watch the fireworks.

    Jerry

    #2
    Hello Jerry,

    I have tested for this behavior but I am not able to reproduce.

    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


    May I confirm I have taken the correct steps to test?

    If you add the test script attached to the SuperDOM are you able to produce an error?

    Can you provide a video demonstrating the test script I have provided you is able to produce an error and that you are using the latest version of NinjaTrader (8.0.7.1)?

    Screen capture and recording software for Windows and Mac. Quickly get images and videos. Start your free trial today!
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I will create it again after the market closes. I do not want to crash right now.

      Comment


        #4
        Only One line added to SMA ( Adddataseries )
        saved as SMAmodified.

        Comment


          #5
          Hello JerryWar,

          The error indicates that you cannot use that plot name.

          May I confirm you were able to reproduce using the script I have provided using the steps in the video I have provided?
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            The first error you saw was from a previous test script that was since deleted.
            The next error was due to adding the SMA with one Command added.
            I did not try your script because it does not use all the conditions I have since duplicated
            3 times to produce the error.
            Take an SMA add the one command and nothing else and insert into onto dom with the setup
            shown in the video.

            Comment


              #7
              So I tried this on a Blank workspace with just a dom and I don't get the error.
              So there is some kind of interference going on with my charts and other indicators.
              Interesting that applying this to the Dom Forces this error. For the most part All the errors I have
              had issues with in NT8 deal with added Data Series this is just another flavor.

              Comment


                #8
                Hello Jerry,

                I have taken the steps you have shown. I was not able to reproduce.
                Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


                May I confirm I have taken the correct steps?

                The video you provided does not show the version you are using.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Chelsea,
                  I did not exclude Barsinprogress==0 as you did. When I ran the indicator on a chart It messed up the scaling as the SMA calculated out at 2x the price value because it was calculating twice. This may have messed up the Dom and caused the error because it was so far out of range. Just a guess, but once I fixed the code I no longer got the error.

                  Comment


                    #10
                    can you share the indicator?

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by The_Sec, Yesterday, 03:53 PM
                    1 response
                    12 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by mmenigma, Yesterday, 03:25 PM
                    1 response
                    11 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by kujista, Today, 05:44 AM
                    0 responses
                    7 views
                    0 likes
                    Last Post kujista
                    by kujista
                     
                    Started by ZenCortexCLICK, Today, 04:58 AM
                    0 responses
                    9 views
                    0 likes
                    Last Post ZenCortexCLICK  
                    Started by sidlercom80, 10-28-2023, 08:49 AM
                    172 responses
                    2,282 views
                    0 likes
                    Last Post sidlercom80  
                    Working...
                    X