static int Test() { BackTest.Config cfg = new BackTest.Config(); cfg.data_level = "1m"; cfg.begin_date = 20180101; cfg.end_date = 20180102; TQuant.Stralet.BackTest.Run(cfg, CreateStralet); return(0); }
static void Test() { var begin_time = DateTime.Now; BackTest.Config cfg = new BackTest.Config(); cfg.dapi_addr = "ipc://tqc_10001"; cfg.data_level = "tk"; cfg.begin_date = 20180101; cfg.end_date = 20180516; BackTest.Run(cfg, CreateStralet); var used_time = System.DateTime.Now - begin_time; Console.WriteLine("used_time: " + used_time.TotalSeconds); }