For example:
if (BarsInProgress == 0)
{
Plot[0] = x;
}
else if (BarsInProgress == 1)
{
x = x + High[0];
}
BIP==0 (chart)
Time[0] = 6:30:00
BIP==1 (1min)
Time[0] = 6:30:00
..so problem is that the last 1min value to be added (6:29:00 - 6:30:00) is missing and then is added to the next chart bar plot value. In Historical the the BIP==0 is always before BIP==1. In RealTime it changes.
I came across this but dont know how to get it working in my situation:
else if (BarsInProgress == 1)
{
// We have to update the secondary series of the hosted indicator to make sure the values we get in BarsInProgress == 0 are in sync
cumulativeDelta.Update(cumulativeDelta.BarsArray[1].Count - 1, 1);
}

Comment