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