Fixed problem with MG and CMM when running EOM on a weekend. The Trade date and Analysis date have been corrected to reflect the previous business day. Monthly updates.
This commit is contained in:
@@ -331,8 +331,9 @@ namespace MarketData.Generator.CMMomentum
|
||||
CMSessionParams sessionParams = null;
|
||||
|
||||
Cycle = 0;
|
||||
if (Utility.IsEpoch(AnalysisDate)) AnalysisDate = dateGenerator.GetPrevBusinessDay(Today());
|
||||
else AnalysisDate = dateGenerator.GetPrevBusinessDay(AnalysisDate);
|
||||
if (AnalysisDate.Date > Today().Date) return backTestResult;
|
||||
if (Utility.IsEpoch(AnalysisDate)) AnalysisDate = Today();
|
||||
TradeDate = dateGenerator.GetCurrentMonthEnd(StartDate);
|
||||
if (TradeDate > AnalysisDate)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user