public IndicatorDataSeries CreateSeries(string name, Color color, IndicatorChartPaintType chartPaintType, bool isPaint) { if (DataSeries.Find(val => val.Name == name) != null) { return(DataSeries.Find(val => val.Name == name)); } IndicatorDataSeries newSeries = new IndicatorDataSeries(color, name, chartPaintType, isPaint); DataSeries.Add(newSeries); CheckSeriesParamsInSaveData(newSeries); return(newSeries); }