示例#1
0
        public static CDLBELTHOLD 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((CDLBELTHOLD)obj);
            }

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

            ds.Cache.Add(description, indicator);
            return(indicator);
        }
示例#2
0
        public static CDLBELTHOLD 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 (CDLBELTHOLD)obj;

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