QuantConnect/Lean

Extend LeastSquaresMovingAverage to Accept a Benchmark

Open

#6984 aperta il 20 feb 2023

Vedi su GitHub
 (5 commenti) (0 reazioni) (1 assegnatario)C# (4772 fork)batch import
featuregood first issue

Metriche repository

Star
 (18.979 star)
Metriche merge PR
 (Merge medio 1g 17h) (43 PR mergiate in 30 g)

Descrizione

Expected Behavior

Lean supports LeastSquaresMovingAverage as a Lean Indicator which takes a Symbol object, a benchmark Symbol, and a look-back period.

Actual Behavior

The current implementation assumes a constant slope: LeastSquaresMovingAverage.cs#L59. See #83.

Potential Solution

Implement this indicator.

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

Guida contributor