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 sjsj2732, Yesterday, 04:31 AM
            0 responses
            33 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            286 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            286 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            133 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            91 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X