Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies and an Indicator's Calculate on Bar Close

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

    Strategies and an Indicator's Calculate on Bar Close

    I think what I am about to ask is obvious, but just in case my obvious is not the same as NT's obvious I will ask anyway.

    If an indicator has the Calculate on bar close property set to True, then if checking for the indicators value in a strategy means I would be looking at 1 bar back (i.e,. not the bar index of of 0). Correct?

    #2
    mcatmull, correct setting this to true means you work with the last closed bar, not the currently developing / open one.

    Bar index 0 can actually have different meanings then depending on this setting.

    Comment


      #3
      Okay, so it is not so obvious then...

      So just to be clear, if the strategy initially had the property "Calculate on bar close" set to true, is the bar index 0 for the bar that is "closed" or the one that is currently being built?
      Last edited by mcatmull; 10-09-2014, 12:18 PM.

      Comment


        #4
        Hello mcatmull,

        The bar index 0 would be that last closed bar, not the one being built.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        78 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        45 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        64 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X