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 arvidvanstaey, Today, 02:19 PM
        4 responses
        11 views
        0 likes
        Last Post arvidvanstaey  
        Started by samish18, 04-17-2024, 08:57 AM
        16 responses
        61 views
        0 likes
        Last Post samish18  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        9 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        48 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X