Ejemplo n.º 1
0
        public static StochF Series(DataBars db, double fastK_Period, double fastD_Period, string name)
        {
            //Build description
            string description = "(" + name + "," + fastK_Period.ToString() + "," + fastD_Period.ToString() + ")";
            //See if it exists in the cache
            object obj = db.Cache.Find(description);

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

            StochF stochF = new StochF(db, fastK_Period, fastD_Period, description);

            db.Cache.Add(description, stochF);
            return(stochF);
        }
Ejemplo n.º 2
0
        public static StochF Series(DataBars db, double fastK_Period, double fastD_Period, string name)
        {
            //Build description
            string description = "(" + name + "," + fastK_Period.ToString() + "," + fastD_Period.ToString() + ")";
            //See if it exists in the cache
            object obj = db.Cache.Find(description);
            if (obj != null) return (StochF)obj;

            StochF stochF = new StochF(db,fastK_Period, fastD_Period, description);
            db.Cache.Add(description, stochF);
            return stochF;
        }