[Quantproject-developers] QuantProject/b4_Business/a0_Validation/Validators CloseToCloseValidator.cs
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-05-09 16:19:13
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a0_Validation/Validators In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12646/b4_Business/a0_Validation/Validators Modified Files: CloseToCloseValidator.cs Log Message: Now quotes already visually validated are not suspicious anymore Index: CloseToCloseValidator.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a0_Validation/Validators/CloseToCloseValidator.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CloseToCloseValidator.cs 8 May 2004 17:05:55 -0000 1.2 --- CloseToCloseValidator.cs 9 May 2004 16:19:02 -0000 1.3 *************** *** 1,3 **** ! using System; using System.Data; using QuantProject.ADT; --- 1,4 ---- ! using System; ! using System.Collections; using System.Data; using QuantProject.ADT; *************** *** 14,17 **** --- 15,20 ---- { private DataTable dataTableToBeValidated; + private ArrayList closeToCloseVisuallyValidated; + public CloseToCloseValidator() *************** *** 47,51 **** DataRow quoteRow , double currentValue , double averageValue ) { ! if ( Math.Abs( currentValue / averageValue ) > ConstantsProvider.SuspiciousRatio ) // the current close to close value is suspiciously larger // than the average close to close ratio --- 50,55 ---- DataRow quoteRow , double currentValue , double averageValue ) { ! if ( Math.Abs( currentValue / averageValue ) > ConstantsProvider.SuspiciousRatio && ! ( this.closeToCloseVisuallyValidated.IndexOf( quoteRow[ "quDate" ] ) < 0 ) ) // the current close to close value is suspiciously larger // than the average close to close ratio *************** *** 78,82 **** private int validate_currentTicker( string currentTicker , int currentTickerStartingRowIndex ) { ! History closeToClose = new History(); History closeToCloseMovingAverage; int nextTickerStartingRowIndex = --- 82,88 ---- private int validate_currentTicker( string currentTicker , int currentTickerStartingRowIndex ) { ! this.closeToCloseVisuallyValidated = ! QuantProject.DataAccess.Tables.VisuallyValidatedQuotes.GetCloseToCloseValidated( currentTicker ); ! History closeToClose = new History(); History closeToCloseMovingAverage; int nextTickerStartingRowIndex = |