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 ETFVoyageur, Today, 04:00 PM
              0 responses
              5 views
              0 likes
              Last Post ETFVoyageur  
              Started by AaronKTradingForum, Today, 03:44 PM
              1 response
              6 views
              0 likes
              Last Post AaronKTradingForum  
              Started by Felix Reichert, 04-26-2024, 02:12 PM
              11 responses
              77 views
              0 likes
              Last Post Felix Reichert  
              Started by junkone, 04-28-2024, 02:19 PM
              7 responses
              83 views
              1 like
              Last Post junkone
              by junkone
               
              Started by pechtri, 06-22-2023, 02:31 AM
              11 responses
              136 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Working...
              X