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 sgordet, Today, 06:04 AM
        0 responses
        4 views
        0 likes
        Last Post sgordet
        by sgordet
         
        Started by bc24fl, 08-30-2019, 01:58 PM
        4 responses
        259 views
        0 likes
        Last Post PaulMohn  
        Started by sugalt, Today, 04:02 AM
        0 responses
        6 views
        0 likes
        Last Post sugalt
        by sugalt
         
        Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
        6 responses
        30 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by PaulMohn, Today, 02:06 AM
        1 response
        9 views
        0 likes
        Last Post PaulMohn  
        Working...
        X