Add scripts, run models

This commit is contained in:
2025-04-08 22:04:31 -04:00
parent 70340bdd25
commit f4511419ba
5 changed files with 440 additions and 393 deletions

View File

@@ -826,6 +826,14 @@ namespace MarketData.Generator.MGSHMomentum
{
EvaluateStopPrice(analysisDate, price, position);
}
else
{
MDTrace.WriteLine(LogLevel.DEBUG, String.Format("[UpdateStopLimitsForActivePositions] No stop adjustment for {0} on {1} because low price {2} is less then or equal to the purchase price {3}.",
position.Symbol,
analysisDate.ToShortDateString(),
Utility.FormatCurrency(price.Low),
Utility.FormatCurrency(position.PurchasePrice)));
}
}
}
if(0!=closedPositions.Count)