Ladies and gentlemen,
I've got 2 custom factors:
One called 'cluster' combines the industry and the style. It works fine for me.
The other one picks the output of the first one and returns it with no changes. And it fails with NonWindowSafeInput.
How can I overcome this error?
P.S. groupby wouldn't solve the issue as this is yet another pairs trading and I need pairwise cointegration tests inside the clusters.
I've already tested this king of algorithm however the logic was outside pipeline. Now I want to have it in custom factors.