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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        181 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        334 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        258 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        358 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        187 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X