Skip to content

IndexError: index -27 is out of bounds for axis 0  #44

@8080git

Description

@8080git

if I try to launch with the command:
./stock-viewer.py -n AAPL.US -W -g -r

i have this error:

IndexError: index -27 is out of bounds for axis 0 with size 19

the report file is also not generated

to get a daily result, how can I try?

Traceback (most recent call last): File "./stock-viewer.py", line 470, in <module> ichimoku.Plot(plot9) File "/Users/main/test/pyStock/indicators/ichimoku.py", line 228, in Plot self.__plotDayLine(plt, 26) File "/Users/main/test//pyStock/indicators/ichimoku.py", line 154, in __plotDayLine self.tenkanSen.index[-1-days], self.pmin, self.low.values[-1-days]) File "/Users/main/test/myenv/lib/python3.7/site-packages/pandas/core/indexes/extension.py", line 238, in __getitem__ result = self._data[key] File "/Users/main/test/myenv/lib/python3.7/site-packages/pandas/core/arrays/datetimelike.py", line 281, in __getitem__ result = super().__getitem__(key) File "/Users/main/test/myenv/lib/python3.7/site-packages/pandas/core/arrays/_mixins.py", line 222, in __getitem__ result = self._ndarray[key] IndexError: index -27 is out of bounds for axis 0 with size 19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions