コード例 #1
0
ファイル: Fibonnanci.cs プロジェクト: oghenez/trade-software
        public static Fibonnanci Series(DataBars ds, double period, string name)
        {
            //Build description
            string description = "(" + name + "," + period.ToString() + ")";
            //See if it exists in the cache
            object obj = ds.Cache.Find(description);
            if (obj != null) return (Fibonnanci)obj;

            Fibonnanci indicator = new Fibonnanci(ds, period, description);
            ds.Cache.Add(description, indicator);
            return indicator;
        }
コード例 #2
0
ファイル: Fibonnanci.cs プロジェクト: oghenez/trade-software
        public static Fibonnanci Series(DataBars ds, double period, string name)
        {
            //Build description
            string description = "(" + name + "," + period.ToString() + ")";
            //See if it exists in the cache
            object obj = ds.Cache.Find(description);

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

            Fibonnanci indicator = new Fibonnanci(ds, period, description);

            ds.Cache.Add(description, indicator);
            return(indicator);
        }