Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exposing arraylist values

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

    Exposing arraylist values

    I created an indicator with arraylists being dynamically added:
    al[i] (where i=[0,…,n])

    I need to access arraylists values from the strategy.

    Is it possible to expose arraylist values to another strategy or indicator so I could access from the strategy a value from let’s say third [i+1] arraylist on third position and not from 3 bars ago as it would happen if I would use DataSeries object (in the original indicator I use: al[2][2] to get the value).
    If so, how can I accomplish it?

    #2
    Hi gregid,

    Unfortunately, I can not offer support for that type of procedure.

    However, the following sample details how to expose values that are not plots.
    TimNinjaTrader Customer Service

    Comment


      #3
      Thanks Tim for trying, unfortunately the reference sample doesn't help me with what I need to accomplish.

      I recall that dynamically added DataSeries values can be accessed using myIndicator.Values[2][0]

      Does anyone have any suggestion on how to do similar thing with arraylist values (which need to be independent from number of bars)?

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      579 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 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
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X