Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Insight Weighted PCM doesn't take absolute value of weight

Open DerekMelchin opened this issue 3 years ago • 0 comments

Expected Behavior

If we emit a down insight with a weight, the InsightWeightingPortfolioConstructionModel creates targets to sell the security.

Actual Behavior

If we emit a down insight with a negative weight, the InsightWeightingPortfolioConstructionModel creates targets to buy the security.

Potential Solution

Take the absolute value of the insight weight.

Reproducing the Problem

Run this backtest: https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_ac49b95e9ad9558b4ba62cc58b632246.html

System Information

QC Cloud

Checklist

  • [x] I have completely filled out this template
  • [x] I have confirmed that this issue exists on the current master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

DerekMelchin avatar May 13 '22 16:05 DerekMelchin