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 cmtjoancolmenero, 04-29-2024, 03:40 PM
        29 responses
        96 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Gavin45, Today, 08:40 AM
        0 responses
        1 view
        0 likes
        Last Post Gavin45
        by Gavin45
         
        Started by trilliantrader, Today, 07:50 AM
        3 responses
        6 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by z.franck, Today, 08:37 AM
        0 responses
        2 views
        0 likes
        Last Post z.franck  
        Started by Taddypole, Yesterday, 02:25 PM
        4 responses
        21 views
        0 likes
        Last Post Taddypole  
        Working...
        X