Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator executed on future bars

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

    Indicator executed on future bars

    Hi, when debugging single-timeframe indicator on historical data, it usually calls OnBarUpdate() only on visible bars. OnBarUpdate() for the bars behind the right side is executed after I scroll the chart to see them. One question is why this does not happen always...I have not found a consitency. Sometimes it waits, sometimes OnBarUpdate() is called for all the bars, even the hidden on the right. Second question, why it never waits in multi-timeframe indicator? I cannot check the output bar by bar, OnBarUpdate() is called for every bar, regardless if it's hidden or not. Is there a way how can I control this behavior and switch it off? Thank you.

    #2
    Hello mantak007,
    Single series indicators will process all bars up to the last visible bar on the chart until you scroll to the right to see more bars, then it will also process those as well.

    Multiseries indicators however will process all bars all the way to the last bar loaded on the chart regardless of where you have the chart scrolled to.

    This is expected and how the bars are referenced in NinjaTrader and there are no settings to overirde the behavior.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    82 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X