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:
if(!Historical && BarsInProgress==1) ChartControl.Refresh();
Comment