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

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.
      BertrandNinjaTrader Customer Service

      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 egordleo, Today, 05:50 AM
        0 responses
        4 views
        0 likes
        Last Post egordleo  
        Started by kevinenergy, 02-17-2023, 12:42 PM
        118 responses
        2,778 views
        1 like
        Last Post kevinenergy  
        Started by briansaul, Today, 05:31 AM
        0 responses
        9 views
        0 likes
        Last Post briansaul  
        Started by fwendolynlpxz, Today, 05:19 AM
        0 responses
        4 views
        0 likes
        Last Post fwendolynlpxz  
        Started by traderqz, Yesterday, 12:06 AM
        11 responses
        28 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X