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