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 funk10101, Today, 12:02 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by GLFX005, Today, 03:23 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by nandhumca, Yesterday, 03:41 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by The_Sec, Yesterday, 03:37 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by vecnopus, Today, 06:15 AM
        0 responses
        1 view
        0 likes
        Last Post vecnopus  
        Working...
        X