No transactions are made
I am trying to implement backtrader to evaluate my trading strategy with a momentum and Xgboost, but there isn't made any trades.
The error that I get is IndexError: single positional indexer is out-of-bounds, but I get it from the transaction vector that are empty, but my problem that is that I don't know where the mistake is. I have tried to debug the code unsuccessfully.
It would be really appreciated if anyone maybe has input to where the code is wrong
I have uploaded the data and my jupyternotebook on a drive here:
Thanks in advance