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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            169 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            326 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            251 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            353 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            180 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X