[Quantproject-developers] QuantProject/b7_Scripts/SimpleTesting/OneRank EndOfDayOneRank.cs,1.1,1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-01-09 22:23:53
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/SimpleTesting/OneRank In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29005/b7_Scripts/SimpleTesting/OneRank Modified Files: EndOfDayOneRank.cs Log Message: - the IHistoricalQuoteProvider "concept" has been introduced Index: EndOfDayOneRank.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/SimpleTesting/OneRank/EndOfDayOneRank.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EndOfDayOneRank.cs 29 Nov 2004 14:35:40 -0000 1.1 --- EndOfDayOneRank.cs 9 Jan 2005 22:23:44 -0000 1.2 *************** *** 24,27 **** --- 24,28 ---- using QuantProject.ADT; + using QuantProject.Business.DataProviders; using QuantProject.Business.Financial.Instruments; using QuantProject.Business.Financial.Accounting; *************** *** 39,42 **** --- 40,45 ---- private string ticker; private Account account; + private IHistoricalQuoteProvider historicalQuoteProvider = + new HistoricalAdjustedQuoteProvider(); private void fiveMinutesBeforeMarketCloseHandler( *************** *** 44,50 **** { if ( this.account.GetMarketValue( this.ticker ) <= ! HistoricalDataProvider.GetMarketValue( this.ticker , ! this.account.EndOfDayTimer.GetCurrentTime().DateTime.AddDays( - 1 ) , ! BarComponent.Close ) ) { // today's closing value is lower or equal than yesterday's closing value --- 47,54 ---- { if ( this.account.GetMarketValue( this.ticker ) <= ! this.historicalQuoteProvider.GetMarketValue( this.ticker , ! new EndOfDayDateTime( ! this.account.EndOfDayTimer.GetCurrentTime().DateTime.AddDays( - 1 ) , ! EndOfDaySpecificTime.MarketClose ) ) ) { // today's closing value is lower or equal than yesterday's closing value |