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

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

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

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

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