Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Expected Behavior of Calculate on Bar Close When Indicator Calls Indicator

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

    Expected Behavior of Calculate on Bar Close When Indicator Calls Indicator

    What is the expected behavior when one indicator calls another and the settings for Calculate on Bar Close for the two indicators is not consistent? Should or must one pass that setting as a Property to insure consistency?

    #2
    Hi dkrumholz,

    When calling another indicator, the line...
    CalculateOnBarClose=true/false;
    should be deleted from the indicator that is being called.

    This way, the calling indicator can take precedence over that setting.
    TimNinjaTrader Customer Service

    Comment


      #3
      Is it the intention of ninjatrader to allow indicators to be set to different COBC states? So that if you strategy is set to cobc=false but you want some indicators to calc only on bar close you can set the cobc=true in the indicator and they will only calc on bar close or will it automatically take the condition set in the strategy. So if the strat is cobc=false, all indicators called will be COBC=false regardless of what code is within the indicator initialize method?

      Comment


        #4
        neb1998,

        Thank you for your post.

        The value you set in the initialize method will set the default settings for COBC.

        Each indicator and strategy can be set to its own settings by changing the Indicator or Strategy parametrs. The value it is set to from the indicator or strategy parameters will be the state the current indicator or strategy runs in.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        317 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X