Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotted DataSeries N/A

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

    Plotted DataSeries N/A

    Hi

    Newbie question....
    I have a compiled indicator having 2 plotted dataseries for the chart.
    When I look at their contents in the databox there is always a N/A for one of the 2 plotted dataseries. The indicator is plotting colors using the dataseries.

    When I Print the contents to the output window for both plotted dataseries there are values in both, even though one has an N/A value in the databox. I would like to distinguish which one has the N/A programmatically.

    Is it possible to distinguish which one has the N/A and which one has the real value?
    Could someone explain what is happening?

    Thank you in advance.

    Regards

    Sammy

    #2
    Hello Sammy,

    Thank you for your post.

    I would need to take a look at the code to understand what is occurring. You can check for valid values from a data series by using ContainsValue(): http://www.ninjatrader.com/support/h...ries_class.htm

    Comment


      #3
      Thank you Patrick for your quick response.

      The DataSeries.ContainsValue(int barsAgo) will work if I have an open source indicator and I am checking the values of the internal dataseries...

      In my case, I am working on a compiled indicator. I cannot refer to the dataseries as DataSeries.ContainsValue(int barsAgo)
      When I use IndicatorName().UpSeries[0].ContainValues(0) I get a syntax error.

      Is there a work around to confirm whether the value of the dataseries is N/A,as shown in the DataBox, when the dataseries is being referenced from a compiled indicator?

      Thank you kindly

      Sammy

      Comment


        #4
        Actually after a whole bunch of fidgeting I managed to get it to work.
        Syntax is a follows:

        IndicatorName().UpSeries.ContainValues(0)

        Thank you for your help!

        Regards

        Sammy

        Comment

        Latest Posts

        Collapse

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