Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Expand IndicatorHistory Indicator Property Coverage

Open DerekMelchin opened this issue 7 months ago • 1 comments

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

Image

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 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

DerekMelchin avatar May 22 '25 23:05 DerekMelchin

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

Image

Martin-Molinero avatar Jun 05 '25 13:06 Martin-Molinero