[Quantproject-developers] QuantProject/b7_Scripts/SimpleTesting/OneRank OneRank.cs,1.5,1.6
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-01-09 23:26:14
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/SimpleTesting/OneRank In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11190/b7_Scripts/SimpleTesting/OneRank Modified Files: OneRank.cs Log Message: - GetMarketValue has been removed - GetMaxBuyableQuantity uses an IDataStreamer now Index: OneRank.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/SimpleTesting/OneRank/OneRank.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** OneRank.cs 26 Dec 2004 17:43:53 -0000 1.5 --- OneRank.cs 9 Jan 2005 23:25:44 -0000 1.6 *************** *** 23,31 **** using System; ! using QuantProject.Data.DataProviders; using QuantProject.Business.Financial.Accounting; using QuantProject.Business.Financial.Instruments; using QuantProject.Business.Financial.Ordering; using QuantProject.Business.Timing; namespace QuantProject.Scripts.SimpleTesting --- 23,33 ---- using System; ! using QuantProject.Business.DataProviders; using QuantProject.Business.Financial.Accounting; using QuantProject.Business.Financial.Instruments; using QuantProject.Business.Financial.Ordering; using QuantProject.Business.Timing; + using QuantProject.Data.DataProviders; + namespace QuantProject.Scripts.SimpleTesting *************** *** 39,43 **** private DateTime lastDateTime; ! public static long MaxBuyableShares( string ticker , double cashAmount, IDataStreamer dataStreamer ) --- 41,46 ---- private DateTime lastDateTime; ! private IHistoricalQuoteProvider historicalQuoteProvider = ! new HistoricalAdjustedQuoteProvider(); public static long MaxBuyableShares( string ticker , double cashAmount, IDataStreamer dataStreamer ) *************** *** 63,69 **** EndOfDayDateTime( this.account.EndOfDayTimer.GetCurrentTime().DateTime.AddDays( - 1 ) , EndOfDaySpecificTime.MarketClose ); ! double yesterdayMarketValueAtClose = HistoricalDataProvider.GetMarketValue( ! this.account.Key , ! yesterdayAtClose.GetNearestExtendedDateTime() ); if ( ( todayMarketValueAtClose > yesterdayMarketValueAtClose ) && ( !this.account.Contains( this.account.Key ) ) ) --- 66,71 ---- EndOfDayDateTime( this.account.EndOfDayTimer.GetCurrentTime().DateTime.AddDays( - 1 ) , EndOfDaySpecificTime.MarketClose ); ! double yesterdayMarketValueAtClose = this.historicalQuoteProvider.GetMarketValue( ! this.account.Key , yesterdayAtClose ); if ( ( todayMarketValueAtClose > yesterdayMarketValueAtClose ) && ( !this.account.Contains( this.account.Key ) ) ) |