Open IlyaKrotov opened 4 years ago
https://github.com/ranaroussi/qtpylib/issues/47 This also doesn't work, always the same: On bar: 13:52:43 +1 AMD {'AAPL': 0, 'AMD': 28}
fyi - idk if multiple instruments is implemented
fyi - idk if multiple instruments is implemented
Is should be because you can find an example in docs with 2 instruments.
index -1 is out of bounds for axis 0 with size 0
Just by the error message I would assume that the issue is caused by slicing of a numpy array of a zero size somewhere in the code as in the example below
>>> import numpy as np
>>> np.array([])[-1]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: index -1 is out of bounds for axis 0 with size 0
Describe the bug Hello! Thank you for your library. It is awesome. I started to use it and now I'm trying to code my strategies with pairs trading. But I've got an issue and I cannot solve it. Here is the example. And the output is the following:
So, what is wrong and fix it?
Thank you
To Reproduce
Desktop (please complete the following information):
Additional context I built it from source.