Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

List of subset of input series

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

    List of subset of input series

    Hi everyone

    Let's say I start with a chart with, say, 1,000 data points.

    Next, I'd like to make a subset of these points. Let's say, for simplicity, these are the points on the chart which are greater/less than the three either side. Let's say there are 100 of these points.

    Is it possible for NT7 to make a list of these 100 points so that, say, a moving average can be applied to them?

    Also, would it be possible to make a chart of this subset? (I guess this part would be more difficult.)

    Many thanks in advance.

    #2
    Originally posted by arbuthnot View Post
    Hi everyone

    Let's say I start with a chart with, say, 1,000 data points.

    Next, I'd like to make a subset of these points. Let's say, for simplicity, these are the points on the chart which are greater/less than the three either side. Let's say there are 100 of these points.

    Is it possible for NT7 to make a list of these 100 points so that, say, a moving average can be applied to them?

    ...
    Put them in a Generic List, and go from there. It is just another collection of doubles.

    Comment


      #3
      Hi arbuthnot,

      As koganam said, use an array, list, (or some other array like structure), or use a dataseries if you want one value for each bar.

      array - http://www.dotnetperls.com/array

      dataseries - http://ninjatrader.com/support/helpG...ries_class.htm
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thanks koganam and Chelsea.

        I've never incorporated the list method into any of my indicators, but I guess this is the time to start.

        If I get totally stuck at some point, I may post back here but I'll try my best on my own.

        Chelsea - that dotnetperls site looks very helpful.

        Cheers.

        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
        331 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
        549 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