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; }
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); }