I'd like to try a strategy using the z-score of a ratio of two assets, but it seems we don't have a built-in for this, and the built-in function for standard deviation will only accept a singular security. Anybody here happen to have an example of how to go about this one?

Author