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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    161 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    310 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X