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:
2025-05-31 11:58:48 -04:00
parent 7061395694
commit bbbaff3095
11 changed files with 461 additions and 441 deletions

View File

@@ -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)
{