QuantConnect/Lean

Extend LeastSquaresMovingAverage to Accept a Benchmark

Open

#6.984 geöffnet am 20. Feb. 2023

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C# (4.772 Forks)batch import
featuregood first issue

Repository-Metriken

Stars
 (18.979 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 17h) (43 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide