• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dataseries to an array

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

    Dataseries to an array

    is there a quick way to get to the following statement
    from a dataseries into an array?

    where just want the last 15 data items from a large dataseries
    double[] input = {2,3,4,5,4,3,6,7,5,6,5,6,7,4,3,5};

    Tinkerz

    #2
    The quickest, simplest way I can think of is to use a for loop.

    Code:
    for(int i = 0 ; i < 15 ; i++)
    {
        input[i] = yourdataseries[i];
    }
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      Ok Thanks I was just making sure there is not inbuilt function

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by mohdhm, Today, 04:09 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by BGWTEX, Today, 03:30 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by marekflys, Today, 03:07 PM
      0 responses
      8 views
      0 likes
      Last Post marekflys  
      Started by GregoryBaskin, Today, 02:51 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Started by swcooke, Today, 12:33 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X