[Quantproject-developers] QuantDownloader/Downloader/QuotesEditor QuotesChart.cs,1.5,1.6
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-04-03 00:03:02
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/QuotesEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9260/Downloader/QuotesEditor Modified Files: QuotesChart.cs Log Message: - Close was used, AdjustedClose is used now (Millo, this was the reason why you were looking at so many "suspicious" adjusted quotes: they were not adjusted... sorry) - the quote's history is now computed just once, when the ticker is assigned. In the previous version, it was computed on each OnPaint event. As a consequence, not it is more efficient. Furthermore, now zoom feature is available. Index: QuotesChart.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/QuotesEditor/QuotesChart.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** QuotesChart.cs 29 Mar 2005 14:57:31 -0000 1.5 --- QuotesChart.cs 3 Apr 2005 00:02:53 -0000 1.6 *************** *** 41,52 **** { get { return this.ticker; } ! set { this.ticker = value; } } public QuotesChart() { - // - // TODO: Add constructor logic here - // } --- 41,54 ---- { get { return this.ticker; } ! set ! { ! this.ticker = value; ! this.Clear(); ! this.Add( HistoricalDataProvider.GetAdjustedCloseHistory( this.ticker ) ); ! } } public QuotesChart() { } *************** *** 54,59 **** { Console.WriteLine( "QuotesChart.PaintingHandler()" ); ! this.Clear(); ! this.Add( HistoricalDataProvider.GetCloseHistory( this.ticker ) ); base.OnPaint( e ); } --- 56,61 ---- { Console.WriteLine( "QuotesChart.PaintingHandler()" ); ! // this.Clear(); ! // this.Add( HistoricalDataProvider.GetCloseHistory( this.ticker ) ); base.OnPaint( e ); } |