protected GetBarOpenDateTime ( |
||
obj | ||
return | System.DateTime |
protected override DateTime GetBarOpenDateTime(DataObject obj)
{
var t = GetDataObjectDateTime(obj, this.type);
long seconds = (long)t.TimeOfDay.TotalSeconds / this.barSize * this.barSize;
return t.Date.AddSeconds(seconds);
}