private void NewIndicator_SettingParamsChanged(object sender, EventArgs e) { financialChart.BeginUpdate(); IIndicator indcator = sender as IIndicator; IEnumerable <Object.QuoteRange> ranges = indcator.GetYRange(Model.LowerValue.Value, Model.UpperValue.Value); indcator.AxisY.Min = ranges.Min(p => { return(p == null ? int.MaxValue : p.Min); }); indcator.AxisY.Max = ranges.Max(p => { return(p == null ? int.MinValue : p.Max); }); financialChart.EndUpdate(); }