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

Can you index multiple dataseries i.e myDataseries(1), myDataseries(2)

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

    Can you index multiple dataseries i.e myDataseries(1), myDataseries(2)

    I am trying to set up multiple data series for multiple time frames and need to index them so I can use a loop to reference each data series.

    I have tried multiple combinations of just the number, the number in parens and the number in brackets (didn't think the bracket would work). But all combinations give one error or another.

    Is this even possible to have several data series with the same name and a numerical reference designation that can be used in a loop?

    myDataseries1
    myDataseries2
    myDataseries3

    Thanks,

    Ryan

    #2
    Without seeing more, I'm going to say Yes.

    Can you post some code without your 'secrets' that is causing you issues?



    Originally posted by RyanR View Post
    I am trying to set up multiple data series for multiple time frames and need to index them so I can use a loop to reference each data series.

    I have tried multiple combinations of just the number, the number in parens and the number in brackets (didn't think the bracket would work). But all combinations give one error or another.

    Is this even possible to have several data series with the same name and a numerical reference designation that can be used in a loop?

    myDataseries1
    myDataseries2
    myDataseries3

    Thanks,

    Ryan

    Comment


      #3
      Ryan, I would suggest reviewing the hints mentioned in this thread - http://www.ninjatrader.com/support/f...ad.php?t=10732
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Thanks Bertrand that was what I was looking for. I guess I did not look far enough back in time.

        Sledge - I do not have any code (or secrets for that matter) I was trying to build some code which depended on this array/dataseries initialization and could not get past step 1.

        Thanks Guys

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Brevo, Today, 01:45 AM
        0 responses
        2 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        4 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Working...
        X