http://tlc.thinkorswim.com/center/charting/studies/studies-library/O-Q/PairRatio is probably the closest to what you want.