Checks if bar data is historical or real-time. Ifhistorical, return out of the method.
{
if (Historical)
return;
}
When CalculateOnBarClose == false, then OnBarUpdate() is being called for the last bar on the chart:
{
if (CurrentBar == Bars.Count - 1)
// Is last bar on chart
}
{
if (CurrentBar== Bars.Count -2)
// Is last bar on chart
}
Ray
Comment