static void Main(string[] args) { if (!PromptInputs(args)) { return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form1 form = new Form1(); chartManager = new ChartManager(form, form.GetChart(), form.GetQueueLabel()); Tests.BearishFlagPattern test = new Tests.BearishFlagPattern(chartManager, vixfile, outfile, new DateTime(2017, 1, 3), new DateTime(2019, 12, 17)); Tests.CrossMovingAveragePattern matest = new Tests.CrossMovingAveragePattern(chartManager, vixfile, outfile, new DateTime(2012, 6, 4), new DateTime(2019, 12, 17)); Thread thr = new Thread(async() => { await matest.Run(); }); thr.Start(); Application.Run(form); }
public AlgoTest(ChartManager chartManager, DateTime startDate, DateTime endDate, string vixPath = null, string spxPath = null, string outPath = null, string calcPath = null) { ChartManager = chartManager; VIXPath = vixPath; SPXPath = spxPath; OutputPath = outPath; CalcOutputPath = calcPath; StartDate = startDate; EndDate = endDate; }
public AlgoTest(ChartManager chartManager, DateTime startDate, string vixPath = null, string spxPath = null, string outPath = null, string calcPath = null) : this(chartManager, startDate, DateTime.UtcNow, vixPath, spxPath, outPath, calcPath) { }