Ejemplo n.º 1
0
        public OptimizerReportUi(OptimizerMaster master)
        {
            InitializeComponent();
            _master = master;

            _resultsCharting = new OptimizerReportCharting(
                WindowsFormsHostDependences, WindowsFormsHostColumnsResults,
                WindowsFormsHostPieResults, ComboBoxSortDependencesResults,
                WindowsFormsHostOutOfSampleEquity, LabelTotalProfitInOutOfSample);

            _resultsCharting.LogMessageEvent += _master.SendLogMessage;
            CreateTableFazes();
            CreateTableResults();


            LabelSortBy.Content                        = OsLocalization.Optimizer.Label39;
            LabelOptimSeries.Content                   = OsLocalization.Optimizer.Label30;
            LabelTableResults.Content                  = OsLocalization.Optimizer.Label31;
            TabControlResultsSeries.Header             = OsLocalization.Optimizer.Label37;
            TabControlResultsOutOfSampleResults.Header = OsLocalization.Optimizer.Label38;
            LabelTotalProfitInOutOfSample.Content      = OsLocalization.Optimizer.Label43;
            ButtonSaveInFile.Content                   = OsLocalization.Optimizer.Label45;
            ButtonLoadFromFile.Content                 = OsLocalization.Optimizer.Label46;

            Title += "   " + master.StrategyName;

            if (master.TabsSimpleNamesAndTimeFrames != null &&
                master.TabsSimpleNamesAndTimeFrames.Count == 1)
            {
                Title += "  " + master.TabsSimpleNamesAndTimeFrames[0].NameSecurity + "  " + master.TabsSimpleNamesAndTimeFrames[0].TimeFrame;
            }
        }
Ejemplo n.º 2
0
        public OptimizerReportUi(OptimizerMaster master)
        {
            InitializeComponent();
            _master = master;

            _resultsCharting = new OptimizerReportCharting(
                WindowsFormsHostDependences, WindowsFormsHostColumnsResults,
                WindowsFormsHostPieResults, ComboBoxSortDependencesResults,
                WindowsFormsHostOutOfSampleEquity, LabelTotalProfitInOutOfSample);

            _resultsCharting.LogMessageEvent += _master.SendLogMessage;
            CreateTableFazes();
            CreateTableResults();


            LabelSortBy.Content                        = OsLocalization.Optimizer.Label39;
            LabelOptimSeries.Content                   = OsLocalization.Optimizer.Label30;
            LabelTableResults.Content                  = OsLocalization.Optimizer.Label31;
            TabControlResultsSeries.Header             = OsLocalization.Optimizer.Label37;
            TabControlResultsOutOfSampleResults.Header = OsLocalization.Optimizer.Label38;
            LabelTotalProfitInOutOfSample.Content      = OsLocalization.Optimizer.Label43;
            ButtonSaveInFile.Content                   = OsLocalization.Optimizer.Label45;
            ButtonLoadFromFile.Content                 = OsLocalization.Optimizer.Label46;
        }
Ejemplo n.º 3
0
 public OptimizerExecutor(OptimizerMaster master)
 {
     _master = master;
 }
Ejemplo n.º 4
0
        public OptimizerExecutor(OptimizerMaster master)
        {
            _master = master;

            _asyncBotFactory = new AsyncBotFactory();
        }