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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        149 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        84 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        129 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        125 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        102 views
        0 likes
        Last Post CarlTrading  
        Working...
        X