示例#1
0
        public static Dictionary <string, IndicatorCache> LoadIndicatorCacheList(string indicatorIdentityCodes, BarItemType barType, Guid cacheId)
        {
            string[] indicatorIdentities = indicatorIdentityCodes.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
            Dictionary <string, IndicatorCache> cacheList = new Dictionary <string, IndicatorCache>();

            foreach (string indicatorIdentity in indicatorIdentities)
            {
                IndicatorCache indicatorCache = new IndicatorCache(indicatorIdentity, barType, cacheId);
                cacheList.Add(indicatorIdentity, indicatorCache);
            }

            return(cacheList);
        }
示例#2
0
 internal IndicatorFrameReader(DateTime startDate, DateTime endDate, int frameSize, IndicatorCache cache)
 {
     dataFrameItems = cache.SelectIndicators(startDate, endDate, frameSize);
 }