Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator recalculating prior bar values

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

    Indicator recalculating prior bar values

    I have an indicator based on multi-data series. The problem is that it is recalculating prior bar values. Is there a way to stop prior bar values being recalculated once that bar has closed?

    #2
    Hi Sparkyboy,

    You could use a bool that is set to false after a bar closes and then reset to true after some criteria. Then you could have your calculations be done only if the bool is false.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    132 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    112 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X