quantproject-developers Mailing List for QuantProject (Page 130)
Brought to you by:
glauco_1
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(7) |
Nov
(103) |
Dec
(67) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(52) |
Feb
(9) |
Mar
(69) |
Apr
(53) |
May
(80) |
Jun
(23) |
Jul
(24) |
Aug
(112) |
Sep
(9) |
Oct
|
Nov
(58) |
Dec
(93) |
| 2005 |
Jan
(90) |
Feb
(93) |
Mar
(61) |
Apr
(56) |
May
(37) |
Jun
(61) |
Jul
(55) |
Aug
(68) |
Sep
(25) |
Oct
(46) |
Nov
(41) |
Dec
(37) |
| 2006 |
Jan
(33) |
Feb
(7) |
Mar
(19) |
Apr
(27) |
May
(73) |
Jun
(49) |
Jul
(83) |
Aug
(66) |
Sep
(45) |
Oct
(16) |
Nov
(15) |
Dec
(7) |
| 2007 |
Jan
(14) |
Feb
(33) |
Mar
|
Apr
(21) |
May
|
Jun
(34) |
Jul
(18) |
Aug
(100) |
Sep
(39) |
Oct
(55) |
Nov
(12) |
Dec
(2) |
| 2008 |
Jan
(120) |
Feb
(133) |
Mar
(129) |
Apr
(104) |
May
(42) |
Jun
(2) |
Jul
(52) |
Aug
(99) |
Sep
(134) |
Oct
|
Nov
(137) |
Dec
(48) |
| 2009 |
Jan
(48) |
Feb
(55) |
Mar
(61) |
Apr
(3) |
May
(2) |
Jun
(1) |
Jul
|
Aug
(51) |
Sep
|
Oct
(7) |
Nov
|
Dec
|
| 2010 |
Jan
(7) |
Feb
(1) |
Mar
(145) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
|
| 2011 |
Jan
(78) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(88) |
Sep
(6) |
Oct
(1) |
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
(6) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Glauco S. <gla...@us...> - 2004-08-15 00:07:56
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/MicrosoftExcel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12720/b5_Presentation/Reporting/MicrosoftExcel Modified Files: ExcelManager.cs Log Message: The ExcelManager class has been moved to the QuantProject.Presentation.Reporting.MicrosoftExcel namespace Index: ExcelManager.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/MicrosoftExcel/ExcelManager.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ExcelManager.cs 14 Aug 2004 20:43:28 -0000 1.1 --- ExcelManager.cs 15 Aug 2004 00:07:47 -0000 1.2 *************** *** 30,34 **** using Excel; ! namespace QuantProject.Presentation.MicrosoftExcel { /// <summary> --- 30,34 ---- using Excel; ! namespace QuantProject.Presentation.Reporting.MicrosoftExcel { /// <summary> |
|
From: Glauco S. <gla...@us...> - 2004-08-15 00:07:56
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12720/b4_Business/a1_Financial/a2_Accounting Modified Files: Accounts.cs Log Message: The ExcelManager class has been moved to the QuantProject.Presentation.Reporting.MicrosoftExcel namespace Index: Accounts.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Accounts.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Accounts.cs 13 Oct 2003 21:58:33 -0000 1.1.1.1 --- Accounts.cs 15 Aug 2004 00:07:47 -0000 1.2 *************** *** 46,55 **** } - public void ReportToConsole( DateTime dateTime ) - { - foreach (Account account in this.Values) - account.ReportToConsole( dateTime ); - } - public void Serialize( string filePathAndName ) { --- 46,49 ---- |
|
From: Glauco S. <gla...@us...> - 2004-08-14 21:13:16
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18713/b5_Presentation Modified Files: b5_Presentation.csproj Log Message: The ConsoleManager class has been added Index: b5_Presentation.csproj =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/b5_Presentation.csproj,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** b5_Presentation.csproj 14 Aug 2004 20:47:23 -0000 1.8 --- b5_Presentation.csproj 14 Aug 2004 21:13:07 -0000 1.9 *************** *** 163,166 **** --- 163,171 ---- /> <File + RelPath = "Reporting\Console\ConsoleManager.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Reporting\MicrosoftExcel\ExcelManager.cs" SubType = "Code" |
|
From: Glauco S. <gla...@us...> - 2004-08-14 21:12:18
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18585/b4_Business/a1_Financial/a2_Accounting Modified Files: Account.cs Log Message: Moved reporting features from the Account class to this new created class (fixed the n-tier approach) Index: Account.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/Account.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Account.cs 28 Nov 2003 15:32:10 -0000 1.4 --- Account.cs 14 Aug 2004 21:12:09 -0000 1.5 *************** *** 22,32 **** using System; using System.Data; - using System.Windows.Forms; using System.IO; - using System.Runtime.Serialization.Formatters.Soap; - using System.Collections; using System.Reflection; using System.Runtime.InteropServices; using Excel; using QuantProject.ADT; --- 22,31 ---- using System; + using System.Collections; using System.Data; using System.IO; using System.Reflection; using System.Runtime.InteropServices; + using System.Runtime.Serialization.Formatters.Soap; using Excel; using QuantProject.ADT; *************** *** 103,107 **** catch (Exception exception) { ! MessageBox.Show( exception.ToString() ); } } --- 102,107 ---- catch (Exception exception) { ! exception = exception; // to avoid warning message ! /// TO DO!!! } } *************** *** 171,182 **** } - public void ReportToConsole( DateTime dateTime ) - { - Console.WriteLine( "\n\n\n***********\n" ); - Console.WriteLine( "Report for Account: " + this.Key ); - Console.WriteLine( this.ToString( dateTime ) ); - Console.WriteLine( this.Transactions.ToString() ); - } - public AccountReport CreateReport( string reportName , int numDaysForInterval , ExtendedDateTime endDateTime ) --- 171,174 ---- |
|
From: Glauco S. <gla...@us...> - 2004-08-14 21:10:46
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/Console In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18365 Added Files: ConsoleManager.cs Log Message: Contains the static methods to write an account report to the console --- NEW FILE: ConsoleManager.cs --- /* QuantProject - Quantitative Finance Library ConsoleManager.cs Copyright (C) 2003 Glauco Siliprandi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ using System; using QuantProject.Business.Financial.Accounting; namespace QuantProject.Presentation.Reporting.Console { /// <summary> /// Contains the static methods to write an account /// report to the console /// </summary> public class ConsoleManager { public ConsoleManager() { // // TODO: Add constructor logic here // } public static void Report( Account account , DateTime dateTime ) { System.Console.WriteLine( "\n\n\n***********\n" ); System.Console.WriteLine( "Report for Account: " + account.Key ); System.Console.WriteLine( account.ToString( dateTime ) ); System.Console.WriteLine( account.Transactions.ToString() ); } } } |
|
From: Glauco S. <gla...@us...> - 2004-08-14 21:08:57
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/Console In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18033/Console Log Message: Directory /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/Console added to the repository |
|
From: Glauco S. <gla...@us...> - 2004-08-14 20:47:48
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14822/b5_Presentation Modified Files: b5_Presentation.csproj Log Message: The full MicrosoftExcel folder has been moved to the Presentation/Reporting/ folder Index: b5_Presentation.csproj =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/b5_Presentation.csproj,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** b5_Presentation.csproj 8 Aug 2004 13:44:33 -0000 1.7 --- b5_Presentation.csproj 14 Aug 2004 20:47:23 -0000 1.8 *************** *** 163,167 **** /> <File ! RelPath = "MicrosoftExcel\ExcelManager.cs" SubType = "Code" BuildAction = "Compile" --- 163,167 ---- /> <File ! RelPath = "Reporting\MicrosoftExcel\ExcelManager.cs" SubType = "Code" BuildAction = "Compile" |
|
From: Glauco S. <gla...@us...> - 2004-08-14 20:44:16
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/MicrosoftExcel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14384 Removed Files: ExcelManager.cs Log Message: The full MicrosoftExcel folder has been moved to the Presentation/Reporting/ folder --- ExcelManager.cs DELETED --- |
|
From: Glauco S. <gla...@us...> - 2004-08-14 20:43:36
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/MicrosoftExcel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14272 Added Files: ExcelManager.cs Log Message: The full MicrosoftExcel folder has been moved to the Presentation/Reporting/ folder --- NEW FILE: ExcelManager.cs --- /* QuantProject - Quantitative Finance Library ExcelManager.cs Copyright (C) 2003 Glauco Siliprandi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ using System; using System.Collections; using System.Windows.Forms; using System.Data; using System.Reflection; using System.Threading; using QuantProject.Business.Financial.Accounting.Reporting; using Excel; namespace QuantProject.Presentation.MicrosoftExcel { /// <summary> /// Summary description for ExcelManager. /// </summary> public class ExcelManager { private static ArrayList reportTables = new ArrayList(); public ExcelManager() { // // TODO: Add constructor logic here // } public static void Add( ReportTable reportTable ) { reportTables.Add( reportTable ); } public static void Add( AccountReport accountReport ) { reportTables.Add( accountReport.Summary ); reportTables.Add( accountReport.RoundTrades ); reportTables.Add( accountReport.Equity ); reportTables.Add( accountReport.TransactionTable ); } #region "ShowReport" private static void drawHeaders( ReportTable reportTable , Worksheet excelWorkSheet ) { DataColumnCollection dataColumnCollection = reportTable.DataTable.Columns; // AccountReportRecord reportRecord = (AccountReportRecord)((ArrayList)this.GetByIndex( 0 ))[ 0 ]; // ArrayList headers = reportRecord.GetHeaders(); for (int index = 0 ; index<dataColumnCollection.Count ; index++ ) { excelWorkSheet.Cells[1,index+1] = dataColumnCollection[ index ].ColumnName; } } private static void drawRow( DataRowCollection dataRowCollection , int rowIndex , Worksheet excelWorkSheet ) { DataRow dataRow = dataRowCollection[ rowIndex ]; // ArrayList dataRow = reportRecord.GetData(); for (int columnIndex = 0 ; columnIndex<dataRow.Table.Columns.Count ; columnIndex++ ) { excelWorkSheet.Cells[rowIndex+2,columnIndex+1] = dataRow[ columnIndex ]; } } private static void drawRows( ReportTable reportTable , Worksheet excelWorkSheet ) { try { DataRowCollection dataRowCollection = reportTable.DataTable.Rows; for (int index = 0 ; index<reportTable.DataTable.Rows.Count ; index++ ) { // ArrayList reportRecords = (ArrayList)this.GetByIndex( index ); // foreach (AccountReportRecord reportRecord in reportRecords) drawRow( dataRowCollection , index , excelWorkSheet ); // excelWorkSheet.Cells[ row , 1 ] = pnlHistory.GetKey( index ); // Object obj = pnlHistory[ (DateTime)pnlHistory.GetKey( index ) ]; // excelWorkSheet.Cells[ row , 2 ] = pnlHistory[ (DateTime)pnlHistory.GetKey( index ) ]; } } catch (Exception ex) { MessageBox.Show( ex.ToString() ); } } private static void showReport_forCurrentWorksheet( int sheetIndex , ReportTable reportTable , Excel.Workbook excelBook ) { Excel.Worksheet excelSheet; if ( excelBook.Worksheets.Count >= sheetIndex ) excelSheet = (Excel.Worksheet)excelBook.Worksheets.get_Item( sheetIndex ); else excelSheet = (Excel.Worksheet)excelBook.Worksheets.Add(Missing.Value, excelBook.Worksheets.get_Item( excelBook.Worksheets.Count ),1,Missing.Value); excelSheet.Name = reportTable.Name; excelSheet.Activate(); drawHeaders( reportTable , excelSheet ); drawRows( reportTable , excelSheet ); } public static void ShowReport() { if ( reportTables.Count > 0 ) { Excel.Application excelApp = new Excel.ApplicationClass(); excelApp.Visible = true; Excel.Workbook excelBook = excelApp.Workbooks.Add( Missing.Value ); for ( int index=0; index<reportTables.Count; index++ ) { showReport_forCurrentWorksheet( index + 1 , (ReportTable)reportTables[ index ] , excelBook ); } } //reportToExcel_Dispose( excelSheet , excelBook , excelApp ); } #endregion } } |
|
From: Glauco S. <gla...@us...> - 2004-08-14 20:42:25
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/MicrosoftExcel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14095/MicrosoftExcel Log Message: Directory /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/MicrosoftExcel added to the repository |
|
From: Glauco S. <gl...@my...> - 2004-08-13 09:01:21
|
At 09:04 AM 8/13/2004 +0200, you wrote: >L'app.config non =E8 in formato XML (come i file di progetto)? Perch=E8 il= cvs=20 >lo scambia per un file binario? A me, in locale lo mostra come un file di testo (icona dei file di testo),= =20 non un binario. Hai provato un update? Come te lo mostra WinCvs? Con icona di file di testo= =20 o binario? >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >Quantproject-developers mailing list >Qua...@li... >https://lists.sourceforge.net/lists/listinfo/quantproject-developers |
|
From: marco\.milletti\@l <mar...@li...> - 2004-08-13 07:04:34
|
> Update of /cvsroot/quantproject/QuantProject/b91_QuantProject > In dir= ectory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29304/b91_QuantProject=0D = > > Added Files: > app.config > Log Message: > The .exe will be in= structed to run with the 1.1 framework version > > --- NEW FILE: app.c= onfig --- > (This appears to be a binary file; contents omitted.) L'a= pp.config non =E8 in formato XML (come i file di progetto)? Perch=E8 il c= vs lo scambia per un file binario? |
|
From: Glauco S. <gla...@us...> - 2004-08-12 14:48:18
|
Update of /cvsroot/quantproject/QuantProject/b91_QuantProject In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29304/b91_QuantProject Added Files: app.config Log Message: The .exe will be instructed to run with the 1.1 framework version --- NEW FILE: app.config --- (This appears to be a binary file; contents omitted.) |
|
From: Marco M. <mi...@us...> - 2004-08-11 21:37:03
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataTables In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25636/b3_Data/DataTables Modified Files: Quotes.cs Log Message: Changed implementation for the method returning a table containing the PearsonCorrelationCoefficient for any possible couple of tickers from a given table of tickers (now it's more efficient) Index: Quotes.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/DataTables/Quotes.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Quotes.cs 4 Aug 2004 23:02:05 -0000 1.6 --- Quotes.cs 11 Aug 2004 21:36:55 -0000 1.7 *************** *** 100,104 **** /// Returns a table containing the Pearson correlation coefficient of the adjusted close to close ratios /// for any possible couple of tickers contained in the given table, for the specified interval - /// (the function has been implemented just for testing purposes) /// </summary> public static DataTable GetTickersByAdjCloseToClosePearsonCorrelationCoefficient( bool orderByASC, --- 100,103 ---- *************** *** 108,152 **** { if(!setOfTickers.Columns.Contains("PearsonCorrelationCoefficient")) setOfTickers.Columns.Add("PearsonCorrelationCoefficient", System.Type.GetType("System.Double")); int initialNumberOfRows = setOfTickers.Rows.Count; ! char[] separator = new char[1]; ! separator[0] = ';'; ! for(int j=0; j!= setOfTickers.Rows.Count; j++) { string firstTicker = (string)setOfTickers.Rows[j][0]; ! if(firstTicker.IndexOfAny(separator)== -1) { ! for(int i = 0; i!= setOfTickers.Rows.Count; i++) { ! string secondTicker = (string)setOfTickers.Rows[i][0]; ! ! if(secondTicker.IndexOfAny(separator)== -1) { ! DataTable dtFirstTicker = QuantProject.DataAccess.Tables.Quotes.GetTickerQuotes(firstTicker, ! firstQuoteDate, ! lastQuoteDate); ! ! DataTable dtSecondTicker = QuantProject.DataAccess.Tables.Quotes.GetTickerQuotes(secondTicker, ! firstQuoteDate, ! lastQuoteDate); ! DataRow rowToAdd = setOfTickers.NewRow(); ! rowToAdd[0]=firstTicker + ";" + secondTicker; ! try ! { ! rowToAdd["PearsonCorrelationCoefficient"] = ! QuantProject.ADT.Statistics.BasicFunctions.PearsonCorrelationCoefficient( ! ExtendedDataTable.GetArrayOfFloatFromColumn(dtFirstTicker, "quAdjustedCloseToCloseRatio"), ! ExtendedDataTable.GetArrayOfFloatFromColumn(dtSecondTicker, "quAdjustedCloseToCloseRatio")); ! setOfTickers.Rows.Add(rowToAdd); ! } ! catch(Exception ex) ! { ! string notUsed = ex.ToString(); ! } } } } } return ExtendedDataTable.CopyAndSort(setOfTickers,"PearsonCorrelationCoefficient", orderByASC); } --- 107,148 ---- { + if(!setOfTickers.Columns.Contains("CorrelatedTicker")) + setOfTickers.Columns.Add("CorrelatedTicker", System.Type.GetType("System.String")); if(!setOfTickers.Columns.Contains("PearsonCorrelationCoefficient")) setOfTickers.Columns.Add("PearsonCorrelationCoefficient", System.Type.GetType("System.Double")); int initialNumberOfRows = setOfTickers.Rows.Count; ! for(int j=0; j!= initialNumberOfRows; j++) { string firstTicker = (string)setOfTickers.Rows[j][0]; ! for(int i = j; i!= initialNumberOfRows; i++) { ! string secondTicker = (string)setOfTickers.Rows[i][0]; ! if(firstTicker != secondTicker) { ! DataTable dtFirstTicker = QuantProject.DataAccess.Tables.Quotes.GetTickerQuotes(firstTicker, ! firstQuoteDate, ! lastQuoteDate); ! DataTable dtSecondTicker = QuantProject.DataAccess.Tables.Quotes.GetTickerQuotes(secondTicker, ! firstQuoteDate, ! lastQuoteDate); ! DataRow rowToAdd = setOfTickers.NewRow(); ! rowToAdd[0] = firstTicker; ! rowToAdd["CorrelatedTicker"] = secondTicker; ! try { ! rowToAdd["PearsonCorrelationCoefficient"] = ! QuantProject.ADT.Statistics.BasicFunctions.PearsonCorrelationCoefficient( ! ExtendedDataTable.GetArrayOfFloatFromColumn(dtFirstTicker, "quAdjustedCloseToCloseRatio"), ! ExtendedDataTable.GetArrayOfFloatFromColumn(dtSecondTicker, "quAdjustedCloseToCloseRatio")); ! setOfTickers.Rows.Add(rowToAdd); ! } ! catch(Exception ex) ! { ! string notUsed = ex.ToString(); } } } } + ExtendedDataTable.DeleteRows(setOfTickers, 0, initialNumberOfRows - 1); return ExtendedDataTable.CopyAndSort(setOfTickers,"PearsonCorrelationCoefficient", orderByASC); } |
|
From: Marco M. <mi...@us...> - 2004-08-11 21:33:22
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25068/b1_ADT Modified Files: ExtendedDataTable.cs Log Message: Changed implementation of DeleteRows method Index: ExtendedDataTable.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/ExtendedDataTable.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ExtendedDataTable.cs 4 Aug 2004 22:50:40 -0000 1.4 --- ExtendedDataTable.cs 11 Aug 2004 21:33:10 -0000 1.5 *************** *** 54,63 **** public static void DeleteRows(DataTable table, long fromIndex) { ! for(long i = table.Rows.Count - 1;i>=fromIndex; i=table.Rows.Count-1) { ! table.Rows.RemoveAt((int)i); } } - /// <summary> /// Get an array of float corresponding to a column compatible with the float type in a given data table --- 54,71 ---- public static void DeleteRows(DataTable table, long fromIndex) { ! ExtendedDataTable.DeleteRows(table, fromIndex, table.Rows.Count - 1); ! //for(long i = table.Rows.Count - 1;i>=fromIndex; i=table.Rows.Count-1) ! //{ ! //table.Rows.RemoveAt((int)i); ! //} ! } ! ! public static void DeleteRows(DataTable table, long fromIndex, long toIndex) ! { ! for(long i = fromIndex; i <= toIndex; i++) { ! table.Rows.RemoveAt((int)fromIndex); } } /// <summary> /// Get an array of float corresponding to a column compatible with the float type in a given data table |
|
From: Glauco S. <gla...@us...> - 2004-08-08 13:45:52
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22394/b5_Presentation/Reporting/WindowsForm Modified Files: ReportGridTabPage.cs Log Message: Report TabPage, to contain a ReportGrid Index: ReportGridTabPage.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/ReportGridTabPage.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ReportGridTabPage.cs 8 Aug 2004 13:41:00 -0000 1.1 --- ReportGridTabPage.cs 8 Aug 2004 13:45:44 -0000 1.2 *************** *** 1,2 **** --- 1,23 ---- + /* + QuantProject - Quantitative Finance Library + + ReportTabControl.cs + Copyright (C) 2003 + Glauco Siliprandi + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ using System; using System.Windows.Forms; *************** *** 6,10 **** { /// <summary> ! /// Summary description for RoundTradesTabPage. /// </summary> public class ReportGridTabPage : TabPage --- 27,31 ---- { /// <summary> ! /// Report TabPage, to contain a ReportGrid /// </summary> public class ReportGridTabPage : TabPage |
|
From: Glauco S. <gla...@us...> - 2004-08-08 13:44:41
|
Update of /cvsroot/quantproject/QuantProject In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22256 Modified Files: QuantProject.suo Log Message: Added ReportGrid.cs and ReportGridTabPage.cs Index: QuantProject.suo =================================================================== RCS file: /cvsroot/quantproject/QuantProject/QuantProject.suo,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 Binary files /tmp/cvsm1cRis and /tmp/cvsSdMWOg differ |
|
From: Glauco S. <gla...@us...> - 2004-08-08 13:44:41
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22256/b5_Presentation Modified Files: b5_Presentation.csproj Log Message: Added ReportGrid.cs and ReportGridTabPage.cs Index: b5_Presentation.csproj =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/b5_Presentation.csproj,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** b5_Presentation.csproj 1 Aug 2004 00:43:11 -0000 1.6 --- b5_Presentation.csproj 8 Aug 2004 13:44:33 -0000 1.7 *************** *** 188,191 **** --- 188,201 ---- /> <File + RelPath = "Reporting\WindowsForm\ReportGrid.cs" + SubType = "Component" + BuildAction = "Compile" + /> + <File + RelPath = "Reporting\WindowsForm\ReportGridTabPage.cs" + SubType = "Component" + BuildAction = "Compile" + /> + <File RelPath = "Reporting\WindowsForm\ReportTabControl.cs" SubType = "Component" |
|
From: Glauco S. <gla...@us...> - 2004-08-08 13:43:36
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22123/b5_Presentation/Reporting/WindowsForm Modified Files: ReportTabControl.cs Log Message: Added TabPages to display DataGrids for the round trades table, for the equity line table, and for the transactions table. Index: ReportTabControl.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/ReportTabControl.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ReportTabControl.cs 1 Aug 2004 00:18:48 -0000 1.1 --- ReportTabControl.cs 8 Aug 2004 13:43:28 -0000 1.2 *************** *** 32,37 **** { private AccountReport accountReport; ! private TabPage equityChart; ! private TabPage summary; public ReportTabControl( AccountReport accountReport ) --- 32,40 ---- { private AccountReport accountReport; ! private EquityChartTabPage equityChart; ! private SummaryTabPage summary; ! private ReportGridTabPage roundTrades; ! private ReportGridTabPage equity; ! private ReportGridTabPage transactions; public ReportTabControl( AccountReport accountReport ) *************** *** 43,46 **** --- 46,58 ---- this.summary = new SummaryTabPage( this.accountReport ); this.Controls.Add( this.summary ); + this.roundTrades = new ReportGridTabPage( + "Round Trades" , this.accountReport.RoundTrades ); + this.Controls.Add( this.roundTrades ); + this.equity = new ReportGridTabPage( + "Equity" , this.accountReport.Equity ); + this.Controls.Add( this.equity ); + this.transactions = new ReportGridTabPage( + "Transactions" , this.accountReport.TransactionTable ); + this.Controls.Add( this.transactions ); } } |
|
From: Glauco S. <gla...@us...> - 2004-08-08 13:41:07
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21845/b5_Presentation/Reporting/WindowsForm Added Files: ReportGridTabPage.cs Log Message: Report TabPage, to contain a ReportGrid --- NEW FILE: ReportGridTabPage.cs --- using System; using System.Windows.Forms; using QuantProject.Business.Financial.Accounting.Reporting; namespace QuantProject.Presentation.Reporting.WindowsForm { /// <summary> /// Summary description for RoundTradesTabPage. /// </summary> public class ReportGridTabPage : TabPage { public ReportGridTabPage( string title , ReportTable reportTable ) { this.Text = title; ReportGrid reportGrid = new ReportGrid( reportTable ); reportGrid.Dock = DockStyle.Fill; this.Controls.Add( reportGrid ); } } } |
|
From: Glauco S. <gla...@us...> - 2004-08-08 13:40:29
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21761/b5_Presentation/Reporting/WindowsForm Added Files: ReportGrid.cs Log Message: DataGrid to be displayed within a report TabPage --- NEW FILE: ReportGrid.cs --- /* QuantProject - Quantitative Finance Library ReportTabControl.cs Copyright (C) 2003 Glauco Siliprandi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ using System; using System.Windows.Forms; using QuantProject.Business.Financial.Accounting.Reporting; namespace QuantProject.Presentation.Reporting.WindowsForm { /// <summary> /// DataGrid to be displayed within a report TabPage /// </summary> public class ReportGrid : DataGrid { public ReportGrid( ReportTable reportTable ) { this.DataSource = reportTable.DataTable; } } } |
|
From: Glauco S. <gla...@us...> - 2004-08-06 13:48:44
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31961/b5_Presentation/Reporting/WindowsForm Modified Files: SummaryTabPage.cs Log Message: The SummaryTabPage has been fixed. Index: SummaryTabPage.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/SummaryTabPage.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SummaryTabPage.cs 1 Aug 2004 00:25:12 -0000 1.1 --- SummaryTabPage.cs 6 Aug 2004 13:48:35 -0000 1.2 *************** *** 34,40 **** public class SummaryTabPage : TabPage { ! // private int currentLabel; private int xForLabels = 17; ! private int labelsWidth = 150; private int yStart = 17; private int yStep = 25; --- 34,44 ---- public class SummaryTabPage : TabPage { ! // constant values for label's placement ! private int labelRows = 8; private int xForLabels = 17; ! private int textLabelsWidth = 180; ! private int valueLablesWidth = 50; ! private int textToValueLabelSpacing = 8; ! private int valueToTextLabelSpacing = 50; private int yStart = 17; private int yStep = 25; *************** *** 75,79 **** private Point getPointForTextLabel( int labelPosition ) { ! return new Point( xForLabels , yStart + labelPosition * yStep ); } private void addTextLabel( Label label , string name , string text ) --- 79,95 ---- private Point getPointForTextLabel( int labelPosition ) { ! int x,y; ! if ( labelPosition < this.labelRows ) ! { ! x = this.xForLabels; ! y = this.yStart + labelPosition * this.yStep; ! } ! else ! { ! x = this.xForLabels + this.textLabelsWidth + this.textToValueLabelSpacing + ! this.valueLablesWidth + this.valueToTextLabelSpacing; ! y = this.yStart + ( labelPosition - this.labelRows ) * this.yStep; ! } ! return new Point( x , y ); } private void addTextLabel( Label label , string name , string text ) *************** *** 82,86 **** // label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; label.Location = getPointForTextLabel( ( this.Controls.Count - 1 ) / 2 ); ! label.Width = this.labelsWidth; label.Name = name; label.Text = text; --- 98,102 ---- // label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; label.Location = getPointForTextLabel( ( this.Controls.Count - 1 ) / 2 ); ! label.Width = this.textLabelsWidth; label.Name = name; label.Text = text; *************** *** 92,103 **** // label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; label.Location = getPointForValueLabel( ( this.Controls.Count / 2 ) - 1 ); label.Name = name; ! label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; } private Point getPointForValueLabel( int labelPosition ) { ! return new Point( xForLabels + labelsWidth + 3 , ! yStart + labelPosition * yStep ); } private void myInitializeComponent() --- 108,121 ---- // label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; label.Location = getPointForValueLabel( ( this.Controls.Count / 2 ) - 1 ); + label.Width = this.valueLablesWidth; label.Name = name; ! label.TextAlign = System.Drawing.ContentAlignment.MiddleRight; } private Point getPointForValueLabel( int labelPosition ) { ! Point point = getPointForTextLabel( labelPosition ); ! point.X += this.textLabelsWidth + this.textToValueLabelSpacing; ! return point; } private void myInitializeComponent() *************** *** 146,150 **** // this.addTextLabel( lblReturnOnAccount , "lblReturnOnAccount" , ! "Return on account:" ); // // lblValReturnOnAccount --- 164,168 ---- // this.addTextLabel( lblReturnOnAccount , "lblReturnOnAccount" , ! "Return on account (%):" ); // // lblValReturnOnAccount *************** *** 155,159 **** // this.addTextLabel( lblBuyAndHoldPercReturn , "lblBuyAndHoldPercReturn" , ! "Buy & hold % return:" ); // // lblValBuyAndHoldPercReturn --- 173,177 ---- // this.addTextLabel( lblBuyAndHoldPercReturn , "lblBuyAndHoldPercReturn" , ! "Buy and hold % return:" ); // // lblValBuyAndHoldPercReturn *************** *** 199,203 **** // lblAverageTradePercReturn // ! this.addTextLabel( lblNumberWinningTrades , "lblNumberWinningTrades" , "Average trade % return:" ); // --- 217,221 ---- // lblAverageTradePercReturn // ! this.addTextLabel( this.lblAverageTradePercReturn , "lblAverageTradePercReturn" , "Average trade % return:" ); // *************** *** 208,213 **** // lblLargestWinningTrade // ! this.addTextLabel( lblNumberWinningTrades , "lblNumberWinningTrades" , ! "Largest winning trade:" ); // // lblValLargestWinningTrade --- 226,231 ---- // lblLargestWinningTrade // ! this.addTextLabel( lblLargestWinningTrade , "lblNumberWinningTrades" , ! "Largest winning trade (%):" ); // // lblValLargestWinningTrade *************** *** 217,221 **** // lblLargestLosingTrade // ! this.addTextLabel( lblNumberWinningTrades , "lblNumberWinningTrades" , "Largest losing trade:" ); // --- 235,239 ---- // lblLargestLosingTrade // ! this.addTextLabel( lblLargestLosingTrade , "lblNumberWinningTrades" , "Largest losing trade:" ); // *************** *** 270,303 **** } - private void addControls() - { - // this.Controls.Add( this.lblValTotalNetProfit ); - // this.Controls.Add( this.lblReturnOnAccount ); - // this.Controls.Add( this.lblValReturnOnAccount ); - this.Controls.Add( this.lblBuyAndHoldPercReturn ); - this.Controls.Add( this.lblValBuyAndHoldPercReturn ); - this.Controls.Add( this.lblAnnualSystemPercReturn ); - this.Controls.Add( this.lblValAnnualSystemPercReturn ); - this.Controls.Add( this.lblMaxEquityDrawDown ); - this.Controls.Add( this.lblValMaxEquityDrawDown ); - this.Controls.Add( this.lblTotalNumberOfShortTrades ); - this.Controls.Add( this.lblValTotalNumberOfTrades ); - this.Controls.Add( this.lblAverageTradePercReturn ); - this.Controls.Add( this.lblValAverageTradePercReturn ); - this.Controls.Add( this.lblLargestWinningTrade ); - this.Controls.Add( this.lblValLargestWinningTrade ); - this.Controls.Add( this.lblLargestLosingTrade ); - this.Controls.Add( this.lblValLargestLosingTrade ); - this.Controls.Add( this.lblTotalNumberOfLongTrades ); - this.Controls.Add( this.lblValTotalNumberOfLongTrades ); - this.Controls.Add( this.lblNumberWinningLongTrades ); - this.Controls.Add( this.lblValNumberWinningLongTrades ); - this.Controls.Add( this.lblAverageLongTradePercReturn ); - this.Controls.Add( this.lblValAverageLongTradePercReturn ); - this.Controls.Add( this.lblTotalNumberOfShortTrades ); - this.Controls.Add( this.lblValTotalNumberOfTrades ); - this.Controls.Add( this.lblNumberWinningShortTrades ); - this.Controls.Add( this.lblValNumberWinningShortTrades ); - } private void setSummaryValues() { --- 288,291 ---- *************** *** 314,317 **** --- 302,307 ---- this.lblValTotalNumberOfTrades.Text = FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.TotalNumberOfTrades ); + this.lblValNumberWinningTrades.Text = + FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.NumberWinningTrades ); this.lblValAverageTradePercReturn.Text = FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.AverageTradePercentageReturn ); *************** *** 328,331 **** --- 318,323 ---- this.lblValTotalNumberOfShortTrades.Text = FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.TotalNumberOfShortTrades ); + this.lblValNumberWinningShortTrades.Text = + FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.NumberWinningShortTrades ); } public SummaryTabPage( AccountReport accountReport ) *************** *** 333,337 **** this.accountReport = accountReport; this.myInitializeComponent(); - this.addControls(); this.Text = "Summary"; this.setSummaryValues(); --- 325,328 ---- |
|
From: Glauco S. <gla...@us...> - 2004-08-06 13:48:44
|
Update of /cvsroot/quantproject/QuantProject In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31961 Modified Files: QuantProject.suo Log Message: The SummaryTabPage has been fixed. Index: QuantProject.suo =================================================================== RCS file: /cvsroot/quantproject/QuantProject/QuantProject.suo,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 Binary files /tmp/cvs3QkW2x and /tmp/cvsPEhwg3 differ |
|
From: Glauco S. <gla...@us...> - 2004-08-06 13:47:51
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Tables In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31798/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Tables Modified Files: Summary.cs Log Message: The cast for the return value for the NumberWinningTrades property has been fixed Index: Summary.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/Tables/Summary.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Summary.cs 1 Aug 2004 00:34:49 -0000 1.8 --- Summary.cs 6 Aug 2004 13:47:42 -0000 1.9 *************** *** 60,66 **** get { return (int)this.totalNumberOfTrades.rowValue; } } ! public double NumberWinningTrades { ! get { return (long)this.numberWinningTrades.rowValue; } } public double AverageTradePercentageReturn --- 60,66 ---- get { return (int)this.totalNumberOfTrades.rowValue; } } ! public int NumberWinningTrades { ! get { return (int)this.numberWinningTrades.rowValue; } } public double AverageTradePercentageReturn |
|
From: Glauco S. <gla...@us...> - 2004-08-06 13:46:29
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31588/b5_Presentation/Reporting/WindowsForm Modified Files: Report.cs Log Message: Width and height report dimensions have been changed Index: Report.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/Report.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Report.cs 1 Aug 2004 00:17:06 -0000 1.1 --- Report.cs 6 Aug 2004 13:46:21 -0000 1.2 *************** *** 55,59 **** { this.Location = new System.Drawing.Point( 1000,500); ! this.Width = 500; this.reportTabControl = new ReportTabControl( this.accountReport ); this.Controls.Add( this.reportTabControl ); --- 55,60 ---- { this.Location = new System.Drawing.Point( 1000,500); ! this.Width = 700; ! this.Height = 500; this.reportTabControl = new ReportTabControl( this.accountReport ); this.Controls.Add( this.reportTabControl ); |