Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-instrument chart not updating when BarsInProgress !=0

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

    Multi-instrument chart not updating when BarsInProgress !=0

    I have some indicators that show values based on an ADDed dataseries. So I have a primary instrument data series in the price panel and a secondary instrument data series in the indicator panel.

    When BarsInProgresss==0 everything occurs as expected and the chart updates to show the current values of all instruments and derived variables.

    When BarsInProgress==1 I can tell from diagnostics written to the output window that Closes[1][0] IS updating, but its new value does not appear on the chart until the next update where BarsInProgress==0.

    This seems like a bug, although an effective workaround is to make this the last line of the OnBarUpdate() method:

    Code:
    if(!Historical && BarsInProgress==1) ChartControl.Refresh();
    (The first qualifier prevents unnecessary refreshes during backfill that would cause excessive chart loading time.)

    #2
    Hi Ricam,

    Unfortunately I did not see an issue so far. I tried restricting the session template hours for the primary instrument but got no updates to either as expected.

    I'm not sure how to setup a test to see what you are seeing. Can you please share a script example you're using and any details needed to setup the same scenario here.
    Last edited by NinjaTrader_RyanM1; 05-18-2011, 02:13 PM.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    569 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X