[Quantproject-developers] QuantProject/b7_Scripts/TickerSelectionTesting RunEfficientPortfolio.cs,1.
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-04-17 13:36:47
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28085/b7_Scripts/TickerSelectionTesting Modified Files: RunEfficientPortfolio.cs Log Message: Now very long script can be stopped (and report or account saved to disk up to that moment) by adding a "flag" file in the bin dir. Index: RunEfficientPortfolio.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting/RunEfficientPortfolio.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RunEfficientPortfolio.cs 11 Apr 2005 18:52:32 -0000 1.3 --- RunEfficientPortfolio.cs 17 Apr 2005 13:36:37 -0000 1.4 *************** *** 25,28 **** --- 25,29 ---- using System.Collections; using System.Data; + using System.Windows.Forms; using QuantProject.ADT; using QuantProject.ADT.Optimizing.Genetic; *************** *** 155,159 **** //Report report; ! if(endOfDayTimingEventArgs.EndOfDayDateTime.DateTime>=this.endDateTime.DateTime ) { this.endOfDayTimer.Stop(); --- 156,164 ---- //Report report; ! if(endOfDayTimingEventArgs.EndOfDayDateTime.DateTime>=this.endDateTime.DateTime || ! File.Exists(Application.ExecutablePath.Substring(0, Application.ExecutablePath.LastIndexOf('\\')) ! + @"\StopScript.txt")) ! //If you want to stop timer and save script until now, create ! //in bin dir a file named "StopScript.txt" { this.endOfDayTimer.Stop(); |