QuantConnect/Lean

liquidateExistingHoldings flag needs improvement

Opened this issue · 0 comments

Expected Behavior

These two algorithms produce the same result:

Actual Behavior

They produce different results. The second algorithm ends up in a short position.

Potential Solution

N/A

Reproducing the Problem

Run the algorithms above

System Information

QC Cloud

Checklist

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