コード例 #1
0
        public static CDLADVANCEBLOCK 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((CDLADVANCEBLOCK)obj);
            }

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

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

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