Skip to content

Extend LeastSquaresMovingAverage to Accept a Benchmark #6984

@AlexCatarino

Description

@AlexCatarino

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

Metadata

Metadata

Assignees

Labels

featuregood first issueIf you're looking to get started as a LEAN contributor, check out these starter issues!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions