QuantConnect/Lean

Extend LeastSquaresMovingAverage to Accept a Benchmark

Open

#6.984 aberto em 20 de fev. de 2023

Ver no GitHub
 (5 comments) (0 reactions) (1 assignee)C# (4.772 forks)batch import
featuregood first issue

Métricas do repositório

Stars
 (18.979 stars)
Métricas de merge de PR
 (Mesclagem média 1d 17h) (43 fundiu PRs em 30d)

Description

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

Guia do colaborador