代码才不是冷冰冰的。代码里有尊严、信仰、感情、没有实现的梦想还有被剁成肉泥的内脏。
The whole reason that we perform a cointegration test before applying this strategy is so that we know the linear combination of stock prices is covariance stationary, hence we have reasons to believe that the average does not change.