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 usazencort, Today, 01:16 AM
              0 responses
              1 view
              0 likes
              Last Post usazencort  
              Started by kaywai, 09-01-2023, 08:44 PM
              5 responses
              603 views
              0 likes
              Last Post NinjaTrader_Jason  
              Started by xiinteractive, 04-09-2024, 08:08 AM
              6 responses
              22 views
              0 likes
              Last Post xiinteractive  
              Started by Pattontje, Yesterday, 02:10 PM
              2 responses
              21 views
              0 likes
              Last Post Pattontje  
              Started by flybuzz, 04-21-2024, 04:07 PM
              17 responses
              230 views
              0 likes
              Last Post TradingLoss  
              Working...
              X