diff --git a/03 Writing Algorithms/34 Algorithm Framework/04 Portfolio Construction/01 Key Concepts/03 Model Structure.html b/03 Writing Algorithms/34 Algorithm Framework/04 Portfolio Construction/01 Key Concepts/03 Model Structure.html index 8a197ba18a..055e42497c 100644 --- a/03 Writing Algorithms/34 Algorithm Framework/04 Portfolio Construction/01 Key Concepts/03 Model Structure.html +++ b/03 Writing Algorithms/34 Algorithm Framework/04 Portfolio Construction/01 Key Concepts/03 Model Structure.html @@ -25,7 +25,8 @@ return new Dictionary<Insight, double>(); } - // Get the target insights to calculate a portfolio target percent. They will be piped to DetermineTargetPercent(). + // Get the target insights to calculate a portfolio target percent. + // They will be piped to the DetermineTargetPercent method. protected override List<Insight> GetTargetInsights() { return base.GetTargetInsights(); @@ -37,7 +38,7 @@ return base.ShouldCreateTargetForInsight(insight); } - // Security change details. + // Track universe changes. public override void OnSecuritiesChanged(QCAlgorithm algorithm, SecurityChanges changes) { base.OnSecuritiesChanged(algorithm, changes); @@ -57,7 +58,8 @@ def determine_target_percent(self, activeInsights: List[Insight]) -> Dict[Insight, float]: return {} - # Get the target insights to calculate a portfolio target percent. They will be piped to DetermineTargetPercent(). + # Get the target insights to calculate a portfolio target percent. + # They will be piped to the determine_target_percent method. def get_target_insights(self) -> List[Insight]: return super().get_target_insights() @@ -65,7 +67,7 @@ def should_create_target_for_insight(self, insight: Insight) -> bool: return super().should_create_target_for_insight(insight) - # Security change details. + # Track universe changes. def on_securities_changed(self, algorithm: QCAlgorithm, changes: SecurityChanges) -> None: super().on_securities_changed(algorithm, changes)