Lean icon indicating copy to clipboard operation
Lean copied to clipboard

`IndicatorExtensions` cannot be used with `PythonIndicator`

Open LouisSzeto opened this issue 3 years ago • 4 comments

Expected Behavior

IndicatorExtensions can be used with PythonIndicator for all method (Of, Over,...)

Actual Behavior

For Of: It will throw error of Cannot perform runtime binding on a null reference in PythonIndicator.cs:line 143 It looks like it didn't read the PythonIndicator's value correctly.

For others: The combination method didn't get called at all, just like https://github.com/QuantConnect/Lean/issues/3565#issuecomment-1113254800

Potential Solution

NA

Reproducing the Problem

https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_8bbd321995671f7f48427d27a4bd29d6.html

System Information

QC cloud

Checklist

  • [X] I have completely filled out this template
  • [X] I have confirmed that this issue exists on the current master branch
  • [X] I have confirmed that this is not a duplicate issue by searching issues
  • [X] I have provided detailed steps to reproduce the issue

LouisSzeto avatar Sep 08 '22 01:09 LouisSzeto

Thank you for raising, I'm facing the same issue. It appears to ignoring the indicator value and passing though the 'SPY' close value to the custom indicator.

iotaweb avatar Sep 19 '22 01:09 iotaweb