public static CDLBELTHOLD 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((CDLBELTHOLD)obj); } //Create Doji, cache it, return it CDLBELTHOLD indicator = new CDLBELTHOLD(ds, description); ds.Cache.Add(description, indicator); return(indicator); }
public static CDLBELTHOLD 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 (CDLBELTHOLD)obj; //Create Doji, cache it, return it CDLBELTHOLD indicator = new CDLBELTHOLD(ds, description); ds.Cache.Add(description, indicator); return indicator; }