public DataLoader_Abstract(PluginHelper pluginHelper, string srcDataPath) { this.srcDataPath = srcDataPath; this.dataLoader_Instrument = new DataLoader_InstrumentInfo(pluginHelper.PluginDirPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginHelper.PluginDirPath, this.dataLoader_Instrument); this.plugin_HistoryData_CnFutures = new Plugin_HistoryData_CnFutures(new PluginHelper(pluginHelper.PluginInfo)); }
public DataProvider_JinShuYuan_TickData(string srcDataPath, string pluginPath) { this.srcDataPath = srcDataPath; this.dataLoader_Variety = new DataLoader_Variety(pluginPath); //this.dataLoader_InstrumentInfo = new CodeInfoGenerator(pluginPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginPath, dataLoader_Variety); }
//private Dictionary<string, int> dic_OldCodeId_IpoDate = new Dictionary<string, int>(); /// <summary> /// 构造函数 /// </summary> /// <param name="srcDataPath">数据源目录</param> /// <param name="pluginPath">插件所在目录</param> public DataProvider_BiaoPuYongHua(string srcDataPath, string pluginPath) { this.srcDataPath = srcDataPath; this.pluginPath = pluginPath; this.dataLoader_Variety = new DataLoader_Variety(pluginPath); this.dataprovider_CodeInfo = new DataProvider_BiaoPuYongHua_CodeInfo(srcDataPath, pluginPath); this.dataprovider_TradingDay = new DataProvider_BiaoPuYongHua_TradingDay(srcDataPath, pluginPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginPath, dataLoader_Variety); }
/// <summary> /// 构造函数 /// </summary> /// <param name="pluginHelper">插件帮助类,提供插件相关数据</param> /// <param name="dataProvider">数据提供者</param> /// <param name="srcDataPath">源数据目录</param> /// <param name="targetDataPath">目标目录</param> public DataLoader(PluginHelper pluginHelper, IDataProvider dataProvider, String srcDataPath, string targetDataPath) { this.dataProvider = dataProvider; this.srcDataPath = srcDataPath; this.targetDataPath = targetDataPath; this.dataLoader_Variety = new DataLoader_Variety(pluginHelper.PluginDirPath); //this.dataLoader_Instrument = new CodeInfoGenerator(pluginHelper.PluginDirPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginHelper.PluginDirPath, dataLoader_Variety); this.plugin_HistoryData_CnFutures = new Plugin_HistoryData_CnFutures(pluginHelper); }
/// <summary> /// 创建数据更新帮助类 /// </summary> /// <param name="updatedDataLoader">已更新数据读取器</param> /// <param name="dataProvider">新数据提供器</param> public DataUpdateHelper(string pluginPath, UpdatedDataLoader updatedDataLoader, IDataProvider dataProvider) { this.updatedDataPath = updatedDataLoader.GetUpdatedDataPath(); this.updatedDataLoader = updatedDataLoader; this.dataProvider = dataProvider; DataLoader_Variety dataLoader_Variety = new DataLoader_Variety(pluginPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginPath, dataLoader_Variety); this.dataLoader_Variety = new DataLoader_Variety(pluginPath); this.generator_Main = new DataGenerator_TickData_Main(this); this.generator_Index = new DataGenerator_TickData_Index(this); }