[Quantproject-developers] QuantProject/b7_Scripts/TickerSelectionTesting EndOfDayTimerHandler.cs,1.1
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-08-28 10:05:14
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17128/b7_Scripts/TickerSelectionTesting Modified Files: EndOfDayTimerHandler.cs EndOfDayTimerHandlerCTC.cs EndOfDayTimerHandlerCTO.cs Log Message: Fixed bug in script for the efficient open to close portfolio. Seed for random generation is now changed at each new optimization. Index: EndOfDayTimerHandlerCTO.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting/EndOfDayTimerHandlerCTO.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** EndOfDayTimerHandlerCTO.cs 1 Aug 2005 22:31:48 -0000 1.16 --- EndOfDayTimerHandlerCTO.cs 28 Aug 2005 10:05:03 -0000 1.17 *************** *** 184,191 **** Object sender , EndOfDayTimingEventArgs endOfDayTimingEventArgs ) { this.orders.Clear(); //this.oneHourAfterMarketCloseEventHandler_updatePrices(); if(this.numDaysElapsedSinceLastOptimization == ! this.numDaysBetweenEachOptimization) { this.setTickers(endOfDayTimingEventArgs.EndOfDayDateTime.DateTime, false); --- 184,192 ---- Object sender , EndOfDayTimingEventArgs endOfDayTimingEventArgs ) { + ConstantsProvider.SeedForRandomGenerator++; this.orders.Clear(); //this.oneHourAfterMarketCloseEventHandler_updatePrices(); if(this.numDaysElapsedSinceLastOptimization == ! this.numDaysBetweenEachOptimization - 1) { this.setTickers(endOfDayTimingEventArgs.EndOfDayDateTime.DateTime, false); Index: EndOfDayTimerHandler.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting/EndOfDayTimerHandler.cs,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** EndOfDayTimerHandler.cs 1 Aug 2005 22:31:48 -0000 1.15 --- EndOfDayTimerHandler.cs 28 Aug 2005 10:05:03 -0000 1.16 *************** *** 212,216 **** this.bestGenomes.Add(new GenomeRepresentation(genome, firstOptimizationDate, ! secondOptimizationDate)); } --- 212,217 ---- this.bestGenomes.Add(new GenomeRepresentation(genome, firstOptimizationDate, ! secondOptimizationDate, ! genome.Generation)); } Index: EndOfDayTimerHandlerCTC.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting/EndOfDayTimerHandlerCTC.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EndOfDayTimerHandlerCTC.cs 1 Aug 2005 22:31:48 -0000 1.12 --- EndOfDayTimerHandlerCTC.cs 28 Aug 2005 10:05:03 -0000 1.13 *************** *** 193,197 **** Object sender , EndOfDayTimingEventArgs endOfDayTimingEventArgs ) { ! if(this.account.Portfolio.Count == 0 ) { --- 193,197 ---- Object sender , EndOfDayTimingEventArgs endOfDayTimingEventArgs ) { ! ConstantsProvider.SeedForRandomGenerator++; if(this.account.Portfolio.Count == 0 ) { |