[Quantproject-developers] QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2006-07-30 13:43:45
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10200/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger Modified Files: WFLagDebugGenome.cs Log Message: Now two datagrid are used to display driving weighted positions and portfolio weighted positions. Previous version used two labels to display driving signed tickers and portfolio signed tickers. Index: WFLagDebugGenome.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger/WFLagDebugGenome.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WFLagDebugGenome.cs 22 Jul 2006 20:32:42 -0000 1.3 --- WFLagDebugGenome.cs 30 Jul 2006 13:43:42 -0000 1.4 *************** *** 57,62 **** private System.Windows.Forms.Label labelDrivingPositions; private System.Windows.Forms.Label labelPortfolioPositions; ! private System.Windows.Forms.Label labelDrivingPositionsContent; ! private System.Windows.Forms.Label labelPortfolioPositionsContent; /// <summary> /// Required designer variable. --- 57,62 ---- private System.Windows.Forms.Label labelDrivingPositions; private System.Windows.Forms.Label labelPortfolioPositions; ! private System.Windows.Forms.DataGrid dataGridDrivingPositions; ! private System.Windows.Forms.DataGrid dataGridPortfolioPositions; /// <summary> /// Required designer variable. *************** *** 110,115 **** this.labelDrivingPositions = new System.Windows.Forms.Label(); this.labelPortfolioPositions = new System.Windows.Forms.Label(); ! this.labelDrivingPositionsContent = new System.Windows.Forms.Label(); ! this.labelPortfolioPositionsContent = new System.Windows.Forms.Label(); this.SuspendLayout(); // --- 110,117 ---- this.labelDrivingPositions = new System.Windows.Forms.Label(); this.labelPortfolioPositions = new System.Windows.Forms.Label(); ! this.dataGridDrivingPositions = new System.Windows.Forms.DataGrid(); ! this.dataGridPortfolioPositions = new System.Windows.Forms.DataGrid(); ! ((System.ComponentModel.ISupportInitialize)(this.dataGridDrivingPositions)).BeginInit(); ! ((System.ComponentModel.ISupportInitialize)(this.dataGridPortfolioPositions)).BeginInit(); this.SuspendLayout(); // *************** *** 134,138 **** // TestPostSample // ! this.TestPostSample.Location = new System.Drawing.Point(32, 144); this.TestPostSample.Name = "TestPostSample"; this.TestPostSample.Size = new System.Drawing.Size(160, 32); --- 136,140 ---- // TestPostSample // ! this.TestPostSample.Location = new System.Drawing.Point(32, 304); this.TestPostSample.Name = "TestPostSample"; this.TestPostSample.Size = new System.Drawing.Size(160, 32); *************** *** 143,147 **** // PostSampleDays // ! this.PostSampleDays.Location = new System.Drawing.Point(256, 152); this.PostSampleDays.Name = "PostSampleDays"; this.PostSampleDays.TabIndex = 3; --- 145,149 ---- // PostSampleDays // ! this.PostSampleDays.Location = new System.Drawing.Point(256, 312); this.PostSampleDays.Name = "PostSampleDays"; this.PostSampleDays.TabIndex = 3; *************** *** 150,154 **** // testPreSample // ! this.testPreSample.Location = new System.Drawing.Point(32, 216); this.testPreSample.Name = "testPreSample"; this.testPreSample.Size = new System.Drawing.Size(160, 32); --- 152,156 ---- // testPreSample // ! this.testPreSample.Location = new System.Drawing.Point(32, 376); this.testPreSample.Name = "testPreSample"; this.testPreSample.Size = new System.Drawing.Size(160, 32); *************** *** 159,163 **** // PreSampleDays // ! this.PreSampleDays.Location = new System.Drawing.Point(256, 224); this.PreSampleDays.Name = "PreSampleDays"; this.PreSampleDays.TabIndex = 5; --- 161,165 ---- // PreSampleDays // ! this.PreSampleDays.Location = new System.Drawing.Point(256, 384); this.PreSampleDays.Name = "PreSampleDays"; this.PreSampleDays.TabIndex = 5; *************** *** 166,171 **** // labelDrivingPositions // ! this.labelDrivingPositions.Location = new System.Drawing.Point(272, 16); this.labelDrivingPositions.Name = "labelDrivingPositions"; this.labelDrivingPositions.TabIndex = 6; this.labelDrivingPositions.Text = "Driving Pos."; --- 168,174 ---- // labelDrivingPositions // ! this.labelDrivingPositions.Location = new System.Drawing.Point(208, 16); this.labelDrivingPositions.Name = "labelDrivingPositions"; + this.labelDrivingPositions.Size = new System.Drawing.Size(72, 23); this.labelDrivingPositions.TabIndex = 6; this.labelDrivingPositions.Text = "Driving Pos."; *************** *** 174,204 **** // labelPortfolioPositions // ! this.labelPortfolioPositions.Location = new System.Drawing.Point(272, 64); this.labelPortfolioPositions.Name = "labelPortfolioPositions"; this.labelPortfolioPositions.TabIndex = 7; this.labelPortfolioPositions.Text = "Portfolio Pos."; this.labelPortfolioPositions.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // ! // labelDrivingPositionsContent // ! this.labelDrivingPositionsContent.Location = new System.Drawing.Point(384, 16); ! this.labelDrivingPositionsContent.Name = "labelDrivingPositionsContent"; ! this.labelDrivingPositionsContent.TabIndex = 8; ! this.labelDrivingPositionsContent.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // ! // labelPortfolioPositionsContent // ! this.labelPortfolioPositionsContent.Location = new System.Drawing.Point(384, 64); ! this.labelPortfolioPositionsContent.Name = "labelPortfolioPositionsContent"; ! this.labelPortfolioPositionsContent.TabIndex = 9; ! this.labelPortfolioPositionsContent.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // WFLagDebugGenome // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(616, 365); this.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.labelPortfolioPositionsContent, ! this.labelDrivingPositionsContent, this.labelPortfolioPositions, this.labelDrivingPositions, --- 177,212 ---- // labelPortfolioPositions // ! this.labelPortfolioPositions.Location = new System.Drawing.Point(208, 160); this.labelPortfolioPositions.Name = "labelPortfolioPositions"; + this.labelPortfolioPositions.Size = new System.Drawing.Size(72, 23); this.labelPortfolioPositions.TabIndex = 7; this.labelPortfolioPositions.Text = "Portfolio Pos."; this.labelPortfolioPositions.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // ! // dataGridDrivingPositions // ! this.dataGridDrivingPositions.DataMember = ""; ! this.dataGridDrivingPositions.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dataGridDrivingPositions.Location = new System.Drawing.Point(296, 16); ! this.dataGridDrivingPositions.Name = "dataGridDrivingPositions"; ! this.dataGridDrivingPositions.Size = new System.Drawing.Size(312, 128); ! this.dataGridDrivingPositions.TabIndex = 10; // ! // dataGridPortfolioPositions // ! this.dataGridPortfolioPositions.DataMember = ""; ! this.dataGridPortfolioPositions.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dataGridPortfolioPositions.Location = new System.Drawing.Point(296, 160); ! this.dataGridPortfolioPositions.Name = "dataGridPortfolioPositions"; ! this.dataGridPortfolioPositions.Size = new System.Drawing.Size(312, 128); ! this.dataGridPortfolioPositions.TabIndex = 11; // // WFLagDebugGenome // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(616, 437); this.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.dataGridPortfolioPositions, ! this.dataGridDrivingPositions, this.labelPortfolioPositions, this.labelDrivingPositions, *************** *** 212,215 **** --- 220,225 ---- this.Text = "WFLagDebugGenome"; this.Load += new System.EventHandler(this.WFLagDebugGenome_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridDrivingPositions)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridPortfolioPositions)).EndInit(); this.ResumeLayout(false); *************** *** 316,325 **** } private void WFLagDebugGenome_Load(object sender, System.EventArgs e) { ! this.labelDrivingPositionsContent.Text = ! this.wFLagChosenPositions.DrivingPositions.KeyConcat; ! this.labelPortfolioPositionsContent.Text = ! this.wFLagChosenPositions.PortfolioPositions.KeyConcat; } } --- 326,349 ---- } + private void setDataGridDrivingPositions() + { + ArrayList drivingWeightedPositions = + new ArrayList( this.wFLagChosenPositions.DrivingWeightedPositions.Values ); + this.dataGridDrivingPositions.DataSource = drivingWeightedPositions; + } + private void setDataGridPortfolioPositions() + { + ArrayList portfolioWeightedPositions = + new ArrayList( this.wFLagChosenPositions.PortfolioWeightedPositions.Values ); + this.dataGridPortfolioPositions.DataSource = portfolioWeightedPositions; + } private void WFLagDebugGenome_Load(object sender, System.EventArgs e) { ! // this.labelDrivingPositionsContent.Text = ! // this.wFLagChosenPositions.DrivingPositions.KeyConcat; ! // this.labelPortfolioPositionsContent.Text = ! // this.wFLagChosenPositions.PortfolioPositions.KeyConcat; ! this.setDataGridDrivingPositions(); ! this.setDataGridPortfolioPositions(); } } |