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