Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
8080git opened this issue Mar 13, 2021 · 0 comments
Open

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

8080git opened this issue Mar 13, 2021 · 0 comments

Comments

@8080git
Copy link

8080git commented Mar 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant