Lean
Lean copied to clipboard
ZigZag Indicator History
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
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
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
Ideally, the dataframe should show the PivotType property, but it is a enum.