Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

# of bars to look back

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

    # of bars to look back

    Hi,

    Under Properties of the Market Analyzer window, there is a parameter to set "# of bars to look back".

    If I add an Indicator to the MA, there is also the same "# of bars to look back" parameter under General.

    What's the difference between the 2, and which one takes precedence?

    Thanks.

    -Nick

    #2
    Hi,

    The MA properties is the general settings for your analyzer. The indicator properties are for that specific indicator.

    The indicator parameters will override the general. This means if you have one specific indicator that needs more bars to calculate, you can set it in the indicator column itself, and then the rest of the indicators will use what you have set in the general properties.

    To get an idea of how this works exactly, you can try setting the MA properties to 150 for example, then add an Indicator column and you'll see that indicator column will inherit the settings used in the general properties. You then have the option to increase/decrease this value for that specific column
    MatthewNinjaTrader Product Management

    Comment


      #3
      Is there a way to set this "# of bars to look back" value from within NinjaScript?

      I see that there is a "MaximumBarsLookBack" variable, but I'm unsure if this is really want I want.

      Thank you!
      Daniel

      Comment


        #4
        Hello,

        Thank you for the question.

        This property is set before the indicator so this would not be accessible from the indicator its self.

        You can set a default for this property but it would not be able to be set from script.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        22 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        10 views
        0 likes
        Last Post cre8able  
        Working...
        X