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