示例#1
0
        public static CDL3LINESTRIKE Series(DataBars ds, string name)
        {
            //Build description
            string description = "(" + name + ")";
            //See if it exists in the cache
            object obj = ds.Cache.Find(description);

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

            //Create Doji, cache it, return it
            CDL3LINESTRIKE indicator = new CDL3LINESTRIKE(ds, description);

            ds.Cache.Add(description, indicator);
            return(indicator);
        }
示例#2
0
        public static CDL3LINESTRIKE Series(DataBars ds, string name)
        {
            //Build description
            string description = "(" + name + ")";
            //See if it exists in the cache
            object obj = ds.Cache.Find(description);
            if (obj != null) return (CDL3LINESTRIKE)obj;

            //Create Doji, cache it, return it
            CDL3LINESTRIKE indicator = new CDL3LINESTRIKE(ds, description);
            ds.Cache.Add(description, indicator);
            return indicator;
        }