Lean
Lean copied to clipboard
Expand IndicatorHistory Indicator Property Coverage
Expected Behavior
The following code block includes a column for the short_average attribute.
qb = QuantBook()
symbol = qb.add_equity('SPY', Resolution.DAILY).symbol
indicator = RelativeMovingAverage(20)
qb.indicator(indicator, symbol, timedelta(365), Resolution.DAILY)
Actual Behavior
Potential Solution
We defined it as:
public SimpleMovingAverage ShortAverage
Maybe needs to be
public IndicatorBase<IndicatorDataPoint> ShortAverage
Reproducing the Problem
Run code block above
System Information
QC Cloud
Checklist
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
masterbranch - [x] I have confirmed that this is not a duplicate issue by searching issues
- [x] I have provided detailed steps to reproduce the issue
Review and improve indicator history property usage resolution logic, seems to be very limited, causing this issue. Probably on purpose to avoid adding to much noise, but there are many indicators with multiple useful properties to use