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

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 junkone, Today, 11:37 AM
        0 responses
        1 view
        0 likes
        Last Post junkone
        by junkone
         
        Started by quantismo, 04-17-2024, 05:13 PM
        5 responses
        34 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by proptrade13, Today, 11:06 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        34 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Working...
        X