HedgeTest
This commit is contained in:
@@ -875,7 +875,11 @@ namespace MarketData
|
|||||||
}
|
}
|
||||||
else if(hedgeManager.IsLowerBandBreakIndicator(analysisDate, position))
|
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);
|
if(null != stopLimit)StopLimits.Add(stopLimit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user