//Testing public void Add2Top(databases.baseDS.priceDataDataTable tbl) { for (int idx = tbl.Count - 1; idx >= 0; idx--) { databases.baseDS.priceDataRow newRow = priceDataTbl.NewpriceDataRow(); newRow.ItemArray = tbl[idx].ItemArray; priceDataTbl.Rows.InsertAt(newRow, 0); } //Update OHLCV data series double[] tmpData; if (this.DateTime.Values != null) { tmpData = DataLibs.GetDataList(tbl, 0, AppTypes.PriceDataType.DateTime); this.DateTime.Add2Top(tmpData); } if (this.High.Values != null) { tmpData = DataLibs.GetDataList(tbl, 0, AppTypes.PriceDataType.High); this.High.Add2Top(tmpData); } if (this.Low.Values != null) { tmpData = DataLibs.GetDataList(tbl, 0, AppTypes.PriceDataType.Low); this.Low.Add2Top(tmpData); } if (this.Open.Values != null) { tmpData = DataLibs.GetDataList(tbl, 0, AppTypes.PriceDataType.Open); this.Open.Add2Top(tmpData); } if (this.Close.Values != null) { tmpData = DataLibs.GetDataList(tbl, 0, AppTypes.PriceDataType.Close); this.Close.Add2Top(tmpData); } if (this.Volume.Values != null) { tmpData = DataLibs.GetDataList(tbl, 0, AppTypes.PriceDataType.Volume); this.Volume.Add2Top(tmpData); } //Remove cached "Bars: dataCache.Remove("Bars"); }
public void DeleteCache(string cacheName) { sysDataCache.Remove(cacheName); }
public static void ClearCache(string cacheKey) { cacheData.Remove(cacheKey); }