So the algo that I am working on right now is not something too special, and at its heart all I am doing at this point is plugging more and more factors into it under the impression that it will improve. It is a little more complicated than that, but I don't want to go into details.
Where I am now is I have a notebook all setup that can run through new factors and calculations that runs everything through alphalens such that at the end of it I even coded it together so it gives me the code to copy and paste it into the algorithm, if there was anything I was looking for in the factor.
This was working well for a few rounds, but now I am running into errors.
First off, it gave me the "Something went wrong. Sorry for the inconvenience. Try using the built-in debugger to analyze your code. If you would like help, send us an email. " Which by itself is not that bad, as from that I recognize the most probable problem is from one of the factors that I had just put in.
So, the old take one out at a time until it works again was the plan, except that when I took one out, it began erroring, and saying that one of the variables from that factor was not defined. Well of course it wasn't defined, because I had just taken it out, but going through line by line, it is not being called anywhere in the code, and yet it wants it to be defined.
Refreshing the browser at this point returns me to the previous error, where it doesn't point to anything useful.
I have tried adding some logging to find where exactly it is failing, but it seems to make it all the way through the pipeline, and through initialization, but never to before_start_trading and rebalancing.
It seems as though everything I have added in is broken, which seems unlikely, and on a whim I am wondering if the problem may be that I am simply asking the pipeline to output too many factors.
Normally I would not output all the factors individually, except that I need to perform operations on them that I have not figured out how to do in the pipeline, and since up until this point, doubling, even tripling the original number of factors that I had going in has not slowed down the backtest.
As a note, a fair number of my factors are from the 101 Alphas, but I have steered clear of all the ones using correlation, and as everything I am adding in make it through the notebook alright I do not know where my problem here may lie.
Thank you for any help