Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculateOnBarClose of an indicator w/in an indicator

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

    CalculateOnBarClose of an indicator w/in an indicator

    Simple question. NT 6.5 (or both):

    If an indicator 'T1' is coded with ( CalculateOnBarClose= true
    and another indicator 'F2' coded with ( CalculateOnBarClose= false; ) calls the first indicator 'T1'
    will the indicator 'T1' values used inside 'F2' be calculated at the previous BarClose or IntraBar?
    or do we get something completely indeterminate?

    The help says "The CalculateOnBarClose property of indicators embedded within a strategy are overriden by the CalculateOnBarClose property of the strategy" but it does not address an indicator inside an indicator.

    Please clarify. Thanks!!

    #2
    Hello,

    I will have someone reply to you on Monday. Thank you for your patience.
    DenNinjaTrader Customer Service

    Comment


      #3
      LostTrader, please remove any hardcoded CalculateOnBarClose reference from the called indicators Initialize() method, then the calling strategy / indicator will set this via it's own CalculateOnBarClose setting.

      Comment


        #4
        Originally posted by NinjaTrader_Bertrand View Post
        please remove any hardcoded CalculateOnBarClose reference from the called indicators Initialize() method, then the calling strategy / indicator will set this via it's own CalculateOnBarClose setting.
        Thank you!
        I would suggest that you add this to the help file for future reference.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X