Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Returning another data series

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

    Returning another data series

    Hey guys question, I have an indicator that returns an array data series of values, like:

    public DataSeries DivInd
    {
    get { return Values[0]; }
    }

    This code is under the properties section, what is the best way to add another data series that I could refer to in a strategy besides the initial one? i would like to assign the values to the array in the indicator, and then be able to refer to those values in a strategy, like IndicatorName().DataSeriesName[0], IndicatorName().DataSeriesName[1], etc.

    #2
    Hello,

    We have a reference samples which will show you how to expose any indicator value you wish. You can do this for DataSeries, Init, Strings, etc:



    Please let me know if you need further assistance.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    169 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    327 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    252 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    353 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    180 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X