Ejemplo n.º 1
0
        public static Fibonnanci Series(DataBars ds, double period, string name)
        {
            //Build description
            string description = "(" + name + "," + period.ToString() + ")";
            //See if it exists in the cache
            object obj = ds.Cache.Find(description);
            if (obj != null) return (Fibonnanci)obj;

            Fibonnanci indicator = new Fibonnanci(ds, period, description);
            ds.Cache.Add(description, indicator);
            return indicator;
        }
Ejemplo n.º 2
0
        public static Fibonnanci Series(DataBars ds, double period, string name)
        {
            //Build description
            string description = "(" + name + "," + period.ToString() + ")";
            //See if it exists in the cache
            object obj = ds.Cache.Find(description);

            if (obj != null)
            {
                return((Fibonnanci)obj);
            }

            Fibonnanci indicator = new Fibonnanci(ds, period, description);

            ds.Cache.Add(description, indicator);
            return(indicator);
        }