[Quantproject-developers] QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardOneRank BestPerformi
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-12-26 17:37:43
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardOneRank In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5434/b7_Scripts/WalkForwardTesting/WalkForwardOneRank Modified Files: BestPerformingTickers.cs Log Message: It was an HashTable, it is an ArrayList, now. Index: BestPerformingTickers.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardOneRank/BestPerformingTickers.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BestPerformingTickers.cs 20 Dec 2004 00:20:05 -0000 1.4 --- BestPerformingTickers.cs 26 Dec 2004 17:37:34 -0000 1.5 *************** *** 35,39 **** /// The collection of best performing tickers, among the eligible ones /// </summary> ! public class BestPerformingTickers : Hashtable,IProgressNotifier { private int numberBestPerformingTickers; --- 35,39 ---- /// The collection of best performing tickers, among the eligible ones /// </summary> ! public class BestPerformingTickers : ArrayList,IProgressNotifier { private int numberBestPerformingTickers; *************** *** 73,76 **** --- 73,77 ---- OneRank oneRank = new OneRank( account , dateTime.AddDays( this.numberDaysForPerformanceCalculation ) ); + double goodness = account.Goodness; // forces Goodness computation here (for a better ProgressBar effect) this.eligibleAccounts.Add( account ); } *************** *** 89,94 **** } this.eligibleAccounts.Sort(); ! for ( int index=0 ; index < this.numberBestPerformingTickers ; index++ ) ! this.Add( ((Account)this.eligibleAccounts[ index ]).Key , this.eligibleAccounts[ index ] ); } /// <summary> --- 90,95 ---- } this.eligibleAccounts.Sort(); ! for ( int index=this.numberBestPerformingTickers - 1 ; index >= 0 ; index-- ) ! this.Add( this.eligibleAccounts[ index ] ); } /// <summary> |