[Quantproject-developers] QuantProject/b4_Business/a05_Timing HistoricalEndOfDayTimer.cs,1.1,1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-12-13 01:48:02
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9024/b4_Business/a05_Timing Modified Files: HistoricalEndOfDayTimer.cs Log Message: Bug fixed: now each EndOfDaySpecificTime is properly fired, just once for each day. Index: HistoricalEndOfDayTimer.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing/HistoricalEndOfDayTimer.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HistoricalEndOfDayTimer.cs 29 Nov 2004 14:43:31 -0000 1.1 --- HistoricalEndOfDayTimer.cs 13 Dec 2004 01:47:27 -0000 1.2 *************** *** 74,84 **** while ( this.isActive ) { ! if ( this.MarketOpen != null ) this.MarketOpen( this , new EndOfDayTimingEventArgs( this.currentTime ) ); ! if ( this.FiveMinutesBeforeMarketClose != null ) this.FiveMinutesBeforeMarketClose( this , new EndOfDayTimingEventArgs( this.currentTime ) ); ! if ( this.MarketClose != null ) this.MarketClose( this , new EndOfDayTimingEventArgs( this.currentTime ) ); ! if ( this.OneHourAfterMarketClose != null ) this.OneHourAfterMarketClose( this , new EndOfDayTimingEventArgs( this.currentTime ) ); this.currentTime.MoveNext(); --- 74,88 ---- while ( this.isActive ) { ! if ( ( this.MarketOpen != null ) && ( this.currentTime.EndOfDaySpecificTime == ! EndOfDaySpecificTime.MarketOpen ) ) this.MarketOpen( this , new EndOfDayTimingEventArgs( this.currentTime ) ); ! if ( ( this.FiveMinutesBeforeMarketClose != null ) && ( this.currentTime.EndOfDaySpecificTime == ! EndOfDaySpecificTime.FiveMinutesBeforeMarketClose ) ) this.FiveMinutesBeforeMarketClose( this , new EndOfDayTimingEventArgs( this.currentTime ) ); ! if ( ( this.MarketClose != null ) && ( this.currentTime.EndOfDaySpecificTime == ! EndOfDaySpecificTime.MarketClose ) ) this.MarketClose( this , new EndOfDayTimingEventArgs( this.currentTime ) ); ! if ( ( this.OneHourAfterMarketClose != null ) && ( this.currentTime.EndOfDaySpecificTime == ! EndOfDaySpecificTime.OneHourAfterMarketClose ) ) this.OneHourAfterMarketClose( this , new EndOfDayTimingEventArgs( this.currentTime ) ); this.currentTime.MoveNext(); |