QuantConnect/Lean

Extend LeastSquaresMovingAverage to Accept a Benchmark

開放

#6,984 建立於 2023年2月20日

 (5 則留言) (0 個反應) (1 位負責人)C# (4,772 個分叉)batch import
featuregood first issue

倉庫指標

星標
 (18,979 顆星)
PR 合併指標
 (平均合併 1天 17小時) (30 天內合併 43 個 PR)

描述

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

貢獻者指南