Hot answers tagged algorithm
Your reasoning is correct. To answer your last question: the current prices alone don't decide how many shares to sell and buy in each of the stocks. That is decided by the hedge ratio. In fact, the whole point of the hedge ratio is to assume that it is the ratio that the stocks will revert back to over time. So if we denote the spread at time $t$ by $s_t$ ...
Only top voted, non community-wiki answers of a minimum length are eligible