internal void OnBar(Bar bar)
{
var item = this.items[(int)bar.Size];
if (item == null)
return;
if (--item.barCount == 0)
{
this.framework.EventServer.OnEvent(new BarSlice(bar));
item.CloseDateTime = DateTime.MinValue;
foreach (var b in item.Bars)
this.framework.EventServer.OnEvent(b);
item.Bars.Clear();
}
}