Ejemplo n.º 1
0
        /// <summary>
        /// 缓存板块指标
        /// </summary>
        private void SyncPlateSymbol()
        {
            this.PrintSyncStatus("开始:同步板块指标");

            // 缓存板块指标
            this.PrintSyncStatus("  同步板块指标");
            DspToMongoHelper.CachePlatesSymbol();

            //生成板块指标对应的选股条件
            this.PrintSyncStatus("  生成板块指标明细");
            MongodbCacheHelper.CachePlateIndex();

            this.PrintSyncStatus("结束:同步板块指标");
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 同步财务指标
        /// </summary>
        private void SyncFinance()
        {
            this.PrintSyncStatus("开始:同步财务指标");

            // 同步财务指标
            this.PrintSyncStatus("  同步财务指标");
            DspToMongoHelper.SyncFinaceIndex();

            //生成财务指标对应的选股条件
            this.PrintSyncStatus("  生成财务指标分布值");
            MongodbCacheHelper.CacheFinanceIndex();

            this.EnableButton(true);

            this.PrintSyncStatus("结束:同步财务指标");
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 同步行情指标
        /// </summary>
        private void SyncDataByTime()
        {
            this.PrintSyncStatus("开始:同步行情指标");

            //同步前5个交易日的日线行情数据
            this.PrintSyncStatus("  同步前5个交易日的日线行情");
            DspToMongoHelper.SyncDataByTimeIndexInfo();

            //生成行情指标对应的选股条件
            this.PrintSyncStatus("  生成行情指标分布值");
            MongodbCacheHelper.CacheDataByTimeIndex();

            this.EnableButton(true);

            this.PrintSyncStatus("结束:同步行情指标");
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 同步技术指标
        /// </summary>
        private void SyncTechnical()
        {
            this.PrintSyncStatus("开始:同步技术指标");

            //同步所有的的日线行情数据
            this.PrintSyncStatus("  同步所有日线行情数据");
            DspToMongoHelper.SyncDataByTime();

            this.PrintSyncStatus("  计算技术指标");
            this.CalculateAllTechnical();

            //缓存技术指标的明细
            this.PrintSyncStatus("  生成技术指标分布值");
            MongodbCacheHelper.CacheTechnicalIndex();

            this.PrintSyncStatus("结束:同步技术指标");
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 同步基础信息
        /// </summary>
        private void SyncBasic()
        {
            this.PrintSyncStatus("开始:同步基础信息");

            // 同步所有a股代码数据
            this.PrintSyncStatus("  同步a股代码");
            DspToMongoHelper.SyncA_PlateIndex();

            // 同步交易日历
            this.PrintSyncStatus("  同步交易日历");
            DspToMongoHelper.SyncTradeCalendarIndex();

            // 同步所有板块
            this.PrintSyncStatus("  同步板块信息");
            DspToMongoHelper.SyncPlatesIndex();

            //缓存指标菜单
            this.PrintSyncStatus("  生成指标菜单");
            MongodbCacheHelper.CacheIndexMenu();

            this.PrintSyncStatus("结束:同步基础信息");
        }