Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exposing List Values in Market Analyzer

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

    Exposing List Values in Market Analyzer

    Howdy--

    I built an indicator that uses Lists to track certain information.

    What are some ideas on how I can expose these List values for use in Market Analyzer?

    Thanks,

    Aventeren

    #2
    Hello aventeren,

    Thank you for your post.

    As the Market Analyzer will display plots, can you advise what was needed from a list that could not be stored in a DataSeries for the Plots?

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello aventeren,

      Thank you for your post.

      As the Market Analyzer will display plots, can you advise what was needed from a list that could not be stored in a DataSeries for the Plots?
      The current indicator architecture holds values in a list that incrementally increases when a new signal is hit, therefore the size of the list is vastly smaller than a DataSeries, which would have a value (for instance -1, 0 or 1 for each bar) for each bar (as opposed to -1 or 1 for each list value). Plus, I needed to make decisions based on the list values relationship to one another...not bar by bar decisions. I could change this, but it would take some thinking on how to convert the list values to DataSeries values, which is doable, but will take me some time.

      I figured if there was a way to expose List values, then I wouldn't have to go through the work of relating the list values to each and every bar (which is unnecessary for my purposes).

      Thoughts?

      Comment


        #4
        Hello aventeren,

        Thank you for your response.

        You could just assign the value from the list to the Plot when needed, but I could not say for certain as I do not when you need the value of from the List or what value is being requested at what time. However, you should not need to re-work the code from List to DataSeries - just assign the value form the List to the Plot when needed.

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello aventeren,

          Thank you for your response.

          You could just assign the value from the list to the Plot when needed, but I could not say for certain as I do not when you need the value of from the List or what value is being requested at what time. However, you should not need to re-work the code from List to DataSeries - just assign the value form the List to the Plot when needed.
          If I were to convert my indicator to a Strategy, will the presence of Plots allow the Strategy to run? For some reason I'm thinking that Plots and Strategies don't work together?

          In this case, should I instead be exposing the List values via a DataSeries (which I could always assign to a Plot if I wanted to down the line)?

          Comment


            #6
            Hello aventeren,

            That would work, but keep in mind the strategies can't plot without using the work around found at the link below and also the strategies cannot be applied to Market Analyzers.

            Comment

            Latest Posts

            Collapse

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