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

How many bars are added for BarsArray[1+]?

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

    How many bars are added for BarsArray[1+]?

    When adding a Bars object to a chart, how many bars are loaded?

    Is the number of bars loaded for the added Bars object correspond to the number of bars of the base chart?
    Or is it correspond to the "load data based on" value of the base chart?

    #2
    Correct savekad, it would depend on the setting in your base chart - we have a more enhanced overload for specifying the # of bars to load on our feedback list for future consideration.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi and thx for the fast reply.

      I didn't quite understand on which part was I correct?

      Is the # of bars == to base chart # of bars or to the # of days (for example) set to the base chart?

      Comment


        #4
        It will match what you have selected for the primary series savekad.
        Last edited by NinjaTrader_Bertrand; 09-24-2012, 03:37 AM.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Please verify the following:

          If I open a weekly chart with 50 bars and add to it a Bars object of Day type, the new Bars object will have 50 bars, regardless of the period type of the base chart, correct?

          On the contrary, if I open a daily chart and set it to load data based on days, give it a value of 365, and add a Bars object of type Week to it, the new Bars object will have only something like 56 bars?

          Comment


            #6
            You are correct in understanding.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Thank you.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by GussJ, 03-04-2020, 03:11 PM
              14 responses
              3,244 views
              0 likes
              Last Post GussJ
              by GussJ
               
              Started by lorem, Today, 09:18 AM
              0 responses
              2 views
              0 likes
              Last Post lorem
              by lorem
               
              Started by hazylizard, Today, 08:38 AM
              4 responses
              11 views
              0 likes
              Last Post hazylizard  
              Started by geddyisodin, Today, 05:20 AM
              2 responses
              20 views
              0 likes
              Last Post geddyisodin  
              Started by Max238, Today, 01:28 AM
              5 responses
              48 views
              0 likes
              Last Post Max238
              by Max238
               
              Working...
              X