[Quantproject-developers] QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardOneRank BestPerformi
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-05-30 18:32:44
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardOneRank In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16906/b7_Scripts/WalkForwardTesting/WalkForwardOneRank Modified Files: BestPerformingTickers.cs Log Message: - the MissingQuoteException is handled now Index: BestPerformingTickers.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardOneRank/BestPerformingTickers.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** BestPerformingTickers.cs 26 May 2005 23:36:18 -0000 1.8 --- BestPerformingTickers.cs 30 May 2005 18:32:35 -0000 1.9 *************** *** 30,33 **** --- 30,34 ---- using QuantProject.Business.Timing; using QuantProject.Data.DataProviders; + using QuantProject.Data.DataProviders.Caching; using QuantProject.Scripts.SimpleTesting; *************** *** 133,144 **** foreach ( string ticker in eligibleTickers.Keys ) { ! setTickers_build_addTickerWithGoodness( ticker , dateTime ); ! this.calculatedTickers++; ! if ( Math.Floor( this.calculatedTickers / this.tickersWithGoodness.Count * 100 ) > ! Math.Floor( ( this.calculatedTickers - 1 ) / this.tickersWithGoodness.Count * 100 ) ) ! // a new time percentage point has been elapsed ! this.NewProgress( this , new NewProgressEventArgs( ! Convert.ToInt32( Math.Floor( this.calculatedTickers / eligibleTickers.Count * 100 ) ) , ! 100 ) ); } for ( int index=this.tickersWithGoodness.Count - 1 ; --- 134,153 ---- foreach ( string ticker in eligibleTickers.Keys ) { ! try ! { ! setTickers_build_addTickerWithGoodness( ticker , dateTime ); ! this.calculatedTickers++; ! if ( Math.Floor( this.calculatedTickers / this.tickersWithGoodness.Count * 100 ) > ! Math.Floor( ( this.calculatedTickers - 1 ) / this.tickersWithGoodness.Count * 100 ) ) ! // a new time percentage point has been elapsed ! this.NewProgress( this , new NewProgressEventArgs( ! Convert.ToInt32( Math.Floor( this.calculatedTickers / eligibleTickers.Count * 100 ) ) , ! 100 ) ); ! } ! catch ( MissingQuoteException exception ) ! { ! // the given ticker has not quotes for alle the inSample period ! string doNothing = exception.Message; ! } } for ( int index=this.tickersWithGoodness.Count - 1 ; |