/// <summary> /// Static method to create Bop DataSeries /// </summary> /// <param name="ds"></param> /// <param name="name"></param> /// <returns></returns> public static Bop 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 (Bop)obj; //Create indicator, cache it, return it Bop indicator = new Bop(ds, description); ds.Cache.Add(description, indicator); return indicator; }
/// <summary> /// Static method to create Bop DataSeries /// </summary> /// <param name="ds"></param> /// <param name="name"></param> /// <returns></returns> public static Bop 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((Bop)obj); } //Create indicator, cache it, return it Bop indicator = new Bop(ds, description); ds.Cache.Add(description, indicator); return(indicator); }