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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        70 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        78 views
        0 likes
        Last Post PaulMohn  
        Working...
        X