void IndicatorSource2_SelectionChanged(object sender, SelectionChangedEventArgs e) { indicatorsCollection.Clear(); this.ChartArea.TechnicalIndicators.Clear(); foreach (var indi in IndicatorSource2.SelectedItems) { var indicator = Addindicator((string)indi, 1); if (indicator != null) { indicatorsCollection.Add(indicator); } } foreach (var item in indicatorsCollection) { ISupportAxes2D indicatorAxis = item as ISupportAxes2D; var index = SfChart.GetRow(indicatorAxis.YAxis); if (index == 0) { this.ChartArea.TechnicalIndicators.Add(item); NumericalAxis axis = new NumericalAxis(); axis.OpposedPosition = true; axis.ShowGridLines = false; axis.Visibility = Visibility.Collapsed; indicatorAxis.YAxis = axis; SfChart.SetRow(indicatorAxis.YAxis, 0); } } }