[Quantproject-developers] QuantProject/b7_Scripts/WalkForwardTesting/LinearCombination TestDisplayer
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-08-02 23:10:43
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/LinearCombination In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14601/b7_Scripts/WalkForwardTesting/LinearCombination Modified Files: TestDisplayer.cs Log Message: Added radio buttons to switch between daily and weekly strategy Index: TestDisplayer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/LinearCombination/TestDisplayer.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestDisplayer.cs 29 Jul 2005 13:32:34 -0000 1.3 --- TestDisplayer.cs 2 Aug 2005 23:10:35 -0000 1.4 *************** *** 46,49 **** --- 46,51 ---- private ArrayList bestGenomes; private System.Windows.Forms.Label label1; + private System.Windows.Forms.RadioButton radioButtonOpenToCloseDaily; + private System.Windows.Forms.RadioButton radioButtonOpenToCloseWeekly; private GenomeRepresentation lastSelectedGenomeRepresentation; *************** *** 100,103 **** --- 102,107 ---- this.dtpLastDate = new System.Windows.Forms.DateTimePicker(); this.label1 = new System.Windows.Forms.Label(); + this.radioButtonOpenToCloseDaily = new System.Windows.Forms.RadioButton(); + this.radioButtonOpenToCloseWeekly = new System.Windows.Forms.RadioButton(); ((System.ComponentModel.ISupportInitialize)(this.dgBestGenomes)).BeginInit(); this.SuspendLayout(); *************** *** 108,114 **** this.dgBestGenomes.Dock = System.Windows.Forms.DockStyle.Bottom; this.dgBestGenomes.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dgBestGenomes.Location = new System.Drawing.Point(0, 117); this.dgBestGenomes.Name = "dgBestGenomes"; ! this.dgBestGenomes.Size = new System.Drawing.Size(496, 224); this.dgBestGenomes.TabIndex = 0; this.dgBestGenomes.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgBestGenomes_MouseUp); --- 112,118 ---- this.dgBestGenomes.Dock = System.Windows.Forms.DockStyle.Bottom; this.dgBestGenomes.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dgBestGenomes.Location = new System.Drawing.Point(0, 125); this.dgBestGenomes.Name = "dgBestGenomes"; ! this.dgBestGenomes.Size = new System.Drawing.Size(520, 248); this.dgBestGenomes.TabIndex = 0; this.dgBestGenomes.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgBestGenomes_MouseUp); *************** *** 136,144 **** "to preserve date displacements and backtest."; // // TestDisplayer // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(496, 341); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label1, this.dtpLastDate, --- 140,168 ---- "to preserve date displacements and backtest."; // + // radioButtonOpenToCloseDaily + // + this.radioButtonOpenToCloseDaily.Checked = true; + this.radioButtonOpenToCloseDaily.Location = new System.Drawing.Point(64, 96); + this.radioButtonOpenToCloseDaily.Name = "radioButtonOpenToCloseDaily"; + this.radioButtonOpenToCloseDaily.Size = new System.Drawing.Size(144, 24); + this.radioButtonOpenToCloseDaily.TabIndex = 4; + this.radioButtonOpenToCloseDaily.TabStop = true; + this.radioButtonOpenToCloseDaily.Text = "Open To Close Daily"; + // + // radioButtonOpenToCloseWeekly + // + this.radioButtonOpenToCloseWeekly.Location = new System.Drawing.Point(224, 96); + this.radioButtonOpenToCloseWeekly.Name = "radioButtonOpenToCloseWeekly"; + this.radioButtonOpenToCloseWeekly.Size = new System.Drawing.Size(144, 24); + this.radioButtonOpenToCloseWeekly.TabIndex = 5; + this.radioButtonOpenToCloseWeekly.Text = "Open To Close Weekly"; + // // TestDisplayer // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(520, 373); this.Controls.AddRange(new System.Windows.Forms.Control[] { + this.radioButtonOpenToCloseWeekly, + this.radioButtonOpenToCloseDaily, this.label1, this.dtpLastDate, *************** *** 199,203 **** LinearCombinationTest linearCombinationTest = new LinearCombinationTest( this.dtpFirstDate.Value , ! this.dtpLastDate.Value , signedTickers ); linearCombinationTest.Run(); this.lastSelectedGenomeRepresentation = genomeRepresentation; --- 223,228 ---- LinearCombinationTest linearCombinationTest = new LinearCombinationTest( this.dtpFirstDate.Value , ! this.dtpLastDate.Value , signedTickers , ! this.radioButtonOpenToCloseDaily.Checked ); linearCombinationTest.Run(); this.lastSelectedGenomeRepresentation = genomeRepresentation; |