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 sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,262 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by WeyldFalcon, 12-10-2020, 06:48 PM
        14 responses
        1,429 views
        0 likes
        Last Post Handclap0241  
        Started by DJ888, 04-16-2024, 06:09 PM
        2 responses
        9 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        41 views
        0 likes
        Last Post jeronymite  
        Working...
        X