Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public List <ICustomData <double, double> > getAllNumericSerries()
 {
     return(MaDataSeries.Concat(CustomDataSeries).ToList());
 }