Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataSeries - but for vector of doubles

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

    DataSeries - but for vector of doubles

    Has anyone an example of how have custom data which is a vector (matrix?) of doubles - but still has all the stuff that comes with the DataSeries class?

    Thanks.

    B

    #2
    Welcome to our forums - if you're looking for a matrix, then please check out this thread and the snippets posted there - http://www.ninjatrader-support2.com/...ead.php?t=7501

    Comment


      #3
      Thanks - but I know how to do the matrix stuff - I don't know how to make it associate with the bar etc. ie. something like this:

      myMatrixData = new MatrixDataSeries;

      similar to:

      mySMA = new DataSeries;

      then:

      myMatrixData[2] will be the values on the bar 2 periods ago like mySMA[2]

      Comment


        #4
        For this you would need create a list collection in C#, unfortunately this is not supported by us.

        Comment


          #5
          Is the code for the DataSeries Class available or is it secret? If I can see this I might be able to work out how to do it. Or do you mean that Ninja don't allow it?

          Thanks.

          B

          Comment


            #6
            Unfortunately source code for the DataSeries class is not available (it's just a data structure used), but you can work with it of course in the C# list / collection methods.

            Comment

            Latest Posts

            Collapse

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