protected internal override void Calculate(int index) { if (this.calculate) { this.Calculate(); return; } double num = SMD.Value(this.input, index, this.length, this.barData); if (!double.IsNaN(num)) { base.Add(this.input.GetDateTime(index), num); } }