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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        71 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X