Exemplo n.º 1
0
        public static CDL3WHITESOLDIERS 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((CDL3WHITESOLDIERS)obj);
            }

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

            ds.Cache.Add(description, indicator);
            return(indicator);
        }
Exemplo n.º 2
0
        public static CDL3WHITESOLDIERS 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 (CDL3WHITESOLDIERS)obj;

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