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