Hey,
I am looking for some feedback on the pairs trading code I wrote. It is based off some previous work done by others on here. Depending on the pairs chosen, the code will spit out some funny results, which I believe to be due to how beta and the spread is calculated.
Would greatly appreciate any feedback on how this could be improved and made more robust.
Cheers,
Nick