public ICustomData <double, double> CreateOrUpdateMA(PriceType type, int period, MAMode mode, HistoricalData historicalData) { ICustomData <double, double> result; string name = mode.ToString() + period.ToString(); int findResult = MaDataSeries.FindIndex(x => x.Name == name); if (findResult != -1) { MaDataSeries[findResult].GetValue(historicalData.GetValue(type, 0)); result = MaDataSeries[findResult]; } else { result = CreateAndFillMA(historicalData, mode, period, type, name); } return(result); }
public List <ICustomData <double, double> > getAllNumericSerries() { return(MaDataSeries.Concat(CustomDataSeries).ToList()); }