[Quantproject-developers] QuantDownloader/Downloader/TickerSelectors TickerSelectorForm.cs, 1.19, 1
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2006-07-02 20:01:11
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv16408/Downloader/TickerSelectors Modified Files: TickerSelectorForm.cs Log Message: Added SelectorByMaxLinearIndipendence to the visual selector form. Some minor bugs have been fixed, too. Index: TickerSelectorForm.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors/TickerSelectorForm.cs,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** TickerSelectorForm.cs 8 Apr 2006 14:25:50 -0000 1.19 --- TickerSelectorForm.cs 2 Jul 2006 20:01:07 -0000 1.20 *************** *** 32,35 **** --- 32,36 ---- using QuantProject.Data.DataTables; using QuantProject.Data.Selectors; + using QuantProject.Data.Selectors.ByLinearIndipendence; namespace QuantProject.Applications.Downloader.TickerSelectors *************** *** 69,74 **** private System.Windows.Forms.Splitter splitter1; private System.Windows.Forms.CheckBox checkBoxOnlyWithAtLeastOneWinningDay; - private System.Windows.Forms.TextBox textBoxNumDaysBetweenEachClose; - private System.Windows.Forms.Label labelNumDaysBetweenEachClose; private DataTable tableOfSelectedTickers; --- 70,73 ---- *************** *** 97,100 **** --- 96,100 ---- this.comboBoxAvailableSelectionRules.Items.Add("OpenToCloseCorrelationToBenchmark"); this.comboBoxAvailableSelectionRules.Items.Add("CloseToCloseCorrelationToBenchmark"); + this.comboBoxAvailableSelectionRules.Items.Add("MaxLinearIndipendence"); } *************** *** 132,469 **** /// </summary> private void InitializeComponent() { ! this.components = new System.ComponentModel.Container(); ! this.splitter1 = new System.Windows.Forms.Splitter(); ! this.textBoxMaxPrice = new System.Windows.Forms.TextBox(); ! this.labelMaxPrice = new System.Windows.Forms.Label(); ! this.label5 = new System.Windows.Forms.Label(); ! this.labelMaxStdDev = new System.Windows.Forms.Label(); ! this.label7 = new System.Windows.Forms.Label(); ! this.textBoxMaxNumOfReturnedTickers = new System.Windows.Forms.TextBox(); ! this.panel2 = new System.Windows.Forms.Panel(); ! this.groupBoxSelectionRule = new System.Windows.Forms.GroupBox(); ! this.checkBoxOnlyWithAtLeastOneWinningDay = new System.Windows.Forms.CheckBox(); ! this.textBoxMaxStdDev = new System.Windows.Forms.TextBox(); ! this.labelMinStdDev = new System.Windows.Forms.Label(); ! this.textBoxMinStdDev = new System.Windows.Forms.TextBox(); ! this.labelMinPrice = new System.Windows.Forms.Label(); ! this.textBoxMinPrice = new System.Windows.Forms.TextBox(); ! this.labelMarketIndexKey = new System.Windows.Forms.Label(); ! this.textBoxMarketIndex = new System.Windows.Forms.TextBox(); ! this.checkBoxASCMode = new System.Windows.Forms.CheckBox(); ! this.label3 = new System.Windows.Forms.Label(); ! this.comboBoxAvailableSelectionRules = new System.Windows.Forms.ComboBox(); ! this.label2 = new System.Windows.Forms.Label(); ! this.label1 = new System.Windows.Forms.Label(); ! this.textBoxGroupID = new System.Windows.Forms.TextBox(); ! this.dateTimePickerLastDate = new System.Windows.Forms.DateTimePicker(); ! this.dateTimePickerFirstDate = new System.Windows.Forms.DateTimePicker(); ! this.buttonSelectTickers = new System.Windows.Forms.Button(); ! this.dataGrid1 = new System.Windows.Forms.DataGrid(); ! this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ! this.textBoxNumDaysBetweenEachClose = new System.Windows.Forms.TextBox(); ! this.labelNumDaysBetweenEachClose = new System.Windows.Forms.Label(); ! this.panel2.SuspendLayout(); ! this.groupBoxSelectionRule.SuspendLayout(); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit(); ! this.SuspendLayout(); ! // ! // splitter1 ! // ! this.splitter1.BackColor = System.Drawing.SystemColors.Highlight; ! this.splitter1.Location = new System.Drawing.Point(432, 0); ! this.splitter1.Name = "splitter1"; ! this.splitter1.Size = new System.Drawing.Size(3, 478); ! this.splitter1.TabIndex = 8; ! this.splitter1.TabStop = false; ! // ! // textBoxMaxPrice ! // ! this.textBoxMaxPrice.Location = new System.Drawing.Point(72, 232); ! this.textBoxMaxPrice.Name = "textBoxMaxPrice"; ! this.textBoxMaxPrice.Size = new System.Drawing.Size(56, 20); ! this.textBoxMaxPrice.TabIndex = 32; ! this.textBoxMaxPrice.Text = ""; ! this.textBoxMaxPrice.Visible = false; ! // ! // labelMaxPrice ! // ! this.labelMaxPrice.Location = new System.Drawing.Point(16, 232); ! this.labelMaxPrice.Name = "labelMaxPrice"; ! this.labelMaxPrice.Size = new System.Drawing.Size(56, 23); ! this.labelMaxPrice.TabIndex = 33; ! this.labelMaxPrice.Text = "Max Price"; ! this.labelMaxPrice.Visible = false; ! // ! // label5 ! // ! this.label5.Location = new System.Drawing.Point(8, 24); ! this.label5.Name = "label5"; ! this.label5.Size = new System.Drawing.Size(64, 16); ! this.label5.TabIndex = 18; ! this.label5.Text = "First Date"; ! // ! // labelMaxStdDev ! // ! this.labelMaxStdDev.Location = new System.Drawing.Point(152, 232); ! this.labelMaxStdDev.Name = "labelMaxStdDev"; ! this.labelMaxStdDev.Size = new System.Drawing.Size(80, 23); ! this.labelMaxStdDev.TabIndex = 37; ! this.labelMaxStdDev.Text = "Max Std Dev"; ! this.labelMaxStdDev.Visible = false; ! // ! // label7 ! // ! this.label7.Location = new System.Drawing.Point(168, 24); ! this.label7.Name = "label7"; ! this.label7.Size = new System.Drawing.Size(64, 16); ! this.label7.TabIndex = 20; ! this.label7.Text = "Last Date"; ! // ! // textBoxMaxNumOfReturnedTickers ! // ! this.textBoxMaxNumOfReturnedTickers.Location = new System.Drawing.Point(312, 64); ! this.textBoxMaxNumOfReturnedTickers.Name = "textBoxMaxNumOfReturnedTickers"; ! this.textBoxMaxNumOfReturnedTickers.Size = new System.Drawing.Size(48, 20); ! this.textBoxMaxNumOfReturnedTickers.TabIndex = 23; ! this.textBoxMaxNumOfReturnedTickers.Text = ""; ! // ! // panel2 ! // ! this.panel2.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.groupBoxSelectionRule, ! this.buttonSelectTickers}); ! this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; ! this.panel2.ForeColor = System.Drawing.SystemColors.ControlText; ! this.panel2.Location = new System.Drawing.Point(432, 0); ! this.panel2.Name = "panel2"; ! this.panel2.Size = new System.Drawing.Size(372, 478); ! this.panel2.TabIndex = 7; ! // ! // groupBoxSelectionRule ! // ! this.groupBoxSelectionRule.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.labelNumDaysBetweenEachClose, ! this.textBoxNumDaysBetweenEachClose, ! this.checkBoxOnlyWithAtLeastOneWinningDay, ! this.labelMaxStdDev, ! this.textBoxMaxStdDev, ! this.labelMinStdDev, ! this.textBoxMinStdDev, ! this.labelMaxPrice, ! this.textBoxMaxPrice, ! this.labelMinPrice, ! this.textBoxMinPrice, ! this.labelMarketIndexKey, ! this.textBoxMarketIndex, ! this.checkBoxASCMode, ! this.label3, ! this.comboBoxAvailableSelectionRules, ! this.label2, ! this.textBoxMaxNumOfReturnedTickers, ! this.label1, ! this.textBoxGroupID, ! this.label7, ! this.label5, ! this.dateTimePickerLastDate, ! this.dateTimePickerFirstDate}); ! this.groupBoxSelectionRule.Location = new System.Drawing.Point(8, 16); ! this.groupBoxSelectionRule.Name = "groupBoxSelectionRule"; ! this.groupBoxSelectionRule.Size = new System.Drawing.Size(376, 272); ! this.groupBoxSelectionRule.TabIndex = 14; ! this.groupBoxSelectionRule.TabStop = false; ! this.groupBoxSelectionRule.Text = "Single Selection rule"; ! // ! // checkBoxOnlyWithAtLeastOneWinningDay ! // ! this.checkBoxOnlyWithAtLeastOneWinningDay.Enabled = false; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Location = new System.Drawing.Point(192, 144); ! this.checkBoxOnlyWithAtLeastOneWinningDay.Name = "checkBoxOnlyWithAtLeastOneWinningDay"; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Size = new System.Drawing.Size(152, 24); ! this.checkBoxOnlyWithAtLeastOneWinningDay.TabIndex = 38; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Text = "Exclude \"pure\" losers"; ! this.toolTip1.SetToolTip(this.checkBoxOnlyWithAtLeastOneWinningDay, "Check if you want to filter only tickers with at least one winning day"); ! // ! // textBoxMaxStdDev ! // ! this.textBoxMaxStdDev.Location = new System.Drawing.Point(232, 232); ! this.textBoxMaxStdDev.Name = "textBoxMaxStdDev"; ! this.textBoxMaxStdDev.Size = new System.Drawing.Size(56, 20); ! this.textBoxMaxStdDev.TabIndex = 36; ! this.textBoxMaxStdDev.Text = ""; ! this.textBoxMaxStdDev.Visible = false; ! // ! // labelMinStdDev ! // ! this.labelMinStdDev.Location = new System.Drawing.Point(152, 184); ! this.labelMinStdDev.Name = "labelMinStdDev"; ! this.labelMinStdDev.Size = new System.Drawing.Size(72, 23); ! this.labelMinStdDev.TabIndex = 35; ! this.labelMinStdDev.Text = "Min Std Dev"; ! this.labelMinStdDev.Visible = false; ! // ! // textBoxMinStdDev ! // ! this.textBoxMinStdDev.Location = new System.Drawing.Point(232, 184); ! this.textBoxMinStdDev.Name = "textBoxMinStdDev"; ! this.textBoxMinStdDev.Size = new System.Drawing.Size(56, 20); ! this.textBoxMinStdDev.TabIndex = 34; ! this.textBoxMinStdDev.Text = ""; ! this.textBoxMinStdDev.Visible = false; ! // ! // labelMinPrice ! // ! this.labelMinPrice.Location = new System.Drawing.Point(16, 184); ! this.labelMinPrice.Name = "labelMinPrice"; ! this.labelMinPrice.Size = new System.Drawing.Size(56, 23); ! this.labelMinPrice.TabIndex = 31; ! this.labelMinPrice.Text = "Min Price"; ! this.labelMinPrice.Visible = false; ! // ! // textBoxMinPrice ! // ! this.textBoxMinPrice.Location = new System.Drawing.Point(72, 184); ! this.textBoxMinPrice.Name = "textBoxMinPrice"; ! this.textBoxMinPrice.Size = new System.Drawing.Size(56, 20); ! this.textBoxMinPrice.TabIndex = 30; ! this.textBoxMinPrice.Text = ""; ! this.textBoxMinPrice.Visible = false; ! // ! // labelMarketIndexKey ! // ! this.labelMarketIndexKey.Location = new System.Drawing.Point(16, 208); ! this.labelMarketIndexKey.Name = "labelMarketIndexKey"; ! this.labelMarketIndexKey.Size = new System.Drawing.Size(96, 23); ! this.labelMarketIndexKey.TabIndex = 29; ! this.labelMarketIndexKey.Text = "Market index key:"; ! this.labelMarketIndexKey.Visible = false; ! // ! // textBoxMarketIndex ! // ! this.textBoxMarketIndex.Location = new System.Drawing.Point(120, 208); ! this.textBoxMarketIndex.Name = "textBoxMarketIndex"; ! this.textBoxMarketIndex.Size = new System.Drawing.Size(56, 20); ! this.textBoxMarketIndex.TabIndex = 28; ! this.textBoxMarketIndex.Text = ""; ! this.textBoxMarketIndex.Visible = false; ! // ! // checkBoxASCMode ! // ! this.checkBoxASCMode.Location = new System.Drawing.Point(8, 144); ! this.checkBoxASCMode.Name = "checkBoxASCMode"; ! this.checkBoxASCMode.Size = new System.Drawing.Size(152, 24); ! this.checkBoxASCMode.TabIndex = 27; ! this.checkBoxASCMode.Text = "Order by ASC mode"; ! // ! // label3 ! // ! this.label3.Location = new System.Drawing.Point(16, 96); ! this.label3.Name = "label3"; ! this.label3.Size = new System.Drawing.Size(120, 16); ! this.label3.TabIndex = 26; ! this.label3.Text = "Choose selection rule"; ! // ! // comboBoxAvailableSelectionRules ! // ! this.comboBoxAvailableSelectionRules.Location = new System.Drawing.Point(8, 120); ! this.comboBoxAvailableSelectionRules.Name = "comboBoxAvailableSelectionRules"; ! this.comboBoxAvailableSelectionRules.Size = new System.Drawing.Size(176, 21); ! this.comboBoxAvailableSelectionRules.TabIndex = 25; ! this.comboBoxAvailableSelectionRules.Text = "comboBox1"; ! this.comboBoxAvailableSelectionRules.SelectedValueChanged += new System.EventHandler(this.comboBoxAvailableSelectionRules_SelectedValueChanged); ! // ! // label2 ! // ! this.label2.Location = new System.Drawing.Point(160, 64); ! this.label2.Name = "label2"; ! this.label2.Size = new System.Drawing.Size(152, 24); ! this.label2.TabIndex = 24; ! this.label2.Text = "Max Num of returned tickers"; ! // ! // label1 ! // ! this.label1.Location = new System.Drawing.Point(8, 64); ! this.label1.Name = "label1"; ! this.label1.Size = new System.Drawing.Size(64, 16); ! this.label1.TabIndex = 22; ! this.label1.Text = "GroupID"; ! // ! // textBoxGroupID ! // ! this.textBoxGroupID.Location = new System.Drawing.Point(72, 64); ! this.textBoxGroupID.Name = "textBoxGroupID"; ! this.textBoxGroupID.Size = new System.Drawing.Size(88, 20); ! this.textBoxGroupID.TabIndex = 21; ! this.textBoxGroupID.Text = ""; ! // ! // dateTimePickerLastDate ! // ! this.dateTimePickerLastDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerLastDate.Location = new System.Drawing.Point(240, 24); ! this.dateTimePickerLastDate.Name = "dateTimePickerLastDate"; ! this.dateTimePickerLastDate.Size = new System.Drawing.Size(88, 20); ! this.dateTimePickerLastDate.TabIndex = 15; ! // ! // dateTimePickerFirstDate ! // ! this.dateTimePickerFirstDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerFirstDate.Location = new System.Drawing.Point(72, 24); ! this.dateTimePickerFirstDate.Name = "dateTimePickerFirstDate"; ! this.dateTimePickerFirstDate.Size = new System.Drawing.Size(88, 20); ! this.dateTimePickerFirstDate.TabIndex = 13; ! // ! // buttonSelectTickers ! // ! this.buttonSelectTickers.Location = new System.Drawing.Point(136, 296); ! this.buttonSelectTickers.Name = "buttonSelectTickers"; ! this.buttonSelectTickers.Size = new System.Drawing.Size(104, 24); ! this.buttonSelectTickers.TabIndex = 3; ! this.buttonSelectTickers.Text = "Select Tickers"; ! this.buttonSelectTickers.Click += new System.EventHandler(this.buttonSelectTickers_Click); ! // ! // dataGrid1 ! // ! this.dataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None; ! this.dataGrid1.DataMember = ""; ! this.dataGrid1.Dock = System.Windows.Forms.DockStyle.Left; ! this.dataGrid1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); ! this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dataGrid1.Name = "dataGrid1"; ! this.dataGrid1.Size = new System.Drawing.Size(432, 478); ! this.dataGrid1.TabIndex = 2; ! // ! // textBoxNumDaysBetweenEachClose ! // ! this.textBoxNumDaysBetweenEachClose.Location = new System.Drawing.Point(328, 208); ! this.textBoxNumDaysBetweenEachClose.Name = "textBoxNumDaysBetweenEachClose"; ! this.textBoxNumDaysBetweenEachClose.Size = new System.Drawing.Size(32, 20); ! this.textBoxNumDaysBetweenEachClose.TabIndex = 39; ! this.textBoxNumDaysBetweenEachClose.Text = ""; ! this.textBoxNumDaysBetweenEachClose.Visible = false; ! // ! // labelNumDaysBetweenEachClose ! // ! this.labelNumDaysBetweenEachClose.Location = new System.Drawing.Point(184, 208); ! this.labelNumDaysBetweenEachClose.Name = "labelNumDaysBetweenEachClose"; ! this.labelNumDaysBetweenEachClose.Size = new System.Drawing.Size(144, 23); ! this.labelNumDaysBetweenEachClose.TabIndex = 40; ! this.labelNumDaysBetweenEachClose.Text = "Num days betw. each close"; ! this.labelNumDaysBetweenEachClose.Visible = false; ! // ! // TickerSelectorForm ! // ! this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(804, 478); ! this.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.splitter1, ! this.panel2, ! this.dataGrid1}); ! this.Name = "TickerSelectorForm"; ! this.Text = "Ticker Selector"; ! this.panel2.ResumeLayout(false); ! this.groupBoxSelectionRule.ResumeLayout(false); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit(); ! this.ResumeLayout(false); ! } #endregion --- 132,497 ---- /// </summary> private void InitializeComponent() { ! this.components = new System.ComponentModel.Container(); ! this.splitter1 = new System.Windows.Forms.Splitter(); ! this.textBoxMaxPrice = new System.Windows.Forms.TextBox(); ! this.labelMaxPrice = new System.Windows.Forms.Label(); ! this.label5 = new System.Windows.Forms.Label(); ! this.labelMaxStdDev = new System.Windows.Forms.Label(); ! this.label7 = new System.Windows.Forms.Label(); ! this.textBoxMaxNumOfReturnedTickers = new System.Windows.Forms.TextBox(); ! this.panel2 = new System.Windows.Forms.Panel(); ! this.groupBoxSelectionRule = new System.Windows.Forms.GroupBox(); ! this.labelTextBoxPopulationSize = new System.Windows.Forms.Label(); ! this.labelTextBoxGenerations = new System.Windows.Forms.Label(); ! this.textBoxGenerationsForGeneticOptimizer = new System.Windows.Forms.TextBox(); ! this.textBoxPopulationSizeForGeneticOptimizer = new System.Windows.Forms.TextBox(); ! this.checkBoxAddIndexToOutputTable = new System.Windows.Forms.CheckBox(); ! this.checkBoxOnlyWithAtLeastOneWinningDay = new System.Windows.Forms.CheckBox(); ! this.textBoxMaxStdDev = new System.Windows.Forms.TextBox(); ! this.labelMinStdDev = new System.Windows.Forms.Label(); ! this.textBoxMinStdDev = new System.Windows.Forms.TextBox(); ! this.labelMinPrice = new System.Windows.Forms.Label(); ! this.textBoxMinPrice = new System.Windows.Forms.TextBox(); ! this.labelMarketIndexKey = new System.Windows.Forms.Label(); ! this.textBoxMarketIndex = new System.Windows.Forms.TextBox(); ! this.checkBoxASCMode = new System.Windows.Forms.CheckBox(); ! this.label3 = new System.Windows.Forms.Label(); ! this.comboBoxAvailableSelectionRules = new System.Windows.Forms.ComboBox(); ! this.label2 = new System.Windows.Forms.Label(); ! this.label1 = new System.Windows.Forms.Label(); ! this.textBoxGroupID = new System.Windows.Forms.TextBox(); ! this.dateTimePickerLastDate = new System.Windows.Forms.DateTimePicker(); ! this.dateTimePickerFirstDate = new System.Windows.Forms.DateTimePicker(); ! this.buttonSelectTickers = new System.Windows.Forms.Button(); ! this.dataGrid1 = new System.Windows.Forms.DataGrid(); ! this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ! this.panel2.SuspendLayout(); ! this.groupBoxSelectionRule.SuspendLayout(); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit(); ! this.SuspendLayout(); ! // ! // splitter1 ! // ! this.splitter1.BackColor = System.Drawing.SystemColors.Highlight; ! this.splitter1.Location = new System.Drawing.Point(432, 0); ! this.splitter1.Name = "splitter1"; ! this.splitter1.Size = new System.Drawing.Size(3, 478); ! this.splitter1.TabIndex = 8; ! this.splitter1.TabStop = false; ! // ! // textBoxMaxPrice ! // ! this.textBoxMaxPrice.Location = new System.Drawing.Point(69, 202); ! this.textBoxMaxPrice.Name = "textBoxMaxPrice"; ! this.textBoxMaxPrice.Size = new System.Drawing.Size(56, 21); ! this.textBoxMaxPrice.TabIndex = 32; ! this.textBoxMaxPrice.Visible = false; ! // ! // labelMaxPrice ! // ! this.labelMaxPrice.Location = new System.Drawing.Point(13, 202); ! this.labelMaxPrice.Name = "labelMaxPrice"; ! this.labelMaxPrice.Size = new System.Drawing.Size(56, 14); ! this.labelMaxPrice.TabIndex = 33; ! this.labelMaxPrice.Text = "Max Price"; ! this.labelMaxPrice.Visible = false; ! // ! // label5 ! // ! this.label5.Location = new System.Drawing.Point(8, 16); ! this.label5.Name = "label5"; ! this.label5.Size = new System.Drawing.Size(64, 21); ! this.label5.TabIndex = 18; ! this.label5.Text = "First Date"; ! // ! // labelMaxStdDev ! // ! this.labelMaxStdDev.Location = new System.Drawing.Point(149, 202); ! this.labelMaxStdDev.Name = "labelMaxStdDev"; ! this.labelMaxStdDev.Size = new System.Drawing.Size(80, 14); ! this.labelMaxStdDev.TabIndex = 37; ! this.labelMaxStdDev.Text = "Max Std Dev"; ! this.labelMaxStdDev.Visible = false; ! // ! // label7 ! // ! this.label7.Location = new System.Drawing.Point(168, 16); ! this.label7.Name = "label7"; ! this.label7.Size = new System.Drawing.Size(64, 21); ! this.label7.TabIndex = 20; ! this.label7.Text = "Last Date"; ! // ! // textBoxMaxNumOfReturnedTickers ! // ! this.textBoxMaxNumOfReturnedTickers.Location = new System.Drawing.Point(312, 41); ! this.textBoxMaxNumOfReturnedTickers.Name = "textBoxMaxNumOfReturnedTickers"; ! this.textBoxMaxNumOfReturnedTickers.Size = new System.Drawing.Size(48, 21); ! this.textBoxMaxNumOfReturnedTickers.TabIndex = 23; ! // ! // panel2 ! // ! this.panel2.Controls.Add(this.groupBoxSelectionRule); ! this.panel2.Controls.Add(this.buttonSelectTickers); ! this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; ! this.panel2.ForeColor = System.Drawing.SystemColors.ControlText; ! this.panel2.Location = new System.Drawing.Point(432, 0); ! this.panel2.Name = "panel2"; ! this.panel2.Size = new System.Drawing.Size(372, 478); ! this.panel2.TabIndex = 7; ! // ! // groupBoxSelectionRule ! // ! this.groupBoxSelectionRule.Controls.Add(this.labelTextBoxPopulationSize); ! this.groupBoxSelectionRule.Controls.Add(this.labelTextBoxGenerations); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxGenerationsForGeneticOptimizer); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxPopulationSizeForGeneticOptimizer); ! this.groupBoxSelectionRule.Controls.Add(this.checkBoxAddIndexToOutputTable); ! this.groupBoxSelectionRule.Controls.Add(this.checkBoxOnlyWithAtLeastOneWinningDay); ! this.groupBoxSelectionRule.Controls.Add(this.labelMaxStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMaxStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.labelMinStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMinStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.labelMaxPrice); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMaxPrice); ! this.groupBoxSelectionRule.Controls.Add(this.labelMinPrice); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMinPrice); ! this.groupBoxSelectionRule.Controls.Add(this.labelMarketIndexKey); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMarketIndex); ! this.groupBoxSelectionRule.Controls.Add(this.checkBoxASCMode); ! this.groupBoxSelectionRule.Controls.Add(this.label3); ! this.groupBoxSelectionRule.Controls.Add(this.comboBoxAvailableSelectionRules); ! this.groupBoxSelectionRule.Controls.Add(this.label2); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMaxNumOfReturnedTickers); ! this.groupBoxSelectionRule.Controls.Add(this.label1); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxGroupID); ! this.groupBoxSelectionRule.Controls.Add(this.label7); ! this.groupBoxSelectionRule.Controls.Add(this.label5); ! this.groupBoxSelectionRule.Controls.Add(this.dateTimePickerLastDate); ! this.groupBoxSelectionRule.Controls.Add(this.dateTimePickerFirstDate); ! this.groupBoxSelectionRule.Location = new System.Drawing.Point(8, 10); ! this.groupBoxSelectionRule.Name = "groupBoxSelectionRule"; ! this.groupBoxSelectionRule.Size = new System.Drawing.Size(361, 272); ! this.groupBoxSelectionRule.TabIndex = 14; ! this.groupBoxSelectionRule.TabStop = false; ! this.groupBoxSelectionRule.Text = "Single Selection rule"; ! // ! // labelTextBoxPopulationSize ! // ! this.labelTextBoxPopulationSize.Location = new System.Drawing.Point(192, 227); ! this.labelTextBoxPopulationSize.Name = "labelTextBoxPopulationSize"; ! this.labelTextBoxPopulationSize.Size = new System.Drawing.Size(70, 14); ! this.labelTextBoxPopulationSize.TabIndex = 45; ! this.labelTextBoxPopulationSize.Text = "Pop. Size"; ! this.labelTextBoxPopulationSize.Visible = false; ! // ! // labelTextBoxGenerations ! // ! this.labelTextBoxGenerations.Location = new System.Drawing.Point(16, 227); ! this.labelTextBoxGenerations.Name = "labelTextBoxGenerations"; ! this.labelTextBoxGenerations.Size = new System.Drawing.Size(73, 15); ! this.labelTextBoxGenerations.TabIndex = 44; ! this.labelTextBoxGenerations.Text = "Generations"; ! this.labelTextBoxGenerations.Visible = false; ! // ! // textBoxGenerationsForGeneticOptimizer ! // ! this.textBoxGenerationsForGeneticOptimizer.Location = new System.Drawing.Point(117, 228); ! this.textBoxGenerationsForGeneticOptimizer.Name = "textBoxGenerationsForGeneticOptimizer"; ! this.textBoxGenerationsForGeneticOptimizer.Size = new System.Drawing.Size(56, 21); ! this.textBoxGenerationsForGeneticOptimizer.TabIndex = 43; ! this.textBoxGenerationsForGeneticOptimizer.Visible = false; ! // ! // textBoxPopulationSizeForGeneticOptimizer ! // ! this.textBoxPopulationSizeForGeneticOptimizer.Location = new System.Drawing.Point(269, 227); ! this.textBoxPopulationSizeForGeneticOptimizer.Name = "textBoxPopulationSizeForGeneticOptimizer"; ! this.textBoxPopulationSizeForGeneticOptimizer.Size = new System.Drawing.Size(56, 21); ! this.textBoxPopulationSizeForGeneticOptimizer.TabIndex = 42; ! this.textBoxPopulationSizeForGeneticOptimizer.Visible = false; ! // ! // checkBoxAddIndexToOutputTable ! // ! this.checkBoxAddIndexToOutputTable.Location = new System.Drawing.Point(11, 131); ! this.checkBoxAddIndexToOutputTable.Name = "checkBoxAddIndexToOutputTable"; ! this.checkBoxAddIndexToOutputTable.Size = new System.Drawing.Size(164, 15); ! this.checkBoxAddIndexToOutputTable.TabIndex = 41; ! this.checkBoxAddIndexToOutputTable.Text = "Add index to Output Table"; ! this.toolTip1.SetToolTip(this.checkBoxAddIndexToOutputTable, "Check if you want to filter only tickers with at least one winning day"); ! this.checkBoxAddIndexToOutputTable.Visible = false; ! // ! // checkBoxOnlyWithAtLeastOneWinningDay ! // ! this.checkBoxOnlyWithAtLeastOneWinningDay.Location = new System.Drawing.Point(195, 113); ! this.checkBoxOnlyWithAtLeastOneWinningDay.Name = "checkBoxOnlyWithAtLeastOneWinningDay"; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Size = new System.Drawing.Size(152, 16); ! this.checkBoxOnlyWithAtLeastOneWinningDay.TabIndex = 38; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Text = "Exclude \"pure\" losers"; ! this.toolTip1.SetToolTip(this.checkBoxOnlyWithAtLeastOneWinningDay, "Check if you want to filter only tickers with at least one winning day"); ! this.checkBoxOnlyWithAtLeastOneWinningDay.Visible = false; ! // ! // textBoxMaxStdDev ! // ! this.textBoxMaxStdDev.Location = new System.Drawing.Point(229, 202); ! this.textBoxMaxStdDev.Name = "textBoxMaxStdDev"; ! this.textBoxMaxStdDev.Size = new System.Drawing.Size(56, 21); ! this.textBoxMaxStdDev.TabIndex = 36; ! this.textBoxMaxStdDev.Visible = false; ! // ! // labelMinStdDev ! // ! this.labelMinStdDev.Location = new System.Drawing.Point(152, 149); ! this.labelMinStdDev.Name = "labelMinStdDev"; ! this.labelMinStdDev.Size = new System.Drawing.Size(72, 14); ! this.labelMinStdDev.TabIndex = 35; ! this.labelMinStdDev.Text = "Min Std Dev"; ! this.labelMinStdDev.Visible = false; ! // ! // textBoxMinStdDev ! // ! this.textBoxMinStdDev.Location = new System.Drawing.Point(232, 149); ! this.textBoxMinStdDev.Name = "textBoxMinStdDev"; ! this.textBoxMinStdDev.Size = new System.Drawing.Size(56, 21); ! this.textBoxMinStdDev.TabIndex = 34; ! this.textBoxMinStdDev.Visible = false; ! // ! // labelMinPrice ! // ! this.labelMinPrice.Location = new System.Drawing.Point(16, 149); ! this.labelMinPrice.Name = "labelMinPrice"; ! this.labelMinPrice.Size = new System.Drawing.Size(56, 14); ! this.labelMinPrice.TabIndex = 31; ! this.labelMinPrice.Text = "Min Price"; ! this.labelMinPrice.Visible = false; ! // ! // textBoxMinPrice ! // ! this.textBoxMinPrice.Location = new System.Drawing.Point(72, 149); ! this.textBoxMinPrice.Name = "textBoxMinPrice"; ! this.textBoxMinPrice.Size = new System.Drawing.Size(56, 21); ! this.textBoxMinPrice.TabIndex = 30; ! this.textBoxMinPrice.Visible = false; ! // ! // labelMarketIndexKey ! // ! this.labelMarketIndexKey.Location = new System.Drawing.Point(13, 176); ! this.labelMarketIndexKey.Name = "labelMarketIndexKey"; ! this.labelMarketIndexKey.Size = new System.Drawing.Size(96, 16); ! this.labelMarketIndexKey.TabIndex = 29; ! this.labelMarketIndexKey.Text = "Market index key:"; ! this.labelMarketIndexKey.Visible = false; ! // ! // textBoxMarketIndex ! // ! this.textBoxMarketIndex.Location = new System.Drawing.Point(117, 176); ! this.textBoxMarketIndex.Name = "textBoxMarketIndex"; ! this.textBoxMarketIndex.Size = new System.Drawing.Size(56, 21); ! this.textBoxMarketIndex.TabIndex = 28; ! this.textBoxMarketIndex.Visible = false; ! // ! // checkBoxASCMode ! // ! this.checkBoxASCMode.Location = new System.Drawing.Point(11, 113); ! this.checkBoxASCMode.Name = "checkBoxASCMode"; ! this.checkBoxASCMode.Size = new System.Drawing.Size(152, 16); ! this.checkBoxASCMode.TabIndex = 27; ! this.checkBoxASCMode.Text = "Order by ASC mode"; ! // ! // label3 ! // ! this.label3.Location = new System.Drawing.Point(16, 68); ! this.label3.Name = "label3"; ! this.label3.Size = new System.Drawing.Size(120, 11); ! this.label3.TabIndex = 26; ! this.label3.Text = "Choose selection rule"; ! // ! // comboBoxAvailableSelectionRules ! // ! this.comboBoxAvailableSelectionRules.Location = new System.Drawing.Point(11, 87); ! this.comboBoxAvailableSelectionRules.Name = "comboBoxAvailableSelectionRules"; ! this.comboBoxAvailableSelectionRules.Size = new System.Drawing.Size(176, 21); ! this.comboBoxAvailableSelectionRules.TabIndex = 25; ! this.comboBoxAvailableSelectionRules.Text = "comboBox1"; ! this.comboBoxAvailableSelectionRules.SelectedValueChanged += new System.EventHandler(this.comboBoxAvailableSelectionRules_SelectedValueChanged); ! // ! // label2 ! // ! this.label2.Location = new System.Drawing.Point(160, 41); ! this.label2.Name = "label2"; ! this.label2.Size = new System.Drawing.Size(152, 16); ! this.label2.TabIndex = 24; ! this.label2.Text = "Max Num of returned tickers"; ! // ! // label1 ! // ! this.label1.Location = new System.Drawing.Point(8, 41); ! this.label1.Name = "label1"; ! this.label1.Size = new System.Drawing.Size(64, 21); ! this.label1.TabIndex = 22; ! this.label1.Text = "GroupID"; ! // ! // textBoxGroupID ! // ! this.textBoxGroupID.Location = new System.Drawing.Point(72, 41); ! this.textBoxGroupID.Name = "textBoxGroupID"; ! this.textBoxGroupID.Size = new System.Drawing.Size(88, 21); ! this.textBoxGroupID.TabIndex = 21; ! // ! // dateTimePickerLastDate ! // ! this.dateTimePickerLastDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerLastDate.Location = new System.Drawing.Point(240, 16); ! this.dateTimePickerLastDate.Name = "dateTimePickerLastDate"; ! this.dateTimePickerLastDate.Size = new System.Drawing.Size(88, 21); ! this.dateTimePickerLastDate.TabIndex = 15; ! // ! // dateTimePickerFirstDate ! // ! this.dateTimePickerFirstDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerFirstDate.Location = new System.Drawing.Point(72, 16); ! this.dateTimePickerFirstDate.Name = "dateTimePickerFirstDate"; ! this.dateTimePickerFirstDate.Size = new System.Drawing.Size(88, 21); ! this.dateTimePickerFirstDate.TabIndex = 13; ! // ! // buttonSelectTickers ! // ! this.buttonSelectTickers.Location = new System.Drawing.Point(148, 301); ! this.buttonSelectTickers.Name = "buttonSelectTickers"; ! this.buttonSelectTickers.Size = new System.Drawing.Size(104, 31); ! this.buttonSelectTickers.TabIndex = 3; ! this.buttonSelectTickers.Text = "Select Tickers"; ! this.buttonSelectTickers.Click += new System.EventHandler(this.buttonSelectTickers_Click); ! // ! // dataGrid1 ! // ! this.dataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None; ! this.dataGrid1.DataMember = ""; ! this.dataGrid1.Dock = System.Windows.Forms.DockStyle.Left; ! this.dataGrid1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); ! this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dataGrid1.Location = new System.Drawing.Point(0, 0); ! this.dataGrid1.Name = "dataGrid1"; ! this.dataGrid1.Size = new System.Drawing.Size(432, 478); ! this.dataGrid1.TabIndex = 2; ! // ! // TickerSelectorForm ! // ! this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); ! this.ClientSize = new System.Drawing.Size(804, 478); ! this.Controls.Add(this.splitter1); ! this.Controls.Add(this.panel2); ! this.Controls.Add(this.dataGrid1); ! this.Name = "TickerSelectorForm"; ! this.Text = "Ticker Selector"; ! this.panel2.ResumeLayout(false); ! this.groupBoxSelectionRule.ResumeLayout(false); ! this.groupBoxSelectionRule.PerformLayout(); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit(); ! this.ResumeLayout(false); } + private System.Windows.Forms.Label labelTextBoxPopulationSize; + private System.Windows.Forms.Label labelTextBoxGenerations; + private System.Windows.Forms.CheckBox checkBoxAddIndexToOutputTable; + private System.Windows.Forms.TextBox textBoxPopulationSizeForGeneticOptimizer; + private System.Windows.Forms.TextBox textBoxGenerationsForGeneticOptimizer; #endregion *************** *** 691,700 **** this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text), ! Int32.Parse(this.textBoxNumDaysBetweenEachClose.Text)); else returnValue = new SelectorByCloseToCloseCorrelationToBenchmark(this.tableOfSelectedTickers, this.textBoxMarketIndex.Text, this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text), ! Int32.Parse(this.textBoxNumDaysBetweenEachClose.Text)); } return returnValue; --- 719,743 ---- this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text), ! false); else returnValue = new SelectorByCloseToCloseCorrelationToBenchmark(this.tableOfSelectedTickers, this.textBoxMarketIndex.Text, this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text), ! false); ! } ! else if (this.comboBoxAvailableSelectionRules.Text == "MaxLinearIndipendence") ! { ! if(this.textBoxGroupID.Text != "") ! returnValue = new SelectorByMaxLinearIndipendence(this.textBoxGroupID.Text, ! this.dateTimePickerFirstDate.Value,this.dateTimePickerLastDate.Value, ! Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text),Int32.Parse(this.textBoxGenerationsForGeneticOptimizer.Text), ! Int32.Parse(this.textBoxPopulationSizeForGeneticOptimizer.Text), ! this.textBoxMarketIndex.Text); ! else ! returnValue = new SelectorByMaxLinearIndipendence(this.tableOfSelectedTickers, ! this.dateTimePickerFirstDate.Value,this.dateTimePickerLastDate.Value, ! Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text),Int32.Parse(this.textBoxGenerationsForGeneticOptimizer.Text), ! Int32.Parse(this.textBoxPopulationSizeForGeneticOptimizer.Text), ! this.textBoxMarketIndex.Text); } return returnValue; *************** *** 711,714 **** --- 754,758 ---- this.checkBoxASCMode.Enabled = showControls; this.checkBoxOnlyWithAtLeastOneWinningDay.Enabled = showControls; + } private void setVisibilityForControls_AverageRawOpenPrice(bool showControls) *************** *** 726,737 **** } ! private void setVisibilityForControls_NumDaysBetweenEachClose(bool showControls) { - this.labelNumDaysBetweenEachClose.Visible = showControls; - this.textBoxNumDaysBetweenEachClose.Visible = showControls; this.labelMarketIndexKey.Visible = showControls; this.textBoxMarketIndex.Visible = showControls; } private void comboBoxAvailableSelectionRules_SelectedValueChanged(object sender, System.EventArgs e) { --- 770,790 ---- } ! private void setVisibilityForControls_CloseToCloseCorrelationToBenchmark(bool showControls) { this.labelMarketIndexKey.Visible = showControls; this.textBoxMarketIndex.Visible = showControls; + this.checkBoxAddIndexToOutputTable.Visible = showControls; } + private void setVisibilityForControls_MaxLinearIndipendence(bool showControls) + { + this.textBoxMarketIndex.Visible = showControls; + this.labelMarketIndexKey.Visible = showControls; + this.labelTextBoxPopulationSize.Visible = showControls; + this.textBoxPopulationSizeForGeneticOptimizer.Visible = showControls; + this.labelTextBoxGenerations.Visible = showControls; + this.textBoxGenerationsForGeneticOptimizer.Visible = showControls; + } + private void comboBoxAvailableSelectionRules_SelectedValueChanged(object sender, System.EventArgs e) { *************** *** 740,746 **** this.comboBoxAvailableSelectionRules.Text == "OpenToCloseCorrelationToBenchmark") { ! this.setVisibilityForControls_NumDaysBetweenEachClose(false); this.setVisibilityForControls_AverageRawOpenPrice(false); this.setVisibilityForControls_WinningOpenToClose(false); this.setVisibilityForControls_QuotedAtEachMarketDay(true); } --- 793,800 ---- this.comboBoxAvailableSelectionRules.Text == "OpenToCloseCorrelationToBenchmark") { ! this.setVisibilityForControls_CloseToCloseCorrelationToBenchmark(false); this.setVisibilityForControls_AverageRawOpenPrice(false); this.setVisibilityForControls_WinningOpenToClose(false); + this.setVisibilityForControls_MaxLinearIndipendence(false); this.setVisibilityForControls_QuotedAtEachMarketDay(true); } *************** *** 748,754 **** { this.textBoxMarketIndex.Text = ""; ! this.setVisibilityForControls_NumDaysBetweenEachClose(false); this.setVisibilityForControls_QuotedAtEachMarketDay(false); this.setVisibilityForControls_WinningOpenToClose(false); this.setVisibilityForControls_AverageRawOpenPrice(true); } --- 802,809 ---- { this.textBoxMarketIndex.Text = ""; ! this.setVisibilityForControls_CloseToCloseCorrelationToBenchmark(false); this.setVisibilityForControls_QuotedAtEachMarketDay(false); this.setVisibilityForControls_WinningOpenToClose(false); + this.setVisibilityForControls_MaxLinearIndipendence(false); this.setVisibilityForControls_AverageRawOpenPrice(true); } *************** *** 756,762 **** { this.textBoxMarketIndex.Text = ""; ! this.setVisibilityForControls_NumDaysBetweenEachClose(false); this.setVisibilityForControls_QuotedAtEachMarketDay(false); this.setVisibilityForControls_AverageRawOpenPrice(false); this.setVisibilityForControls_WinningOpenToClose(true); } --- 811,818 ---- { this.textBoxMarketIndex.Text = ""; ! this.setVisibilityForControls_CloseToCloseCorrelationToBenchmark(false); this.setVisibilityForControls_QuotedAtEachMarketDay(false); this.setVisibilityForControls_AverageRawOpenPrice(false); + this.setVisibilityForControls_MaxLinearIndipendence(false); this.setVisibilityForControls_WinningOpenToClose(true); } *************** *** 766,778 **** this.setVisibilityForControls_AverageRawOpenPrice(false); this.setVisibilityForControls_WinningOpenToClose(false); ! this.setVisibilityForControls_NumDaysBetweenEachClose(true); } else { this.textBoxMarketIndex.Text = ""; ! this.setVisibilityForControls_QuotedAtEachMarketDay(false); ! this.setVisibilityForControls_AverageRawOpenPrice(false); this.setVisibilityForControls_WinningOpenToClose(false); ! this.setVisibilityForControls_NumDaysBetweenEachClose(false); this.checkBoxASCMode.Enabled = true; } --- 822,844 ---- this.setVisibilityForControls_AverageRawOpenPrice(false); this.setVisibilityForControls_WinningOpenToClose(false); ! this.setVisibilityForControls_MaxLinearIndipendence(false); ! this.setVisibilityForControls_CloseToCloseCorrelationToBenchmark(true); ! } ! else if(this.comboBoxAvailableSelectionRules.Text == "MaxLinearIndipendence") ! { ! this.setVisibilityForControls_QuotedAtEachMarketDay(false); ! this.setVisibilityForControls_AverageRawOpenPrice(false); ! this.setVisibilityForControls_WinningOpenToClose(false); ! this.setVisibilityForControls_CloseToCloseCorrelationToBenchmark(false); ! this.setVisibilityForControls_MaxLinearIndipendence(true); } else { this.textBoxMarketIndex.Text = ""; ! this.setVisibilityForControls_AverageRawOpenPrice(false); this.setVisibilityForControls_WinningOpenToClose(false); ! this.setVisibilityForControls_CloseToCloseCorrelationToBenchmark(false); ! this.setVisibilityForControls_MaxLinearIndipendence(false); ! this.setVisibilityForControls_QuotedAtEachMarketDay(true); this.checkBoxASCMode.Enabled = true; } |