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

bars required lookback

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

    bars required lookback

    BarsRequired
    Print this Topic Previous pageReturn to chapter overviewNext page


    Definition
    The number of bars on a chart required before the indicator plots. This is NOT the same as a minimum number of bars required to calculate the indicator values.
    from the help.

    I think i need this other one it talks about. I need to find out how many bars are required. Like when I set up in the market anaylzer 5 minute chart 1000 bars. I need to get this 1000 number - the lookback number.

    How do I access that?

    #2
    Originally posted by NinjaCustomer View Post
    from the help.

    I think i need this other one it talks about. I need to find out how many bars are required. Like when I set up in the market anaylzer 5 minute chart 1000 bars. I need to get this 1000 number - the lookback number.

    How do I access that?
    You specify the number of bars required using the BarsRequired property. If you have not overridden it, then it is the default "20"? Did I misunderstand your question?

    Comment


      #3
      Hello NinjaCustomer,

      Thank you for your post.

      The Maximum Number Of Bars To Look Back actually only contains two values; either Infinite or TwoHundredAndFiftySix.

      Information can be found at the following link: http://www.ninjatrader.com/support/h...rslookback.htm

      Comment


        #4
        actually I came across this number 20 in my debug output for BarsRequired

        but actually this is output of an indicator running in a M.A. with a "# of bars to look back" of 1000 in the dialog.

        I need to grab this 1000 in my code, not the 20 I'm getting.

        Is there a way to do that?

        Comment


          #5
          Hello NinjaCustomer,

          Thank you for your response.

          There is no supported method or function for this property, and I cannot find any unsupported code to pull this property either.

          Comment


            #6
            ok, thanks

            Comment


              #7
              Originally posted by NinjaCustomer View Post
              actually I came across this number 20 in my debug output for BarsRequired

              but actually this is output of an indicator running in a M.A. with a "# of bars to look back" of 1000 in the dialog.

              I need to grab this 1000 in my code, not the 20 I'm getting.

              Is there a way to do that?
              Can you clarify your problem?

              You said you had a custom MA indicator with a period (bars to look back) of 1000.
              And in another indicator you are creating, you want to reference this number, right?

              Thanks.
              Pi
              ninZa
              NinjaTrader Ecosystem Vendor - ninZa.co

              Comment


                #8
                sorry I was lazy typing (this keyboard is a bit small).. M.A. not MA , Market Analyzer not Moving Average.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by RookieTrader, Today, 09:37 AM
                3 responses
                13 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by kulwinder73, Today, 10:31 AM
                0 responses
                5 views
                0 likes
                Last Post kulwinder73  
                Started by terofs, Yesterday, 04:18 PM
                1 response
                22 views
                0 likes
                Last Post terofs
                by terofs
                 
                Started by CommonWhale, Today, 09:55 AM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by Gerik, Today, 09:40 AM
                2 responses
                7 views
                0 likes
                Last Post Gerik
                by Gerik
                 
                Working...
                X