Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 TheMarlin801, 10-13-2020, 01:40 AM
        20 responses
        3,913 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by timmbbo, 07-05-2023, 10:21 PM
        3 responses
        150 views
        0 likes
        Last Post grayfrog  
        Started by Lumbeezl, 01-11-2022, 06:50 PM
        30 responses
        805 views
        1 like
        Last Post grayfrog  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Johnny Santiago, 10-11-2019, 09:21 AM
        95 responses
        6,194 views
        0 likes
        Last Post xiinteractive  
        Working...
        X