[Quantproject-developers] QuantProject/b7_Scripts/TickerSelectionTesting RunEfficientCTOPortfolio.cs
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-03-13 20:29:04
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15243/b7_Scripts/TickerSelectionTesting Modified Files: RunEfficientCTOPortfolio.cs Log Message: Added appSettings section to the app.config file. Added keys inside appSettings in order to set directory paths where to save accounts and reports resulting from execution of scripts. Index: RunEfficientCTOPortfolio.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting/RunEfficientCTOPortfolio.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** RunEfficientCTOPortfolio.cs 27 Feb 2005 19:56:08 -0000 1.14 --- RunEfficientCTOPortfolio.cs 13 Mar 2005 20:28:54 -0000 1.15 *************** *** 99,105 **** this.reportTable = new ReportTable( "Summary_Reports" ); this.startDateTime = new EndOfDayDateTime( ! new DateTime( 2004 , 9 , 1 ) , EndOfDaySpecificTime.FiveMinutesBeforeMarketClose ); this.endDateTime = new EndOfDayDateTime( ! new DateTime( 2004 , 9 , 10 ) , EndOfDaySpecificTime.OneHourAfterMarketClose ); //this.numIntervalDays = 3; } --- 99,105 ---- this.reportTable = new ReportTable( "Summary_Reports" ); this.startDateTime = new EndOfDayDateTime( ! new DateTime( 2004 , 10 , 1 ) , EndOfDaySpecificTime.FiveMinutesBeforeMarketClose ); this.endDateTime = new EndOfDayDateTime( ! new DateTime( 2004 , 10 , 11 ) , EndOfDaySpecificTime.OneHourAfterMarketClose ); //this.numIntervalDays = 3; } *************** *** 213,225 **** this.generationNumberForGeneticOptimizer + "PopSize" + this.populationSizeForGeneticOptimizer; ! AccountReport accountReport = this.account.CreateReport(name,1,this.endDateTime,"^MIBTEL", ! new HistoricalAdjustedQuoteProvider()); ! ObjectArchiver.Archive(accountReport, ! "C:\\Documents and Settings\\Marco\\Documenti\\ProgettiOpenSource\\Quant\\SavedReports\\OpenCloseScripts\\" + ! name + ".rep"); ! //ObjectArchiver.Archive(this.account, ! // "C:\\Documents and Settings\\Marco\\Documenti\\ProgettiOpenSource\\Quant\\SavedAccounts\\OpenCloseScripts\\" + ! // name + ".acc"); } --- 213,227 ---- this.generationNumberForGeneticOptimizer + "PopSize" + this.populationSizeForGeneticOptimizer; ! //AccountReport accountReport = this.account.CreateReport(name,1,this.endDateTime,"^MIBTEL", ! // new HistoricalAdjustedQuoteProvider()); ! //ObjectArchiver.Archive(accountReport, ! // System.Configuration.ConfigurationSettings.AppSettings["ReportsArchive"] + ! // "\\OpenCloseScripts\\" + ! // name + ".rep"); ! ObjectArchiver.Archive(this.account, ! System.Configuration.ConfigurationSettings.AppSettings["AccountsArchive"] + ! "\\OpenCloseScripts\\" + ! name + ".acc"); } |