public static SRChannel Series(DataSeries 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 (SRChannel)obj; SRChannel indicator = new SRChannel(ds, period, description); ds.Cache.Add(description, indicator); return indicator; }
public static SRChannel Series(DataSeries 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((SRChannel)obj); } SRChannel indicator = new SRChannel(ds, period, description); ds.Cache.Add(description, indicator); return(indicator); }