public override void OnCalculateMinMax() { MinValue = double.MaxValue; MaxValue = double.MinValue; if (!IsVisible) { return; } if (ChartAnchors.Any(a => !a.IsEditing)) { foreach (ChartAnchor ca in ChartAnchors) { MinValue = Math.Min(MinValue, ca.Price); MaxValue = Math.Max(MaxValue, ca.Price); } } }