HedgeTest

This commit is contained in:
2025-02-13 15:05:06 -05:00
parent 476105eedb
commit efdb4d4c65

View File

@@ -875,7 +875,11 @@ namespace MarketData
}
else if(hedgeManager.IsLowerBandBreakIndicator(analysisDate, position))
{
MarketData.Generator.Model.StopLimit stopLimit = hedgeManager.EvaluateStopPriceHedge(analysisDate, position, hedgeStopLimitScalingVolatilityDays, hedgeMinDaysBetweenStopAdjustments);
MGSHConfiguration msghConfiguration = new MGSHConfiguration();
msghConfiguration.HedgeMinDaysBetweenStopAdjustments=hedgeMinDaysBetweenStopAdjustments;
msghConfiguration.StopLimitScalingVolatilityDays=hedgeStopLimitScalingVolatilityDays;
msghConfiguration.HedgeATRMultiplier=1.00; // Check this value against what is being used in the actual config. It controls how closely the stop limit trails
MarketData.Generator.Model.StopLimit stopLimit = hedgeManager.EvaluateStopPriceHedge(analysisDate, position, msghConfiguration);
if(null != stopLimit)StopLimits.Add(stopLimit);
}
}