Lean icon indicating copy to clipboard operation
Lean copied to clipboard

ZigZag Indicator History

Open DerekMelchin opened this issue 7 months ago • 1 comments

Expected Behavior

When we use the indicator method to get history for the Zig Zag indicator, the DataFrame contains valid timestamps.

Actual Behavior

The last timestamp is 0001-01-01 00:00:00

Image

Also, HighPivot and LowPivot should be private. It doesn't make sense showing them.

Potential Solution

N/A

Reproducing the Problem

qb = QuantBook()
symbol = qb.add_equity('SPY').symbol
qb.indicator(ZigZag(0.05, 1), symbol, timedelta(365), Resolution.DAILY)

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 Jun 06 '25 16:06 DerekMelchin

Ideally, the dataframe should show the PivotType property, but it is a enum.

AlexCatarino avatar Jun 06 '25 18:06 AlexCatarino