Dead code elimination
This commit is contained in:
Binary file not shown.
23
Program.cs
23
Program.cs
@@ -450,29 +450,6 @@ namespace MarketData
|
||||
Console.WriteLine(codeRunner.LastMessage);
|
||||
}
|
||||
|
||||
// public static void Test()
|
||||
// {
|
||||
// DateGenerator dateGenerator=new DateGenerator();
|
||||
// DateTime startDate=DateTime.Parse("01-02-2018");
|
||||
// DateTime endDate=DateTime.Parse("06-01-2023");
|
||||
// DateTime currentDate=startDate;
|
||||
// int dayIncrement=90;
|
||||
// int dayCount=90;
|
||||
|
||||
// currentDate=dateGenerator.GetPrevQuarterStartDate(startDate);
|
||||
// while(currentDate<endDate)
|
||||
// {
|
||||
// YieldCurve yieldCurve = YieldCurveDA.GetYieldCurve(currentDate, dayCount);
|
||||
// double[] yieldCurveData = yieldCurve.GetYieldCurveDataOrderByDateDescending(YieldCurve.CurveType.Yr1);
|
||||
// for(int index=0;index<yieldCurveData.Length;index++)yieldCurveData[index]=yieldCurveData[index]*100.00;
|
||||
// LeastSquaresResult leastSquaresResult = LeastSquaresHelper.CalculateLeastSquares(yieldCurveData);
|
||||
// MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Date:{0} 1YTsySlope:{1}",currentDate.ToShortDateString(),Utility.FormatNumber(leastSquaresResult.Slope,4)));
|
||||
//// currentDate=dateGenerator.DaysAddActual(currentDate,dayIncrement);
|
||||
// currentDate=dateGenerator.GetNextQuarterStartDate(currentDate);
|
||||
|
||||
|
||||
// }
|
||||
// }
|
||||
public static void SimulateTrade(DateTime startDate, DateTime endDate)
|
||||
{
|
||||
Dictionary<DateTime,DateTime> tradeableDates=new Dictionary<DateTime,DateTime>();
|
||||
|
||||
Reference in New Issue
Block a user