Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

barupdate vs onbarclose

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

    barupdate vs onbarclose

    if i have a custom indicator that was intended
    CalculateOnBarClose = true;


    . i use it in a strategy which has
    CalculateOnBarClose = false;
    Would the indicator values still be calculate on Barclose or will it be calculcated intrabar.

    #2
    junkone, the strategy setting should override it - however there's currently a known bug in this. Please remove any CalculateOnBarClose statements from the indicators referenced by your strategy and only set this from the strategy itself.

    Comment


      #3
      #1. i am exploding again with anger that there is no repository of bugs that i can refer to before coding. its just a waste of time to code stuff and finally find that you have bugs in them. i would like to escalate this prob to someone senior in your organisation.

      #2. my strategy does runs tick by tick and uses many indicators. There are a few indicators that the strategy uses by referring to the value on close for eg. CCI(14)[1]

      how do i ensure that these indicators are only calculated on bar close. this would ensure that there is no unecessary tick by tick processing for such indicators.

      Comment


        #4
        We're sorry for any inconvenience caused by this, I agree keeping a 'known bugs' list is very useful - I'll forward this request to developement.

        As a workaround you need to call anything that needs to evaluated at the close in

        Code:
         
        if (FirstTickOfBar) 
        {
        your conditions to be evaluated on bar close = true
        }
        and then reference one bar more back in your conditions to make up for calling it on the open tick.

        Comment


          #5
          can you describe what is the bug here.

          Originally posted by NinjaTrader_Bertrand View Post
          junkone, the strategy setting should override it - however there's currently a known bug in this. Please remove any CalculateOnBarClose statements from the indicators referenced by your strategy and only set this from the strategy itself.

          Comment


            #6
            Hello,

            I will have Bert post a reply on Monday.
            DenNinjaTrader Customer Service

            Comment


              #7
              The bug is the CalculateOnBarClose setting of the referenced indicator(s) would not be properly overwritten by the calling indicator or strategy. Therefore we advise to remove those calls from the referenced indicators for now as a workaround.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              648 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              572 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              573 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X